Click here to Skip to main content
16,006,442 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CString Bug??? Pin
levay1-May-03 5:49
levay1-May-03 5:49 
GeneralRe: CString Bug??? Pin
levay1-May-03 6:10
levay1-May-03 6:10 
AnswerRe: CString Bug??? Pin
Nitron1-May-03 5:38
Nitron1-May-03 5:38 
GeneralRe: CString Bug??? Pin
levay1-May-03 5:52
levay1-May-03 5:52 
GeneralRe: CString Bug??? Pin
Nitron1-May-03 5:54
Nitron1-May-03 5:54 
GeneralRe: CString Bug??? Pin
David Crow1-May-03 7:45
David Crow1-May-03 7:45 
GeneralRe: CString Bug??? Pin
levay1-May-03 9:00
levay1-May-03 9:00 
AnswerRe: CString Bug??? Pin
Rein Hillmann1-May-03 6:30
Rein Hillmann1-May-03 6:30 
I don't know what your CStringEx extension class is or how it is defined but by the symptoms, I'd guess you have stack corruption. The fact that the bug goes away when you allocate more memory leads me to believe that something is trashing the stack if that allocation doesn't take place.

I tried to reproduce this problem using CString but couldn't (in debug and retail). Have you tried to use CString instead of CStringEx? What you could also do is debug the retail executable in the dissasembler and keep watching the stack to see if the return pointer is kept intact.
GeneralRe: CString Bug??? Pin
levay1-May-03 7:02
levay1-May-03 7:02 
AnswerRe: CString Bug??? Pin
John R. Shaw2-May-03 22:24
John R. Shaw2-May-03 22:24 
Generalmultiline list view Pin
SanjiDeluxe1-May-03 4:30
SanjiDeluxe1-May-03 4:30 
GeneralRe: multiline list view Pin
RobJones1-May-03 5:03
RobJones1-May-03 5:03 
GeneralRe: multiline list view Pin
happosai1-May-03 7:35
happosai1-May-03 7:35 
Generalopen solitare Pin
InternetMill1-May-03 4:28
InternetMill1-May-03 4:28 
GeneralRe: open solitare Pin
Nick Parker1-May-03 4:44
protectorNick Parker1-May-03 4:44 
GeneralRe: open solitare Pin
David Crow1-May-03 5:19
David Crow1-May-03 5:19 
Generalinstall .inf file with C++ code Pin
aslm1-May-03 4:00
aslm1-May-03 4:00 
GeneralRe: install .inf file with C++ code Pin
John R. Shaw2-May-03 22:51
John R. Shaw2-May-03 22:51 
GeneralADO AddNew Record Pin
roshanak1-May-03 3:37
roshanak1-May-03 3:37 
GeneralRe: ADO AddNew Record Pin
David Crow1-May-03 3:47
David Crow1-May-03 3:47 
GeneralRe: ADO AddNew Record Pin
roshanak1-May-03 3:52
roshanak1-May-03 3:52 
GeneralRe: ADO AddNew Record Pin
David Crow1-May-03 3:55
David Crow1-May-03 3:55 
GeneralRe: ADO AddNew Record Pin
roshanak1-May-03 4:04
roshanak1-May-03 4:04 
GeneralRe: ADO AddNew Record Pin
Nick Parker1-May-03 4:10
protectorNick Parker1-May-03 4:10 
GeneralRe: ADO AddNew Record Pin
Toni781-May-03 12:24
Toni781-May-03 12:24 

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.