PDA

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



bpeers
09-11-2002, 02: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).]

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

- Matt

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

- Matt

bpeers
09-13-2002, 01:21 AM
Thanks !