Click here to Skip to main content
15,894,907 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: vString Pin
Niklas L21-Oct-11 3:21
Niklas L21-Oct-11 3:21 
AnswerRe: vString Pin
Tyler Elric21-Oct-11 4:20
Tyler Elric21-Oct-11 4:20 
GeneralRe: vString Pin
Niklas L23-Oct-11 8:14
Niklas L23-Oct-11 8:14 
GeneralRe: vString Pin
Tyler Elric23-Oct-11 8:39
Tyler Elric23-Oct-11 8:39 
GeneralRe: vString Pin
Niklas L24-Oct-11 22:28
Niklas L24-Oct-11 22:28 
QuestionRegarding IntelliTrace equivalent tool in C++ Pin
ramana.g20-Oct-11 12:54
ramana.g20-Oct-11 12:54 
AnswerRe: Regarding IntelliTrace equivalent tool in C++ Pin
Luc Pattyn20-Oct-11 14:19
sitebuilderLuc Pattyn20-Oct-11 14:19 
GeneralRe: Regarding IntelliTrace equivalent tool in C++ Pin
Philippe Mori20-Oct-11 16:24
Philippe Mori20-Oct-11 16:24 
If you tell the debugger to stop on exceptions (except for a few that might be expected in your application), the debugger will stop about half of the time exactly where the problem occurs.

If you are developing native C++ application and use STL then using checked iterators will also find most misuse although if will run much more slowly in that case. Generally the performance of C++ application is more affected by debugging than C# application (or safe C++/CLI).

Very often, it is possible to just put a breakpoint at the appropriate location and find the problem really fast. You just have to learn to use the debugger. Most of the time, simply inspecting a few variable give an hint on the problem. Well, maybe with some habit...

"Edit and continue" is also very powerful as you can often correct the code as soon as the error is detected (and maybe execute the code again after ensuring it won't cause undesirable side-effect).

It is possible to compile your C++ code as managed and then see if you can use Intellitrace. In Visaul Studio 11 Ultimate Preview, it works for safe C++/CLI code... I haven't tried other options.

Adding a lot of check in code (assertions) and tracing some information also help find problems.

In my case, most of the time, assertion and validation done in libraries (STL, .NET) and the use of a debugger let me find problems relatively quickly...

Well, maybe doing .NET development and using C# for more than half my code probably do help also...
Philippe Mori

AnswerRe: Regarding IntelliTrace equivalent tool in C++ Pin
Erudite_Eric20-Oct-11 20:20
Erudite_Eric20-Oct-11 20:20 
AnswerRe: Regarding IntelliTrace equivalent tool in C++ Pin
Stefan_Lang21-Oct-11 2:37
Stefan_Lang21-Oct-11 2:37 
AnswerRe: Regarding IntelliTrace equivalent tool in C++ Pin
Bram van Kampen21-Oct-11 16:14
Bram van Kampen21-Oct-11 16:14 
Questionprogramming in c++ Pin
maheen zahra20-Oct-11 6:09
maheen zahra20-Oct-11 6:09 
AnswerRe: programming in c++ Pin
Richard MacCutchan20-Oct-11 7:17
mveRichard MacCutchan20-Oct-11 7:17 
AnswerRe: programming in c++ Pin
Albert Holguin20-Oct-11 7:18
professionalAlbert Holguin20-Oct-11 7:18 
AnswerRe: programming in c++ Pin
Erudite_Eric20-Oct-11 7:28
Erudite_Eric20-Oct-11 7:28 
GeneralRe: programming in c++ Pin
Albert Holguin20-Oct-11 9:30
professionalAlbert Holguin20-Oct-11 9:30 
GeneralRe: programming in c++ Pin
Erudite_Eric20-Oct-11 20:17
Erudite_Eric20-Oct-11 20:17 
GeneralRe: programming in c++ Pin
Albert Holguin21-Oct-11 4:46
professionalAlbert Holguin21-Oct-11 4:46 
GeneralRe: programming in c++ Pin
afsus23-Dec-11 23:44
afsus23-Dec-11 23:44 
GeneralRe: programming in c++ Pin
Manfred Rudolf Bihy20-Oct-11 15:49
professionalManfred Rudolf Bihy20-Oct-11 15:49 
GeneralRe: programming in c++ Pin
Erudite_Eric20-Oct-11 20:14
Erudite_Eric20-Oct-11 20:14 
AnswerRe: programming in c++ Pin
Bram van Kampen21-Oct-11 16:23
Bram van Kampen21-Oct-11 16:23 
Questionhow about setting MFC IN C++ Pin
afsus20-Oct-11 0:44
afsus20-Oct-11 0:44 
AnswerRe: how about setting MFC IN C++ Pin
André Kraak20-Oct-11 3:49
André Kraak20-Oct-11 3:49 
QuestionFunction pointer point to a object member function in C++? Pin
lvantin19-Oct-11 21:02
lvantin19-Oct-11 21:02 

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.