byte function(){ ..code.. //not returning anything } funtion(); After compiling/running it got me: Error: Win32 exception Is this correct? It isn't really easy to debug like that.