Click here to Skip to main content
12,813,626 members (31,544 online)

C / C++ / MFC

 
QuestionC++: CreateProcess() launching child applications with UAC dialog for once Pin
Farrukhw26-Nov-12 0:58
memberFarrukhw26-Nov-12 0:58 
AnswerRe: C++: CreateProcess() launching child applications with UAC dialog for once Pin
Andrew Cherednik26-Nov-12 13:21
memberAndrew Cherednik26-Nov-12 13:21 
QuestionHow to use NTGraph3D Activex Control in Visual Studio 2010. Pin
DhrumilS23-Nov-12 1:48
memberDhrumilS23-Nov-12 1:48 
AnswerRe: How to use NTGraph3D Activex Control in Visual Studio 2010. Pin
Richard MacCutchan23-Nov-12 2:43
mvpRichard MacCutchan23-Nov-12 2:43 
QuestionHow to get a ip address from system name Pin
D.Manivelan22-Nov-12 23:20
memberD.Manivelan22-Nov-12 23:20 
AnswerRe: How to get a ip address from system name Pin
msr_codeproject23-Nov-12 0:23
membermsr_codeproject23-Nov-12 0:23 
AnswerRe: How to get a ip address from system name Pin
Rolf Kristensen23-Nov-12 1:41
memberRolf Kristensen23-Nov-12 1:41 
QuestionHeap corruption problem after AfxBeginThread? Pin
bosfan22-Nov-12 22:14
memberbosfan22-Nov-12 22: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:
// 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:
// 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
AnswerRe: Heap corruption problem after AfxBeginThread? Pin
sirama200422-Nov-12 23:13
membersirama200422-Nov-12 23:13 
AnswerRe: Heap corruption problem after AfxBeginThread? Pin
Richard MacCutchan23-Nov-12 0:40
mvpRichard MacCutchan23-Nov-12 0:40 
GeneralRe: Heap corruption problem after AfxBeginThread? Pin
bosfan23-Nov-12 0:44
memberbosfan23-Nov-12 0:44 
AnswerRe: Heap corruption problem after AfxBeginThread? Pin
BilliousBob23-Nov-12 5:49
memberBilliousBob23-Nov-12 5:49 
AnswerRe: Heap corruption problem after AfxBeginThread? Pin
Stephen Hewitt25-Nov-12 8:04
memberStephen Hewitt25-Nov-12 8:04 
QuestionWhat are the steps required, i will connect to the SQL named instance server using the "CDatabase::OpenEx" by using the DNS Name? Pin
lucky_122122-Nov-12 1:41
memberlucky_122122-Nov-12 1:41 
AnswerRe: What are the steps required, i will connect to the SQL named instance server using the "CDatabase::OpenEx" by using the DNS Name? Pin
Richard MacCutchan22-Nov-12 4:38
mvpRichard MacCutchan22-Nov-12 4:38 
QuestionChanging Dialog Button Color at runTime Pin
yogeshs21-Nov-12 0:07
memberyogeshs21-Nov-12 0:07 
AnswerRe: Changing Dialog Button Color at runTime Pin
manoranjan21-Nov-12 1:05
membermanoranjan21-Nov-12 1:05 
GeneralRe: Changing Dialog Button Color at runTime Pin
yogeshs21-Nov-12 1:37
memberyogeshs21-Nov-12 1:37 
GeneralRe: Changing Dialog Button Color at runTime Pin
manoranjan21-Nov-12 2:12
membermanoranjan21-Nov-12 2:12 
GeneralRe: Changing Dialog Button Color at runTime Pin
yogeshs21-Nov-12 19:56
memberyogeshs21-Nov-12 19:56 
GeneralRe: Changing Dialog Button Color at runTime Pin
manoranjan21-Nov-12 20:40
membermanoranjan21-Nov-12 20:40 
QuestionPng Image button problem. Pin
yu-jian20-Nov-12 7:53
groupyu-jian20-Nov-12 7:53 
QuestionMinimize CDialog Problem Pin
yu-jian20-Nov-12 7:22
groupyu-jian20-Nov-12 7:22 
AnswerRe: Minimize CDialog Problem Pin
jeron120-Nov-12 7:31
memberjeron120-Nov-12 7:31 
QuestionRe: Minimize CDialog Problem Pin
Maximilien20-Nov-12 9:26
memberMaximilien20-Nov-12 9:26 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.170308.1 | Last Updated 22 Mar 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid