Click here to Skip to main content
15,886,578 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Found Api's Causing Heap Corruption CPallini You are Great thanks Pin
ForNow5-Dec-18 7:28
ForNow5-Dec-18 7:28 
GeneralRe: Found Api's Causing Heap Corruption Pin
Richard MacCutchan5-Dec-18 7:43
mveRichard MacCutchan5-Dec-18 7:43 
GeneralRe: Found Api's Causing Heap Corruption Pin
CPallini5-Dec-18 7:49
mveCPallini5-Dec-18 7:49 
QuestionCComboBox list Appears After Trying to Close out Dialog Pin
ForNow4-Dec-18 16:06
ForNow4-Dec-18 16:06 
GeneralRe: CComboBox list Appears After Trying to Close out Dialog Pin
Richard MacCutchan4-Dec-18 22:13
mveRichard MacCutchan4-Dec-18 22:13 
GeneralRe: CComboBox list Appears After Trying to Close out Dialog Pin
ForNow5-Dec-18 2:09
ForNow5-Dec-18 2:09 
GeneralRe: CComboBox list Appears After Trying to Close out Dialog Pin
Richard MacCutchan5-Dec-18 2:41
mveRichard MacCutchan5-Dec-18 2:41 
GeneralRe: CComboBox list Appears After Trying to Close out Dialog Pin
ForNow5-Dec-18 2:50
ForNow5-Dec-18 2:50 
I Did but I don't understand why

I am getting a list of Addreess Spaces information from z/os I only want to Add the the list box the Job Name. Asid information is 45 bytes the first 8 is the JobName. So the First would be *Master*


I moved the code which copies the first 8 charcates from CComboBox::DrawItem to the DialogBox

just got Debug Assert on the AddString I think I am doing everything right;

C++
m_Simple.arrayptr = new char *[j+1];
	traverse = instr;
	for (int i = 0; i < j + 1; i++)
	{
		m_Simple.arrayptr[i] = new char(9);
		memset(m_Simple.arrayptr[i], 0x00, 9);
		memcpy(m_Simple.arrayptr[i], traverse, 8);
		m_Simple.AddString(m_Simple.arrayptr[i]);
		traverse = (char *)traverse + 45;
	}


The twisted Arrow after the Debug Heap Assertion is pointing to
C++
traverse = (char *)traverse + 45


So I guess there is a problem with AddString

Not sure what I am doing wrong
GeneralRe: CComboBox list Appears After Trying to Close out Dialog Pin
Richard MacCutchan5-Dec-18 7:36
mveRichard MacCutchan5-Dec-18 7:36 
Question"undefined reference " error - what am I missing ? Pin
Vaclav_4-Dec-18 7:19
Vaclav_4-Dec-18 7:19 
AnswerRe: "undefined reference " error - what am I missing ? Pin
leon de boer4-Dec-18 7:36
leon de boer4-Dec-18 7:36 
GeneralRe: "undefined reference " error - what am I missing ? Pin
Vaclav_4-Dec-18 7:50
Vaclav_4-Dec-18 7:50 
QuestionRe: "undefined reference " error - what am I missing ? Pin
Richard MacCutchan4-Dec-18 8:55
mveRichard MacCutchan4-Dec-18 8:55 
AnswerRe: "undefined reference " error - what am I missing ? Pin
Joe Woodbury4-Dec-18 9:02
professionalJoe Woodbury4-Dec-18 9:02 
GeneralRe: "undefined reference " error - what am I missing ? Pin
Vaclav_4-Dec-18 12:33
Vaclav_4-Dec-18 12:33 
GeneralRe: "undefined reference " error - what am I missing ? Pin
Joe Woodbury4-Dec-18 12:36
professionalJoe Woodbury4-Dec-18 12:36 
GeneralRe: "undefined reference " error - what am I missing ? Pin
Vaclav_4-Dec-18 15:15
Vaclav_4-Dec-18 15:15 
GeneralRe: "undefined reference " error - what am I missing ? Pin
Joe Woodbury4-Dec-18 18:48
professionalJoe Woodbury4-Dec-18 18:48 
GeneralRe: "undefined reference " error - what am I missing ? Pin
Vaclav_5-Dec-18 4:35
Vaclav_5-Dec-18 4:35 
GeneralRe: "undefined reference " error - what am I missing ? Pin
Richard MacCutchan4-Dec-18 22:00
mveRichard MacCutchan4-Dec-18 22:00 
QuestionString Search In C++ Pin
Hack Baba4-Dec-18 6:07
Hack Baba4-Dec-18 6:07 
AnswerRe: String Search In C++ Pin
jeron14-Dec-18 6:10
jeron14-Dec-18 6:10 
GeneralRe: String Search In C++ Pin
Hack Baba4-Dec-18 6:21
Hack Baba4-Dec-18 6:21 
GeneralRe: String Search In C++ Pin
jeron14-Dec-18 7:49
jeron14-Dec-18 7:49 
AnswerRe: String Search In C++ Pin
Richard MacCutchan4-Dec-18 6:33
mveRichard MacCutchan4-Dec-18 6:33 

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.