Page 1 of 1

Intersect function causes exception

PostPosted: Apr 17, 2002 @ 2:39pm
by jasjenl

PostPosted: Apr 17, 2002 @ 8:59pm
by Johan
Hi,

Very strange. Exception 5 is typically used when accessing uninitialized memory areas.

I tried changing the MaskDemo (which is shipped with GapiDraw) so that both surface use rectangles. No crash. I also looked through the source code for Intersect.

Please verify the parameter "POINT* pIntersection". This is a return value, and it must point to an initialized memory space. Using an uninitialized pointer here could easily cause GapiDraw to crash. Please report back again if all parameters are indeed correct, so I can have another look at it before I release the next GapiDraw tomorrow.

/Johan

PostPosted: Apr 18, 2002 @ 10:20am
by jasjenl

PostPosted: Apr 18, 2002 @ 2:58pm
by Johan