Click here to Skip to main content
15,916,180 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Weird stack corruption problem Pin
Naveen17-Aug-08 18:22
Naveen17-Aug-08 18:22 
AnswerRe: Weird stack corruption problem Pin
Stephen Hewitt17-Aug-08 18:24
Stephen Hewitt17-Aug-08 18:24 
GeneralRe: Weird stack corruption problem Pin
jozsurf17-Aug-08 18:33
jozsurf17-Aug-08 18:33 
GeneralRe: Weird stack corruption problem Pin
Stephen Hewitt17-Aug-08 18:36
Stephen Hewitt17-Aug-08 18:36 
GeneralRe: Weird stack corruption problem Pin
jozsurf17-Aug-08 19:45
jozsurf17-Aug-08 19:45 
GeneralRe: Weird stack corruption problem Pin
Stephen Hewitt17-Aug-08 19:57
Stephen Hewitt17-Aug-08 19:57 
GeneralRe: Weird stack corruption problem Pin
jozsurf17-Aug-08 20:23
jozsurf17-Aug-08 20:23 
GeneralRe: Weird stack corruption problem Pin
Nibu babu thomas17-Aug-08 18:52
Nibu babu thomas17-Aug-08 18:52 
jozsurf wrote:
Obviously it could be something in the project settings which is setting this off


Yes, In my case this was true, but not sure about yours!

I will explain mine...

First bit of a background. I am porting a project in VC6 to VC8.

So I had two projects Project1 and Project2. So my first project is a lib project. Project2 statically links to Project1. So whenever I used std::map in my Project1 class Project2 crashed. "this" was getting corrupted, I just couldn't understand what was wrong.

So my sixth sense came into play and I checked the project settings, and there it was, Project1 didn't have "_SECURE_SCL=0" defined and Project2 had this set, so obviously as we know that _SECURE_SCL does add some piece of code.

So immediately I made my project settings of all projects consistent and all crashes disappeared. Smile | :)

Don't know if this is the case with you. But I am sure there is something in your project settings that's causing this problem. Most probably _SECURE_SCL related stuff.


Nibu babu thomas
Microsoft MVP for VC++


Code must be written to be read, not by the compiler, but by another human being.

Programming Blog: http://nibuthomas.wordpress.com

GeneralRe: Weird stack corruption problem Pin
Stephen Hewitt17-Aug-08 19:49
Stephen Hewitt17-Aug-08 19:49 
GeneralRe: Weird stack corruption problem Pin
jozsurf17-Aug-08 19:55
jozsurf17-Aug-08 19:55 
QuestionDo I need call CString::Empty? Pin
fantasy121517-Aug-08 17:27
fantasy121517-Aug-08 17:27 
AnswerRe: Do I need call CString::Empty? Pin
Naveen17-Aug-08 17:46
Naveen17-Aug-08 17:46 
GeneralRe: Do I need call CString::Empty? Pin
fantasy121517-Aug-08 17:54
fantasy121517-Aug-08 17:54 
GeneralRe: Do I need call CString::Empty? Pin
Naveen17-Aug-08 18:01
Naveen17-Aug-08 18:01 
AnswerRe: Do I need call CString::Empty? Pin
ThatsAlok19-Aug-08 20:34
ThatsAlok19-Aug-08 20:34 
QuestionRe: Do I need call CString::Empty? Pin
nul2629-Sep-10 22:34
nul2629-Sep-10 22:34 
AnswerRe: Do I need call CString::Empty? Pin
ThatsAlok30-Sep-10 2:49
ThatsAlok30-Sep-10 2:49 
Questionproxy stub files Pin
George_George17-Aug-08 16:47
George_George17-Aug-08 16:47 
Questionhow to set one item font color in the listctrl box? Pin
sinyan17-Aug-08 16:25
sinyan17-Aug-08 16:25 
AnswerRe: how to set one item font color in the listctrl box? Pin
Naveen17-Aug-08 17:51
Naveen17-Aug-08 17:51 
AnswerRe: how to set one item font color in the listctrl box? Pin
Hamid_RT18-Aug-08 5:05
Hamid_RT18-Aug-08 5:05 
QuestionSTA owner thread blocking issue Pin
George_George17-Aug-08 16:22
George_George17-Aug-08 16:22 
QuestionDownloading Files, What the F***K is wrong now with Zip Files Pin
Bram van Kampen17-Aug-08 14:58
Bram van Kampen17-Aug-08 14:58 
AnswerRe: Downloading Files, What the F***K is wrong now with Zip Files Pin
MikeMarq17-Aug-08 16:33
MikeMarq17-Aug-08 16:33 
JokeRe: Downloading Files, What the F***K is wrong now with Zip Files Pin
ThatsAlok19-Aug-08 20:35
ThatsAlok19-Aug-08 20: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.