Announcement

Collapse
No announcement yet.

(C++) Execl() is not my friend...

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    (C++) Execl() is not my friend...

    My program needs to launch a web browser to use an 'online help' functionality, however I have not been able to successfully call a program from within my program.

    Well thats not entirely true, I can call any app that I have developed, they all work just fine. However if I try to call any other app, I get an outpouring of X errors. I tried multiple apps with the same results. This is with using execl().

    Now with System() I can call any app no problem, except for the obvious pitfall that System() doesnt return until the app it calls terminates.

    Anyone know why X is yelling at me for trying these apps? Or even better, does anyone know a better command to achive this?

    Here is the X error.
    Code:
    X Error: code 14 major 1 minor 0: BadIDChoice (invalid resource ID chosen for this connection).
    X Error: code 14 major 1 minor 0: BadIDChoice (invalid resource ID chosen for this connection).
    X Error: code 14 major 1 minor 0: BadIDChoice (invalid resource ID chosen for this connection).
    X Error: code 14 major 1 minor 0: BadIDChoice (invalid resource ID chosen for this connection).
    X Error: code 14 major 1 minor 0: BadIDChoice (invalid resource ID chosen for this connection).
    X Error: code 14 major 1 minor 0: BadIDChoice (invalid resource ID chosen for this connection).
    X Error: code 14 major 1 minor 0: BadIDChoice (invalid resource ID chosen for this connection).
    X Error: code 14 major 154 minor 4: BadIDChoice (invalid resource ID chosen for this connection).
    X Error: code 14 major 154 minor 4: BadIDChoice (invalid resource ID chosen for this connection).
    X Error: code 14 major 154 minor 4: BadIDChoice (invalid resource ID chosen for this connection).
    Xlib: unexpected async reply (sequence 0x11c4)!

    #2
    Re: (C++) Execl() is not my friend...

    I'm going to move this post to the "Coding/Scripting" forum. I think you'll get a better response, there.

    Comment


      #3
      Re: (C++) Execl() is not my friend...

      Hm... no reply though after moving this post to here. Anyway, I also have encountered the weird Excl() and I change system(). Maybe we should read man more to understand it.
      P4 3.06 HT,RAM 512 MB, 80GB HD, Geforce 6200 LE, Kubuntu 8.04

      Comment

      Working...
      X