How come: crash/no crash?
- Posted by Al Getz <Xaxo at aol.com> Dec 28, 2005
- 437 views
Hello, Recently i was working with a program that uses the Win API and a point structure. In my haste, i allocated the point struct incorrectly as: ppt=allocate(4) --should be at least (8) The point struct was then used in a Win API call which loads it: retv=winapi_function_call(ppt) then the result is read into a sequence with peek's. Strange thing is, under Win XP Pro (sp1 OR sp2) the above code *NEVER* crashed, while under XP Home it *ALWAYS* crashed. When i say 'it crashed' i mean a Euphoria machine exception error is generated and the program halts. When it doesnt crash the program works normally exactly as expected with no complains (XP Pro). In both cases the program has been bound (exe), but in the XP Pro case the .exw file doesnt crash nor the bound exe file either. Im asking about this because if you go through the trouble of troubleshooting the program and it runs fine with no errors, then you run it under XP Home and it doesnt work, that's nasty. Any ideas, anyone? Take care, Al And, good luck with your Euphoria programming! My bumper sticker: "I brake for LED's"