Click here to Skip to main content
15,905,008 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Summation of numbers Pin
Rajkumar R7-Jun-07 0:09
Rajkumar R7-Jun-07 0:09 
Questionc++ DLL get parameters Pin
Hayden256-Jun-07 22:47
Hayden256-Jun-07 22:47 
AnswerRe: c++ DLL get parameters Pin
David Crow7-Jun-07 4:27
David Crow7-Jun-07 4:27 
Questioncd drive Pin
nitin36-Jun-07 21:20
nitin36-Jun-07 21:20 
AnswerRe: cd drive Pin
Nibu babu thomas6-Jun-07 21:32
Nibu babu thomas6-Jun-07 21:32 
QuestionRe: cd drive Pin
David Crow7-Jun-07 4:28
David Crow7-Jun-07 4:28 
Questionproblem with _vsntprintf_s Pin
hansipet6-Jun-07 21:19
hansipet6-Jun-07 21:19 
AnswerRe: problem with _vsntprintf_s Pin
Matthew Faithfull6-Jun-07 22:23
Matthew Faithfull6-Jun-07 22:23 
As it's compiling and the call to _vsntprintf_s is happening then there's really only two possible causes. One is the data/paramters you are passing and the other is that previous lines of code have caused some horrible corruption which is killing the process but has essentially nothing to do with _vsntprintf_s. I'd guess at the former but I agree that this shouldn't be happening. Possibly you've hit some nasty corner case where the CRT simply calls abort(); and for some reason you're not seeing anything in the debug trace. Remember the same code, called by _vsntprintf_s is going to be used to format that debug trace output, so if you trash it badly enough you won't see any debugging info Wink | ;)
I would recommending installing the CRT sources which is an option on your Visual Studio installation, if you didn't already, and then adding the path e.g. C:\Program Files\Microsoft Visual Studio 8\VC\crt\src to the include search path of your project so you can step into the _vsntprintf_s call and debug what's going on. It get's pretty deep in there but it shouldn't take too long to find where it's dropping out. You could always wrap the call in some exception handling as well if you thing the CRT might be throwing at you. Obvious the first port of call is to thoroughly check your parameters but I'm guessing you did that already Smile | :)

Nothing is exactly what it seems but everything with seems can be unpicked.

QuestionAbout GetWindowLongPtr & SetWindowLongPtr Pin
zhongwenjia6-Jun-07 21:09
zhongwenjia6-Jun-07 21:09 
AnswerRe: About GetWindowLongPtr & SetWindowLongPtr Pin
Hans Dietrich7-Jun-07 0:52
mentorHans Dietrich7-Jun-07 0:52 
GeneralRe: About GetWindowLongPtr & SetWindowLongPtr Pin
zhongwenjia7-Jun-07 2:55
zhongwenjia7-Jun-07 2:55 
GeneralRe: About GetWindowLongPtr & SetWindowLongPtr Pin
Mark Salsbery7-Jun-07 5:07
Mark Salsbery7-Jun-07 5:07 
QuestionHow this is causing stack underflow Pin
LiYS6-Jun-07 20:40
LiYS6-Jun-07 20:40 
AnswerRe: How this is causing stack underflow Pin
Rajkumar R6-Jun-07 21:47
Rajkumar R6-Jun-07 21:47 
GeneralRe: How this is causing stack underflow [modified] Pin
LiYS6-Jun-07 22:15
LiYS6-Jun-07 22:15 
AnswerRe: How this is causing stack underflow Pin
Stephen Hewitt6-Jun-07 22:08
Stephen Hewitt6-Jun-07 22:08 
GeneralRe: How this is causing stack underflow Pin
LiYS6-Jun-07 22:19
LiYS6-Jun-07 22:19 
GeneralRe: How this is causing stack underflow Pin
David Crow7-Jun-07 4:33
David Crow7-Jun-07 4:33 
QuestionGetBuffer/ReleaseBuffer Pin
tom groezer6-Jun-07 20:37
tom groezer6-Jun-07 20:37 
AnswerRe: GetBuffer/ReleaseBuffer Pin
Cedric Moonen6-Jun-07 20:46
Cedric Moonen6-Jun-07 20:46 
AnswerRe: GetBuffer/ReleaseBuffer Pin
CPallini6-Jun-07 20:52
mveCPallini6-Jun-07 20:52 
Questionan acm problem: Firenet Pin
followait6-Jun-07 19:56
followait6-Jun-07 19:56 
AnswerRe: an acm problem: Firenet Pin
Peter Weyzen6-Jun-07 23:56
Peter Weyzen6-Jun-07 23:56 
QuestionLPVOID to CString Conversion Pin
Atul Kumar Bhatt6-Jun-07 19:39
Atul Kumar Bhatt6-Jun-07 19:39 
AnswerRe: LPVOID to CString Conversion Pin
Mark Salsbery6-Jun-07 20:16
Mark Salsbery6-Jun-07 20:16 

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.