VC++ 6.0 access violation when run in debugger
I am trying to add enhancements to a 4 year old VC++ 6.0 program. The debug build runs from the command line but not in the debugger: it crashes with an access violation inside printf(). If I skip the printf, then it crashes in malloc() (called from within fopen()) and I can't skip over that. This means I cannot run in the debugger and have to rely on the old printf statements to see what's going on. This obviously makes it a lot harder. Any idea why printf() and malloc() would fail when running under the VC++ debugger? I am no good at this low level stuff! Here is the call stack after the