Click here to Skip to main content
15,923,689 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSchizo list box Pin
Josh Knox30-Aug-01 6:53
Josh Knox30-Aug-01 6:53 
GeneralRe: Schizo list box Pin
Ben Burnett30-Aug-01 7:56
Ben Burnett30-Aug-01 7:56 
GeneralRe: Schizo list box Pin
Tomasz Sowinski30-Aug-01 7:56
Tomasz Sowinski30-Aug-01 7:56 
GeneralWord Automation - Document.SaveAs Pin
AJ12330-Aug-01 6:44
AJ12330-Aug-01 6:44 
GeneralProblems accessing CFile member within a Worker Thread Pin
30-Aug-01 6:26
suss30-Aug-01 6:26 
GeneralRe: Problems accessing CFile member within a Worker Thread Pin
Tomasz Sowinski30-Aug-01 8:29
Tomasz Sowinski30-Aug-01 8:29 
GeneralRe: Problems accessing CFile member within a Worker Thread Pin
Rashid Thadha30-Aug-01 12:01
Rashid Thadha30-Aug-01 12:01 
GeneralHELP - App stays in memory after crash! Pin
Jim A. Johnson30-Aug-01 6:06
Jim A. Johnson30-Aug-01 6:06 
I'm wrestling a problem that has me stumped.

In a nutshell, here's what happens: if I terminate my program in teh debugger - either becasue of a crash or because I manually stop debugging - it remains in memory. Its main window stays up; I can no longer do builds becasue Windows says the file is on use; and I can't even restart, because my app has code to only allow a single instance to run. Clever me!

When this happens, I have to reboot, and since I'm running Win2K, that's about a 5 minute process. I did learn last night, just through blind luck, that the app will eventually shut itself down on its own, like after about 15 minutes.

I can't terminate the app through Task Manager, either - the mesage I get back says "access denied".

My app is multi-threaded, in that I run a couple threads with to watch for file changes with FindFirstChangeNotification. However, this happens even when I disable those threads.

I've tried using AtExit() to set up a function to be called on shutdown, in an attempt to clean up some stuff of which I am suspicious (my MIDI ports, in particular). However, that does not get called when I shut down in the debugger. So much fdor advice from Usenet.

So the questions are:

1) Any idea what could be causing this sort of hangup?
2) Is there any function I can use that will really be called at shutdown, especially during crashes?

TIA x 10^6
GeneralRe: HELP - App stays in memory after crash! Pin
Tim Deveaux30-Aug-01 10:11
Tim Deveaux30-Aug-01 10:11 
GeneralRe: HELP - App stays in memory after crash! (2) Pin
Tim Deveaux30-Aug-01 10:50
Tim Deveaux30-Aug-01 10:50 
GeneralRe: HELP - App stays in memory after crash! (2) Pin
Jim A. Johnson30-Aug-01 11:15
Jim A. Johnson30-Aug-01 11:15 
GeneralRe: HELP - App stays in memory after crash! (2) Pin
Tim Deveaux30-Aug-01 13:53
Tim Deveaux30-Aug-01 13:53 
GeneralRe: HELP - App stays in memory after crash! (2) Pin
Jim A. Johnson30-Aug-01 14:08
Jim A. Johnson30-Aug-01 14:08 
GeneralSetting Focus to an LVITEM Pin
30-Aug-01 6:05
suss30-Aug-01 6:05 
GeneralRe: Setting Focus to an LVITEM Pin
ORi x30-Aug-01 6:22
ORi x30-Aug-01 6:22 
Generalchar find Pin
Matt Newman30-Aug-01 5:28
Matt Newman30-Aug-01 5:28 
GeneralRe: char find Pin
Jim A. Johnson30-Aug-01 5:34
Jim A. Johnson30-Aug-01 5:34 
GeneralRe: char find Pin
30-Aug-01 5:53
suss30-Aug-01 5:53 
GeneralRe: char find Pin
Jim A. Johnson30-Aug-01 5:57
Jim A. Johnson30-Aug-01 5:57 
GeneralRe: char find Pin
Tomasz Sowinski30-Aug-01 8:01
Tomasz Sowinski30-Aug-01 8:01 
GeneralPass NULL to stored procedure with ADO Pin
Bob Groves30-Aug-01 5:11
Bob Groves30-Aug-01 5:11 
GeneralRe: Pass NULL to stored procedure with ADO Pin
Rashid Thadha30-Aug-01 11:54
Rashid Thadha30-Aug-01 11:54 
GeneralCalling conventions Pin
Ravish30-Aug-01 4:36
Ravish30-Aug-01 4:36 
GeneralRe: Calling conventions Pin
Paul M Watt23-Feb-02 16:50
mentorPaul M Watt23-Feb-02 16:50 
GeneralRe: Calling conventions Pin
Rick York23-Feb-02 17:46
mveRick York23-Feb-02 17:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.