Click here to Skip to main content
16,011,804 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to terminate/close an application launched by ShellExecute ? Pin
Prem Kumar20-Mar-02 19:58
Prem Kumar20-Mar-02 19:58 
AnswerRe: How to terminate/close an application launched by ShellExecute ? Pin
Nish Nishant20-Mar-02 21:28
sitebuilderNish Nishant20-Mar-02 21:28 
AnswerRe: How to terminate/close an application launched by ShellExecute ? Pin
Joaquín M López Muñoz20-Mar-02 22:04
Joaquín M López Muñoz20-Mar-02 22:04 
Generalexecuting older version application in new version Pin
Bhikshapathi Gorantla20-Mar-02 18:16
Bhikshapathi Gorantla20-Mar-02 18:16 
GeneralRe: executing older version application in new version Pin
Tomasz Sowinski20-Mar-02 22:31
Tomasz Sowinski20-Mar-02 22:31 
GeneralCPP C# Pin
20-Mar-02 18:16
suss20-Mar-02 18:16 
GeneralRe: CPP C# Pin
Tomasz Sowinski20-Mar-02 22:44
Tomasz Sowinski20-Mar-02 22:44 
GeneralBaffling Thread problem Pin
MarkPQ20-Mar-02 18:12
MarkPQ20-Mar-02 18:12 
Hi All,

I'm having some problems with a some threads of mine. The thread in question is called TxThread. During this thread I create a new thread called ListRecThread. The TxThread can be closed before the ListRecThread may be finished, so from the TxThread I try to post a message to the ListRecThread to quit, which the ListRec is checking for.

The ListRecThread gets the Quit message and I return to break out of the loop. I post the quit message from the TxThread using: ListRecThread->PostThreadMessage(WM_QUIT, 0, 0);

and on the next line I have
WaitForSingleObject(ListRecThread->m_hThread, INFINITE);
but once this line executes is says Debug assertion failed followed by a message saying the thread has exited with code 0x3

If anyone has any idea as to what is wrong or if I'm doing something silly here, I'd appreciate any help!

Edit: By the way, the TxThread is in an MFC Extension DLL, could this be causing the problem????
GeneralRe: Baffling Thread problem Pin
Vivek Rajan20-Mar-02 18:57
Vivek Rajan20-Mar-02 18:57 
GeneralRe: Baffling Thread problem Pin
MarkPQ20-Mar-02 19:13
MarkPQ20-Mar-02 19:13 
GeneralRe: Baffling Thread problem Pin
Tomasz Sowinski20-Mar-02 22:34
Tomasz Sowinski20-Mar-02 22:34 
GeneralRe: Baffling Thread problem Pin
MarkPQ21-Mar-02 15:20
MarkPQ21-Mar-02 15:20 
GeneralWriting to a file.. Pin
Neha20-Mar-02 17:44
Neha20-Mar-02 17:44 
GeneralRe: Writing to a file.. Pin
Paul M Watt20-Mar-02 17:54
mentorPaul M Watt20-Mar-02 17:54 
GeneralRe: Writing to a file.. Pin
Neha20-Mar-02 18:14
Neha20-Mar-02 18:14 
GeneralRe: Writing to a file.. Pin
Neha20-Mar-02 19:42
Neha20-Mar-02 19:42 
General#pragma Pin
bryce20-Mar-02 17:09
bryce20-Mar-02 17:09 
General#pragma warning( disable : 4006) Pin
Paul M Watt20-Mar-02 17:29
mentorPaul M Watt20-Mar-02 17:29 
GeneralRe: #pragma warning( disable : 4006)-Nope Pin
bryce20-Mar-02 17:34
bryce20-Mar-02 17:34 
GeneralRe: #pragma warning( disable : 4006)-Nope Pin
Paul M Watt20-Mar-02 17:49
mentorPaul M Watt20-Mar-02 17:49 
GeneralRe: #pragma Pin
alex.barylski20-Mar-02 17:49
alex.barylski20-Mar-02 17:49 
General.NET Benchmark Challenge Pin
Chris Maunder20-Mar-02 14:44
cofounderChris Maunder20-Mar-02 14:44 
GeneralRe: .NET Benchmark Challenge Pin
Nish Nishant20-Mar-02 17:14
sitebuilderNish Nishant20-Mar-02 17:14 
GeneralRe: .NET Benchmark Challenge Pin
Jason Hooper20-Mar-02 20:39
Jason Hooper20-Mar-02 20:39 
GeneralRe: .NET Benchmark Challenge Pin
Chris Maunder21-Mar-02 0:01
cofounderChris Maunder21-Mar-02 0:01 

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.