Click here to Skip to main content
15,898,538 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Print_Zero Function Pin
Ryan Binns1-Feb-05 17:27
Ryan Binns1-Feb-05 17:27 
GeneralDebug Assertion Failed Pin
vc-programmer-1-Feb-05 17:09
vc-programmer-1-Feb-05 17:09 
GeneralRe: Debug Assertion Failed Pin
Ryan Binns1-Feb-05 17:32
Ryan Binns1-Feb-05 17:32 
GeneralRe: my problem code here Pin
vc-programmer-1-Feb-05 20:10
vc-programmer-1-Feb-05 20:10 
GeneralRe: my problem code here Pin
Roger Allen1-Feb-05 23:14
Roger Allen1-Feb-05 23:14 
GeneralRe: my problem code here Pin
vc-programmer-1-Feb-05 23:28
vc-programmer-1-Feb-05 23:28 
GeneralRe: my problem code here Pin
Ravi Bhavnani2-Feb-05 2:52
professionalRavi Bhavnani2-Feb-05 2:52 
GeneralRe: my problem code here Pin
Bob Ciora2-Feb-05 13:05
Bob Ciora2-Feb-05 13:05 
And therein lies the rub. What Roger was pointing out is exactly what's happening. When adding the CStringArray has strings added to it in the DLL, the guts of the CStrings inside the CStringArray are allocated by the DLL. But then the CStringArray goes out of scope in the application, the app tries to free it from the heap. Hence, the error Frown | :(

By the way, this particular error can occur when you overflow an allocated block. Ten gallons of crap doesn't fit in a five gallon bucket (feel free to convert to liters Wink | ;) ).


Bob Ciora
GeneralRe: CStringArray Pin
vc-programmer-2-Feb-05 16:46
vc-programmer-2-Feb-05 16:46 
GeneralRe: CStringArray Pin
Ravi Bhavnani3-Feb-05 2:35
professionalRavi Bhavnani3-Feb-05 2:35 
GeneralADO Pin
yingkou1-Feb-05 15:50
yingkou1-Feb-05 15:50 
GeneralRe: ADO Pin
BlackDice2-Feb-05 3:10
BlackDice2-Feb-05 3:10 
GeneralRe: ADO Pin
yingkou2-Feb-05 13:53
yingkou2-Feb-05 13:53 
Generalspin control for opengl Pin
cell511-Feb-05 14:42
cell511-Feb-05 14:42 
Generalspin control for opengl Pin
cell511-Feb-05 14:39
cell511-Feb-05 14:39 
QuestionHow to turn off hard disk immediately? Pin
ErisonWu1-Feb-05 14:09
ErisonWu1-Feb-05 14:09 
AnswerRe: How to turn off hard disk immediately? Pin
David Crow2-Feb-05 2:55
David Crow2-Feb-05 2:55 
GeneralRe: How to turn off hard disk immediately? Pin
ErisonWu2-Feb-05 14:48
ErisonWu2-Feb-05 14:48 
GeneralRe: How to turn off hard disk immediately? Pin
David Crow3-Feb-05 2:39
David Crow3-Feb-05 2:39 
GeneralA Simple Q on Returning Values from a Dialog Pin
LighthouseJ1-Feb-05 13:53
LighthouseJ1-Feb-05 13:53 
GeneralRe: A Simple Q on Returning Values from a Dialog Pin
Ryan Binns1-Feb-05 18:01
Ryan Binns1-Feb-05 18:01 
GeneralRe: A Simple Q on Returning Values from a Dialog Pin
LighthouseJ1-Feb-05 18:24
LighthouseJ1-Feb-05 18:24 
GeneralRe: A Simple Q on Returning Values from a Dialog Pin
David Crow2-Feb-05 3:04
David Crow2-Feb-05 3:04 
GeneralRe: A Simple Q on Returning Values from a Dialog Pin
LighthouseJ2-Feb-05 3:32
LighthouseJ2-Feb-05 3:32 
QuestionHow to tell when a socket is closed? Pin
shultas1-Feb-05 12:53
shultas1-Feb-05 12:53 

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.