Click here to Skip to main content
15,914,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Life span of a Object???? Pin
LunaticFringe22-Dec-09 5:27
LunaticFringe22-Dec-09 5:27 
GeneralRe: Life span of a Object???? Pin
Rajesh R Subramanian22-Dec-09 6:02
professionalRajesh R Subramanian22-Dec-09 6:02 
GeneralRe: Life span of a Object???? Pin
LunaticFringe22-Dec-09 6:14
LunaticFringe22-Dec-09 6:14 
AnswerRe: Life span of a Object???? [modified] Pin
Nelek22-Dec-09 4:48
protectorNelek22-Dec-09 4:48 
GeneralRe: Life span of a Object???? Pin
Rajesh R Subramanian22-Dec-09 5:14
professionalRajesh R Subramanian22-Dec-09 5:14 
GeneralRe: Life span of a Object???? Pin
Nelek22-Dec-09 8:04
protectorNelek22-Dec-09 8:04 
GeneralRe: Life span of a Object???? Pin
Rajesh R Subramanian22-Dec-09 18:49
professionalRajesh R Subramanian22-Dec-09 18:49 
QuestionStack corruption - STRANGE PROBLEM!! Pin
Shailesh H22-Dec-09 3:44
Shailesh H22-Dec-09 3:44 
I am launching a worker thread . Inside the thread function i open CDialog's using DoModal().There is no problem in the first launch of the thread.
But in second launch the stack seems to get corrupted, the CString member variable of the Dialogs show values like "C4".. "D5" etc before even they r initialized in the Dialogs contructor(i.e when the execution is within the constructor).Even after Initializing the dialog's CString variables in constructor the variables do not get initialized, they still show "C4" etc

psuedo code below:

line 1:CWelcomeDlg dlg;
line 2:dlg.SetTitle(strDialogTitle);//Set the dialog Title
line 3 :ret = dlg.DoModal();//show dialog

//Constructor
CWelcomeDlg::CWelcomeDlg(CWnd* pParent /*=NULL*/)
: CDialog(CWelcomeDlg::IDD, pParent)
{

m_strData1=_T("");---->m_strData1 shows value "C4" and cannot b initialized to empty string.

m_strData2=_T("");--->m_strData1 shows value "C4"
m_strData3=_T("");--->m_strData1 shows value "C4"
}
AnswerRe: Stack corruption - STRANGE PROBLEM!! Pin
Shailesh H22-Dec-09 4:07
Shailesh H22-Dec-09 4:07 
GeneralRe: Stack corruption - STRANGE PROBLEM!! [modified] Pin
Code-o-mat22-Dec-09 4:30
Code-o-mat22-Dec-09 4:30 
AnswerRe: Stack corruption - STRANGE PROBLEM!! Pin
Rajesh R Subramanian22-Dec-09 4:42
professionalRajesh R Subramanian22-Dec-09 4:42 
AnswerRe: Stack corruption - STRANGE PROBLEM!! Pin
Maximilien22-Dec-09 4:11
Maximilien22-Dec-09 4:11 
QuestionRe: Stack corruption - STRANGE PROBLEM!! Pin
Nelek22-Dec-09 4:17
protectorNelek22-Dec-09 4:17 
QuestionRe: Stack corruption - STRANGE PROBLEM!! Pin
22491722-Dec-09 13:31
22491722-Dec-09 13:31 
QuestionNot able to sniff TCP packet on windows Vista. But could do so on XP Pin
Aseem Sharma22-Dec-09 1:08
Aseem Sharma22-Dec-09 1:08 
QuestionRe: Not able to sniff TCP packet on windows Vista. But could do so on XP Pin
CPallini22-Dec-09 1:34
mveCPallini22-Dec-09 1:34 
AnswerRe: Not able to sniff TCP packet on windows Vista. But could do so on XP Pin
Aseem Sharma22-Dec-09 20:16
Aseem Sharma22-Dec-09 20:16 
QuestionUnable to start the windows service in Windows server 2003 Pin
Arun Abraham Jose22-Dec-09 0:13
Arun Abraham Jose22-Dec-09 0:13 
AnswerRe: Unable to start the windows service in Windows server 2003 Pin
Richard Andrew x6422-Dec-09 10:22
professionalRichard Andrew x6422-Dec-09 10:22 
QuestionAccess violation iin SendMessage Pin
Anu_Bala21-Dec-09 23:49
Anu_Bala21-Dec-09 23:49 
AnswerRe: Access violation iin SendMessage Pin
CPallini22-Dec-09 0:11
mveCPallini22-Dec-09 0:11 
AnswerRe: Access violation iin SendMessage Pin
KingsGambit22-Dec-09 0:17
KingsGambit22-Dec-09 0:17 
AnswerRe: Access violation iin SendMessage Pin
Maximilien22-Dec-09 0:22
Maximilien22-Dec-09 0:22 
GeneralRe: Access violation iin SendMessage Pin
Anu_Bala22-Dec-09 0:48
Anu_Bala22-Dec-09 0:48 
GeneralRe: Access violation iin SendMessage Pin
CPallini22-Dec-09 1:35
mveCPallini22-Dec-09 1:35 

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.