Click here to Skip to main content
16,005,389 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Tracing memory leaks in VC++ 6 Pin
Larry J. Siddens28-Aug-03 4:18
Larry J. Siddens28-Aug-03 4:18 
GeneralRe: Tracing memory leaks in VC++ 6 Pin
Fahr28-Aug-03 5:07
Fahr28-Aug-03 5:07 
Questionhow to have a 2 frame SDI window? Pin
bigsami21-Aug-03 22:27
bigsami21-Aug-03 22:27 
AnswerRe: how to have a 2 frame SDI window? Pin
Cedric Moonen21-Aug-03 22:44
Cedric Moonen21-Aug-03 22:44 
Questionput button in title bar of dialog?? Pin
xxhimanshu21-Aug-03 21:55
xxhimanshu21-Aug-03 21:55 
AnswerRe: put button in title bar of dialog?? Pin
Miszou22-Aug-03 10:57
Miszou22-Aug-03 10:57 
QuestionWhy toolbar is under menu by view ? Pin
vgrigor21-Aug-03 21:46
vgrigor21-Aug-03 21:46 
GeneralDialog in a thread Pin
Cedric Moonen21-Aug-03 21:40
Cedric Moonen21-Aug-03 21:40 
Hello!
I'll try to explain my problem as precise as possible.

Imagine I have several charts on the screen that displays some signals. I want to let the user calibrate them when he wants. So, I open a dialog in wich he can enter the data for the calibration of the signal.
Up to here, no problems. But I want the signals to be active in background! So I need this dialog to be in a indepedant thread. But this give me a Debug Assertion Fault.

Here is my code:

DWORD WINAPI CalibrateThreadProc( LPVOID pParam )
{
	CCalibrateDlg* pCalDlg = new CCalibrateDlg;
	pCalDlg->DoModal();

	return 0;
}



void CMonitoringDoc::OnCalibrate() 
{
	// TODO: Add your command handler code here
	DWORD ThreadID;
	HANDLE m_pCalibThread = CreateThread(
					NULL,	//No Security
					0,		//Same Stacksize
					CalibrateThreadProc,	//Thread Proc
					this,	//Adress of my class
					0,		//start at once
					&ThreadID);
}


What is the problem ?? I don't pass any C++ object through the thread (or I don't use it).
Thanks
GeneralRe: Dialog in a thread Pin
Cedric Moonen21-Aug-03 21:56
Cedric Moonen21-Aug-03 21:56 
GeneralRe: Dialog in a thread Pin
Neville Franks21-Aug-03 23:24
Neville Franks21-Aug-03 23:24 
GeneralRe: Dialog in a thread Pin
Cedric Moonen21-Aug-03 23:32
Cedric Moonen21-Aug-03 23:32 
Questionhow to create a CString with huge lengh? Pin
wangnanjing21-Aug-03 20:53
wangnanjing21-Aug-03 20:53 
AnswerRe: how to create a CString with huge lengh? Pin
Nish Nishant21-Aug-03 21:04
sitebuilderNish Nishant21-Aug-03 21:04 
GeneralRe: how to create a CString with huge lengh? Pin
Manfred Staiger22-Aug-03 1:31
Manfred Staiger22-Aug-03 1:31 
AnswerRe: how to create a CString with huge lengh? Pin
Joey Bloggs21-Aug-03 21:17
Joey Bloggs21-Aug-03 21:17 
AnswerRe: how to create a CString with huge lengh? Pin
Paolo Bardella22-Aug-03 1:54
Paolo Bardella22-Aug-03 1:54 
Generaldebug mydll.dll works fine, releaseminsize doesn't Pin
suninwater21-Aug-03 20:31
suninwater21-Aug-03 20:31 
GeneralRe: debug mydll.dll works fine, releaseminsize doesn't Pin
Dominik Reichl21-Aug-03 20:42
Dominik Reichl21-Aug-03 20:42 
GeneralRe: debug mydll.dll works fine, releaseminsize doesn't Pin
David Crow22-Aug-03 3:06
David Crow22-Aug-03 3:06 
Generaladodc.cpp reference Pin
Dmitriy Aleksandrovich21-Aug-03 19:43
Dmitriy Aleksandrovich21-Aug-03 19:43 
GeneralRecycle bin API restore all files API Pin
rohit.dhamija21-Aug-03 19:06
rohit.dhamija21-Aug-03 19:06 
GeneralRe: Recycle bin API restore all files API Pin
Dominik Reichl21-Aug-03 20:48
Dominik Reichl21-Aug-03 20:48 
GeneralRe: Recycle bin API restore all files API Pin
rohit.dhamija21-Aug-03 20:55
rohit.dhamija21-Aug-03 20:55 
GeneralRe: Recycle bin API restore all files API Pin
David Crow22-Aug-03 2:58
David Crow22-Aug-03 2:58 
GeneralSimple Problem VC++6 Pin
questaware21-Aug-03 19:01
questaware21-Aug-03 19: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.