Re: How come: crash/no crash?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Al Getz wrote:
> 
> 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.


Al:
  What probably is happening is when XP Pro runs the program it runs
  the program in memory where there is a spot in memory that is
  has nothing located in it. so it just overwrites those
  extra locations.

  When you use XP Home the program is writing over a protected area
  that is being used by the OS.
 
Bernie

My files in archive:
w32engin.ew mixedlib.e eu_engin.e win32eru.exw

Can be downloaded here:
http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu