Hi
I'm writing a game engine, and when I was going to send it to a friend I compiled it as release and ran it. But it crashed and I spend like 4 hours looking for the problem, I found that whenever I call new it crashes.

The strange thing is that it only crashes when I run it from the exe-file, it runs perfect in MSVC.NET and even when I tried to debug it with Ollydbg. An examle of where it crashes:

Code:
tChunk* tempChunk = new tChunk;
tChunk is a struct. Everything has been working perfectly before, and I haven't changed anything on this code.

Anyone knows what causes this strange crash?

Thanks in advande

The Wazaa