You add all forms (except mainform.ui) twice to the FORMS variable.Originally Posted by safknw
You add all forms (except mainform.ui) twice to the FORMS variable.Originally Posted by safknw
safknw (10th May 2006)
I successfully compiled my project in windows.
Now the problem is that while I run the application and click on a button in response of which I start a process. (process->start). It crashes and shows following error.
AppName: mymplayer.exe AppVer: 0.0.0.0 ModName: msvcrt.dll
ModVer: 7.0.2600.2180 Offset: 000323e4
Compile your application in debug mode, run it from the debugger and see where exactly it crashes.Originally Posted by safknw
How to compile in debug mode.Originally Posted by jacek
![]()
Make sure you have built Qt in debug mode, then add "CONFIG += debug" to your .pro file. Although, AFAIR, in windows qmake builds applications by default in both release and debug mode at once.Originally Posted by safknw
I have complied in debug mode and run the application and it shows access violation in msvcrt.dll.
What does this means and how solve it .
Could you post the backtrace?
sorry.Originally Posted by jacek
I didn't show the backtrace .
Can I debug this application using gnu debugger on windows. If yes How? Is there any gui based debugger for qt applications.
Download gdb from www.mingw.org.Originally Posted by safknw
You can use any debugger you want.Originally Posted by safknw
That's probably the first of possibly several dll's that you'll need.Originally Posted by safknw
Go to Microsoft's website and download their free "Dependency Checker". Run it on your exe and it will tell you what your QT app cannot find when it tried to run.
Do a file search for those missing dlls and either copy them to your app directory or add their location to your PATH.
I don't think the problem is a missing dependency...If that were the case, it would have immediately reported the missing DLL and not run the program. He's having a problem after the program runs, i.e. the crash is occurring *in* the DLL, therefore the DLL is there.Originally Posted by GreyGeek
Here is the backtrace.
=======
Starting program: D:\Sharique\win\myMplayer0.9/mymplayer.exe
Program received signal SIGSEGV, Segmentation fault.
0x77c423e4 in _libkernel32_a_iname ()
(gdb) backstrace
Undefined command: "backstrace". Try "help".
(gdb) backtrace
#0 0x77c423e4 in _libkernel32_a_iname ()
#1 0x0022d09c in ?? ()
#2 0x77c3ffb9 in _libkernel32_a_iname ()
#3 0x104e41a3 in qt_mt3_dll_iname ()
#4 0x0040472b in myForm:lay_file(QString) ()
#5 0x004065c6 in myForm::stop() ()
#6 0x00402ca5 in myForm::show_playlist() ()
#7 0x00428c63 in mainForm::qt_invoke(int, QUObject*) (this=0x22fdd0, _id=61,
_o=0x22f3fc) at .moc/moc_mainform.cpp:147
#8 0x00426267 in myForm::qt_invoke(int, QUObject*) (this=0x22fdd0, _id=61,
_o=0x22f3fc) at .moc/moc_myform.cpp:175
#9 0x100c3bec in qt_mt3_dll_iname ()
#10 0x100c495f in qt_mt3_dll_iname ()
#11 0x10595120 in qt_mt3_dll_iname ()
#12 0x1011643f in qt_mt3_dll_iname ()
#13 0x1004d381 in qt_mt3_dll_iname ()
#14 0x1004f39d in qt_mt3_dll_iname ()
#15 0x100093e7 in qt_mt3_dll_iname ()
#16 0x1000aa89 in qt_mt3_dll_iname ()
#17 0x77d48709 in _libkernel32_a_iname ()
#18 0x77d487eb in _libkernel32_a_iname ()
#19 0x77d489a5 in _libkernel32_a_iname ()
#20 0x77d489e8 in _libkernel32_a_iname ()
#21 0x100169a7 in qt_mt3_dll_iname ()
#22 0x1006d4f1 in qt_mt3_dll_iname ()
#23 0x1006d446 in qt_mt3_dll_iname ()
#24 0x0040137e in main ()
=========
What does myForm::play_file(QString) do?
Play the file specied as argument in mplayer in slave mode.Originally Posted by jacek
Last edited by safknw; 12th May 2006 at 21:17.
It calls some function from Qt which leads to a crash. Do you know which one? If not, compile Qt in debug mode and try again (make sure you have "CONFIG += console" to your .pro file and check whether there are any messages on the console).Originally Posted by safknw
if it crashes at a point when you are accessing a file, did you make sure to change these filenames to windows format too? or is it a user input/file dialog kinda situation
Bookmarks