Sorry for my ignorance but could you please tell me how to run the debugger in the commad line to obtain the backtrace? Thanks
Sorry for my ignorance but could you please tell me how to run the debugger in the commad line to obtain the backtrace? Thanks
If you use MinGW, it should be:Originally Posted by SkripT
shell Code:
C:\...> gdb prog.exe (gdb) run <program crashes> (gdb) bt <backtrace> (gdb) quitTo copy to clipboard, switch view to plain text mode
thanks a lot i'm going to try it.
Hi, here's the backtrace as a result of a program crash:
and the message from the program drwatson of windows is that the program has made an illegal acess to memory.Program received signal SIGSEGV, Segmentation fault.
[Switching to thread -277..........]
0x1012c44b in _size_of_stack_reserve__ ()
As I think, crashes as a result of an overload of the stack. I guess that's because I am working with some QImages at the same time and I think that could be better to define the images in dynamic memory. I will try it.
Last edited by SkripT; 14th January 2006 at 00:55.
It's rather short. Wasn't there more output?Originally Posted by SkripT
AFAIK QImage stores data on the heap.As I think, crashes as a result of an overload of the stack. I guess that's because I am working with some QImages at the same time and I think that could be better to define the images in dynamic memory.
Hi again, gdb alerts me with two warnings that I tried to re-register class QString because I was trying to do a qregistertyper of QString. I have deleted the instruction and seems that the program not crashes, in the short time that I have tested it. Could I think that this was the problem?
That warning comes from Qt itself. If you add "CONFIG += console" to your .pro file, you should be able to see such warnings on the console, without the need of debugger.Originally Posted by SkripT
Might be, but it shouldn't crash just because you tried to register something twice.Originally Posted by SkripT
Ok jacek, thanks for tell me how to view the warnings from the console and for all the other suggestions. I will test the program a little more running it with the debugger, hoping that doesn't crash![]()
Bookmarks