View Full Version : wglFreeMemoryNV (null); == crash ?

09-11-2002, 01:13 AM
If I read the spec right, a wglFreeMemoryNV with _any_ pointer that was not allocated with wglAllocateMemoryNV should silently fail.. However I seem to get a crash if I pass a null pointer. This is with 40.41 on Win2K. I'll just check for nullness -- but did I read that right that it "should" work ?...

The wglFreeMemoryNV command frees memory allocated with wglAllocateMemoryNV.
The <pointer> should be a pointer returned by wglAllocateMemoryNV and not previously freed.
If a pointer is passed to wglFreeMemoryNV that was not allocated via wglAllocateMemoryNV
or was previously freed (without being
reallocated), the free is ignored with no error reported.

edit : stupid code tag :\

[This message has been edited by bpeers (edited 09-11-2002).]

09-11-2002, 11:56 PM
Hmmm, I'll look into this one... I can see how it might happen.

- Matt

09-12-2002, 06:05 PM
This will be fixed in a future driver release.

- Matt

09-13-2002, 12:21 AM
Thanks !