I have a program built under DEBUG configuration in VC++ 6.0. If I run
the exe file by pressing F5 in the IDE, the excution is very slow,
while if I run by pressing Ctrl+F5 (or run the exe file from explorer
by double-clicking), the excution is several times faster. I want to
know what has caused this difference in speed of the two running mode,
for the two are running the same exe file.
Thanks!
Rose
"Rose W" <en...@sina.com> wrote in message
news:b42753ab.03040...@posting.google.com...
If I press Ctrl+F5 to run the program or run it standalone, I can also
attach the running program to VC debugger later. After being attached
to the debugger,
the program's running speed does not change much. That is to say, it
is still running at a speed much faster than the speed of directly
pressing F5 to run the program. Is this speed difference mainly caused
by the debug heap? I guess the overhead of the debugger environment in
the two circumstances won't differ much. When the program is running
standalone, is it using a different heap from that of the F5 funning?
Is it possible to configure the debugger to behave the same way for F5
running and running standalone with attaching to debugger later?
"Rich Dutton" <nottu...@NOSPAMhotmail.com> wrote in message news:<e130ec663842089d...@news.teranews.com>...
"Rose W" <en...@sina.com> wrote in message
news:b42753ab.03040...@posting.google.com...
<quote>
Instead of using the standard heap API, processes created by
the debugger use a special debug heap. On Windows XP and
Windows Server 2003, you can force a spawned process to
use the standard heap instead of the debug heap by using the
_NO_DEBUG_HEAP environment variable or the -hd
command-line option.
</quote>
Obviously, -hd only works in windbg/cdb/ntsd, but _NO_DEBUG_HEAP
should work even if you use VC debugger.
"Pavel Lebedinsky" <m_pll at hotmail dot com> wrote in message news:<3e935d65$1...@news.microsoft.com>...