If I run this code, the program does not crash, and it posts no debug output, only:
crazy chrizzy start
But I'd like to have some debug output that reveals the code file and the code line. I need it because I want to debug a program that runs at another computer. I cannot reproduce the error with my environment system. So I want to get the error information from the log file.
The only chance I see so far is to program a smart pointer and change all pointers to that type. That is described in http://www.c-plusplus.de/forum/134971. But there are so much pointers that this alternative is not practicable.
Does anybody know a better alternative? Thanks for yout help in advance.
Thanks for your answer, but I forgot to say, that I cannot use that macros __LINE__ and __FILE__ because the segfault occurs inside a macro. In that case the __LINE__ macros etc. are filled with undefined values, I can only use them in ASSERT-commandos inside a macro.