I'm just using the default nexus and "run current script".

I've created a small test example thingy that demonstrates the problem: http://superku.de/codeCompileTest.zip
VMMap if you do not have it already: https://technet.microsoft.com/en-us/sysinternals/vmmap.aspx

The code_creator.c creates a few files with copy pasted dummy functions and different names. That has been done already though, just run main.c.
The compiler will stop after it has processed all the code and reached "asasda" after the main function. When you select that acknex process with VMMap, it will show a heap value of ~1041MB (unless my system is bugging out right now again, which I don't think it is). No images or global objects, except stuff from default.c (and acknex.h).


Remove "asasda" and run current script again. The A8 window appears. VMMap on that process returns a heap size of ~~1223MB.
If you now press [Space], bmap_createblack(2048,2048,32)+draw_quad is executed each frame. The application throws the known DirectX error after about (on my machine) 22 bitmaps (which makes sense, 22*2*8MB = 352MB, default critical heap value).



------------------------------

Btw. I've copy pasted some more (of the same) dummy code into dummyFunction.txt, ran code_creator.c again and main.c after. Got no code size warning but a

Quote:
Microsoft Vusual C++ Runtime Library
Runtime Error!
Program: ... acknex.exe
This application has requested the Runtime to terminate it in an unusual way.

VMMap: Total 2028MB, Heap 1864MB.
This is not working as intended, right?

Thanks for your time.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends