Archived

This topic is now archived and is closed to further replies.

atjs

HEAP error?

Recommended Posts

I''m creating a C++ DirectDraw7 app using the DirectX 9.0 SDK and VS.NET. Running in debug mode, I get the following text in my output(debug) window: HEAP[NetWorks.exe]: Invalid allocation size - A31FC740 (exceeded 7ffdefff) How can this be, since I have not a single ''new'' operator (in C this would be like malloc()) in my entire source? Note that the application is eitherwise fully-functional, no crashes, etc... Any idea on how to remove this annoying text?

Share this post


Link to post
Share on other sites
Not allocations done in a program happen explicitly from your code with malloc/new. It can happen indirectly. E.g. when you make a new texture, vertex buffer and any other thing that makes directx create an object internally. If the size you gave during creation of such a unit was extremely high (or invlaid somehow) you might get such an error.


Jacob Marner, M.Sc.
Console Programmer, Deadline Games

Share this post


Link to post
Share on other sites