L
lostnewmexico
This one has me at whit's end.
In order for this to make sense, I will have to lay out the "facts" to
get a hypothesis. There is no easy way to explain this.
Environment: VC2005. MFC Application. Native only.
I compile and link the App.
If I hit CTRL-F5....results 700 ms. (does not recompile or relink)
If I double click in debug folder..700 ms. (does not recompile or
relink)
If I hit F5 (Start With Debugging)...result 200 ms. (does not recompile
or relink)
Profiling the code shows that a computationally expensive function
takes 3 times as long if NOT being debugged. Oddly, a function thats
being called from a DLL takes the same amount of time in both
instances. In other words, it is not a uniform slowdown of the App.
So what are some differences between CTRL-F5 and F5?
Working directory for one.
So to make SURE that both are using the same sets of DLLs, I copy all
the DLL's that the debugger loads(shown in output window) into a
temporary directory, and place my app there.
I run the app. Still 700 MS.
What other differences are there between attaching the debugger and NOT
attaching the debugger that could cause this kind of slowdown????
In order for this to make sense, I will have to lay out the "facts" to
get a hypothesis. There is no easy way to explain this.
Environment: VC2005. MFC Application. Native only.
I compile and link the App.
If I hit CTRL-F5....results 700 ms. (does not recompile or relink)
If I double click in debug folder..700 ms. (does not recompile or
relink)
If I hit F5 (Start With Debugging)...result 200 ms. (does not recompile
or relink)
Profiling the code shows that a computationally expensive function
takes 3 times as long if NOT being debugged. Oddly, a function thats
being called from a DLL takes the same amount of time in both
instances. In other words, it is not a uniform slowdown of the App.
So what are some differences between CTRL-F5 and F5?
Working directory for one.
So to make SURE that both are using the same sets of DLLs, I copy all
the DLL's that the debugger loads(shown in output window) into a
temporary directory, and place my app there.
I run the app. Still 700 MS.
What other differences are there between attaching the debugger and NOT
attaching the debugger that could cause this kind of slowdown????