[ros-kernel] "My Computer" crash

Ge van Geldorp ge at gse.nl
Wed Feb 18 11:39:37 CET 2004


> From: Mark Tempel
> 
> Are you sure that RtlAllocateHeap will return 8 byte aligned 
> blocks?  If not I would like to add in a debug output and 
> failure mode into GlobalAlloc if a non 8 byte aligned block 
> of memory is allocated...  It will make issues like this 
> easier to debug in the future...

I have an assert checking the 8-byte alignment of the RtlAllocateHeap
and RtlReAllocateHeap return value in my local tree and it hasn't
tripped so far....
I agree with you though, it would be good to add a check in GlobalAlloc
and make sure we get what we expect there, in the context where you can
see why it is important. I'll send you a patch later today so we can
both look at it.

Gé van Geldorp.




More information about the Ros-kernel mailing list