Click here to Skip to main content
15,904,024 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: eclipse Pin
ho_khalaf26-Nov-12 8:08
ho_khalaf26-Nov-12 8:08 
AnswerRe: eclipse Pin
Richard MacCutchan26-Nov-12 8:15
mveRichard MacCutchan26-Nov-12 8:15 
Questiondo-while did not work in eclipse c\c++ IDE ? Pin
ho_khalaf26-Nov-12 6:50
ho_khalaf26-Nov-12 6:50 
AnswerRe: do-while did not work in eclipse c\c++ IDE ? Pin
Chris Meech26-Nov-12 7:07
Chris Meech26-Nov-12 7:07 
AnswerRe: do-while did not work in eclipse c\c++ IDE ? Pin
Richard MacCutchan26-Nov-12 8:00
mveRichard MacCutchan26-Nov-12 8:00 
GeneralRe: do-while did not work in eclipse c\c++ IDE ? Pin
ho_khalaf26-Nov-12 8:12
ho_khalaf26-Nov-12 8:12 
GeneralRe: do-while did not work in eclipse c\c++ IDE ? Pin
Richard MacCutchan26-Nov-12 8:14
mveRichard MacCutchan26-Nov-12 8:14 
GeneralRe: do-while did not work in eclipse c\c++ IDE ? Pin
ho_khalaf26-Nov-12 8:16
ho_khalaf26-Nov-12 8:16 
GeneralRe: do-while did not work in eclipse c\c++ IDE ? Pin
ho_khalaf26-Nov-12 8:20
ho_khalaf26-Nov-12 8:20 
GeneralRe: do-while did not work in eclipse c\c++ IDE ? Pin
Richard MacCutchan26-Nov-12 8:22
mveRichard MacCutchan26-Nov-12 8:22 
GeneralRe: do-while did not work in eclipse c\c++ IDE ? Pin
ho_khalaf26-Nov-12 8:27
ho_khalaf26-Nov-12 8:27 
GeneralRe: do-while did not work in eclipse c\c++ IDE ? Pin
Richard MacCutchan26-Nov-12 8:57
mveRichard MacCutchan26-Nov-12 8:57 
AnswerRe: do-while did not work in eclipse c\c++ IDE ? Pin
David Crow26-Nov-12 10:37
David Crow26-Nov-12 10:37 
GeneralRe: do-while did not work in eclipse c\c++ IDE ? Pin
ho_khalaf26-Nov-12 10:45
ho_khalaf26-Nov-12 10:45 
GeneralRe: do-while did not work in eclipse c\c++ IDE ? Pin
ho_khalaf26-Nov-12 12:02
ho_khalaf26-Nov-12 12:02 
GeneralRe: do-while did not work in eclipse c\c++ IDE ? Pin
David Crow26-Nov-12 16:39
David Crow26-Nov-12 16:39 
GeneralRe: do-while did not work in eclipse c\c++ IDE ? Pin
ho_khalaf26-Nov-12 19:26
ho_khalaf26-Nov-12 19:26 
QuestionC++: CreateProcess() launching child applications with UAC dialog for once Pin
Farrukhw25-Nov-12 23:58
Farrukhw25-Nov-12 23:58 
AnswerRe: C++: CreateProcess() launching child applications with UAC dialog for once Pin
chaau26-Nov-12 12:21
chaau26-Nov-12 12:21 
QuestionHow to use NTGraph3D Activex Control in Visual Studio 2010. Pin
DhrumilS23-Nov-12 0:48
DhrumilS23-Nov-12 0:48 
AnswerRe: How to use NTGraph3D Activex Control in Visual Studio 2010. Pin
Richard MacCutchan23-Nov-12 1:43
mveRichard MacCutchan23-Nov-12 1:43 
QuestionHow to get a ip address from system name Pin
D.Manivelan22-Nov-12 22:20
D.Manivelan22-Nov-12 22:20 
AnswerRe: How to get a ip address from system name Pin
msr_codeproject22-Nov-12 23:23
msr_codeproject22-Nov-12 23:23 
AnswerRe: How to get a ip address from system name Pin
Rolf Kristensen23-Nov-12 0:41
Rolf Kristensen23-Nov-12 0:41 
QuestionHeap corruption problem after AfxBeginThread? Pin
bosfan22-Nov-12 21:14
bosfan22-Nov-12 21:14 
Hi,
i need some help to solve this problem after create of worker thread.
When i create a worker thread i receive this error message:
Windows has triggered a breakpoint in myprog.exe.

This may be due to a corruption of the heap, which indicates a bug in myprog.exe or any of the DLLs it has loaded.

This is the code snippet:
C++
// create Thread:
CWinThread* cmythr= AfxBeginThread(controlfunc,params, THREAD_PRIORITY_HIGHEST, 0,CREATE_SUSPENDED,0);
if(NULL != cmythr)
{
	cmythr->ResumeThread();
}

but after maybe 10 seconds i receive this error message:
and the debugger show in this code in the file thrdcore.cpp:
C++
// first -- check for simple worker thread
DWORD nResult = 0;
if (pThread->m_pfnThreadProc != NULL)
{
	nResult = (*pThread->m_pfnThreadProc)(pThread->m_pThreadParams);
	ASSERT_VALID(pThread);
}


A thing what make me confuse is that i cant find this position with memory allocation, i do nothing like this in this Function?
No parameter is NULL, what i'm doing wrong?
Any help is welcome
Thanks
bosfan

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.