malloc crashes - malloc(256) returns 0(!) (_MT)
I have a heavily multithreaded app, using ATL. (loads
MFC libraries)
The app can run for about 20 secs, and then crashes heavily, when
malloc(1024) fails.
Often it can fail in CString or so to.
I am suspecting that although I've chosen the MT-runtime (vs.net) they are
not chosen over ST-runtimes
The linker was complaining about libc conflicting. /NODEFAULTLIB helped, but
I'm not sure.
Any suggestions?