PDA

View Full Version : problem in Qprocess



wagmare
29th December 2008, 08:30
hi friends,
i try to embed a gtk program in to my Qt window using QX11EmbedContainer and embedClient to embed that gtk window into my Qt frame using its window ID .. its working fine but every first time after compiling make it is giving seg.fault but after that its perfect ..
some times later after stand by and again running its giving seg.fault ..
i dont know where is the fault ... i start the process and use single shot timer to wait for 400 millisec and i use to get the window id of the gtk program by system call xwininfo and i embed it ...
please help

jpn
29th December 2008, 08:46
Use a debugger to get the backtrace when the application crashes.

wagmare
29th December 2008, 08:52
thanks for replying first..
in my application if the user clicks the button animate the program animate.exe i start it with QProcess so when i click the button animate the QProcess starts the program and within 1 sec of timeout it will embed the program .. here on clicking animate seg.fault arrives but only for the first time i running next time it embeds perfectly ....

jpn
29th December 2008, 08:57
It could still be any kind of programming error. It makes no sense to try to guess what could be the problem. Using a debugger will much more likely reveal the problem.