Re: How come: crash/no crash?
- Posted by Al Getz <Xaxo at aol.com> Dec 29, 2005
- 435 views
Hello again Bernie, C Bouzy, Matt, and Pete, Replies to replies in the order in which they appeared on the list... C Bouzy(1): Yes, i guess it could be a setting in the OS or the processor. I'd have to see if the other system has settings for this. Matt: That's an interesting idea...so you think that maybe all programs should be run at least once with safe.e then? It wouldnt catch the WinAPI call, but it would at least catch if we try to read the 'non-allocated' part of the struct. i guess if we dont try to read that part it still wont catch it Good idea though. Bernie(1): Well, the program was compiled into exe form. I only ran exw form on my machine. The exe crashed on Home but not on Pro. Fixing the struct allocate fixed the problem as expected. Pete: Safe.e would catch the attempt to read the unallocated part of the struct (im pretty sure) but the WinAPI call using the struct wouldnt get caught. This means it's possible that the api call would load mem locations that were not allocated, and safe.e wouldnt know this was happening...until the time came to read the *part* of that struct that was not allocated. I think i agree here that safe.e would have helped uncover a bug because in this particular instance i was reading *both* values of a point struct, while only one mem location was actually allocated properly. Bernie(2): I checked my options and yes, DEP was enabled for 'essential' win programs only, so ill have to play with this. I'll see if it catches the same error with that enabled for ALL programs. Thanks for the idea. C Bouzy(2): I think what Bernie meant was to turn it *on* for *ALL* programs instead of just some programs, that way it should catch everything. I'll bet the other computer has it on for all programs so that one caught it while mine didnt...i'll try it. I'll swing back with the results (with DEP) as soon as possible... Take care, Al And, good luck with your Euphoria programming! My bumper sticker: "I brake for LED's"