Hello,
I have an issue with closing my application. I'll try to convey my problem as coherently as possible. It's a mite convoluted.
I have my program that I'm coding in C++, using MS Visual Studio 2005. I have a Log Manager in said program that uses DirectX to write messages to the applications client area.
Describing the problem as "the time my program takes to close" is a bit of a misnomer. What's actually happening (I thought I'd describe it in it's own paragraphs) is thus: I terminate the application. The app is returning 0 to WinMain. All of the code is running/completing. I have Visual Leak Detector and DirectX Error Logging enabled and I'm not getting any unreleased devices or memory leaks. The program closes. The part that takes a long time is Visual Studio exiting Debug mode and returning to the Editing mode (not sure what the normal mode is called).
To elaborate; you know when you run your app in debug mode and the layout of Visual Studio changes (The location of the callstack/output window etc.)? And then you stop your app, and the layout of VS reverts to how you had it when coding before you ran the app? The error is in the time between stopping the app (alt-f4 is how I'm terminating the app) and Visual Studio reverting the layout to the way it was before I ran the app.
Sorry for the drawn out explaination, but it seems that the more info I can provide, the more chance there is of a resolution.
Here is the problem: when I write messages to the screen, the application takes an amount of time relative to the amount of time the messages were displayed to close. That is, the longer I'm writing messages, the longer my application takes to close.
I'm at work at the moment, but can provide code or detailed explaination of any processes involved if necessary when I get home. If anyone has any preliminary insight, it'd be appreciated.
I have an issue with closing my application. I'll try to convey my problem as coherently as possible. It's a mite convoluted.
I have my program that I'm coding in C++, using MS Visual Studio 2005. I have a Log Manager in said program that uses DirectX to write messages to the applications client area.
Describing the problem as "the time my program takes to close" is a bit of a misnomer. What's actually happening (I thought I'd describe it in it's own paragraphs) is thus: I terminate the application. The app is returning 0 to WinMain. All of the code is running/completing. I have Visual Leak Detector and DirectX Error Logging enabled and I'm not getting any unreleased devices or memory leaks. The program closes. The part that takes a long time is Visual Studio exiting Debug mode and returning to the Editing mode (not sure what the normal mode is called).
To elaborate; you know when you run your app in debug mode and the layout of Visual Studio changes (The location of the callstack/output window etc.)? And then you stop your app, and the layout of VS reverts to how you had it when coding before you ran the app? The error is in the time between stopping the app (alt-f4 is how I'm terminating the app) and Visual Studio reverting the layout to the way it was before I ran the app.
Sorry for the drawn out explaination, but it seems that the more info I can provide, the more chance there is of a resolution.
Here is the problem: when I write messages to the screen, the application takes an amount of time relative to the amount of time the messages were displayed to close. That is, the longer I'm writing messages, the longer my application takes to close.
I'm at work at the moment, but can provide code or detailed explaination of any processes involved if necessary when I get home. If anyone has any preliminary insight, it'd be appreciated.
Comment