Results 1 to 4 of 4

Thread: problem in Qprocess

  1. #1
    Join Date
    Sep 2008
    Location
    Bangalore
    Posts
    659
    Thanks
    116
    Thanked 42 Times in 41 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Unhappy problem in Qprocess

    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

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: problem in Qprocess

    Use a debugger to get the backtrace when the application crashes.
    J-P Nurmi

  3. #3
    Join Date
    Sep 2008
    Location
    Bangalore
    Posts
    659
    Thanks
    116
    Thanked 42 Times in 41 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: problem in Qprocess

    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 ....

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: problem in Qprocess

    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.
    J-P Nurmi

  5. The following user says thank you to jpn for this useful post:

    wagmare (3rd January 2009)

Similar Threads

  1. QProcess problem
    By Mystical Groovy in forum Qt Programming
    Replies: 2
    Last Post: 2nd December 2008, 20:07
  2. QProcess and kfmclient exec problem
    By ramazangirgin in forum Qt Programming
    Replies: 5
    Last Post: 6th June 2008, 08:31
  3. QProcess problem (Main program hangs)
    By sincnarf in forum Qt Programming
    Replies: 5
    Last Post: 11th October 2007, 09:26
  4. Quoting problem with QProcess
    By the_bis in forum Qt Programming
    Replies: 1
    Last Post: 15th December 2006, 11:24
  5. problem with qprocess
    By deekayt in forum Qt Programming
    Replies: 2
    Last Post: 13th June 2006, 13:30

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.