home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!mucs!meehpa01.ee.man.ac.uk!mbheprg
- From: mbheprg@meehpa01.ee.man.ac.uk (Raju Gurung)
- Newsgroups: comp.sys.hp
- Subject: xwd of a motif widget window
- Message-ID: <6043@m1.cs.man.ac.uk>
- Date: 8 Sep 92 15:35:24 GMT
- Sender: news@cs.man.ac.uk
- Reply-To: mbheprg@meehpa01.ee.man.ac.uk (Raju Gurung)
- Organization: Department of Electrical Engineering, University of Manchester
- Lines: 25
-
- Hi Netters,
- I'm having problems doing xwdump of a window within a motif application
- program. The program goes something like this
-
- Widget xwdump;
- int winnum;
- char winid[10];
-
- winnum = XtWindow(xwdump);
-
- sprintf(winid,"%d",minnum); /* to convert int into char string */
- execlp("xwd","xwd","-id",winid,"-out","out.xwd",(char *)0);
-
- the xwd gives an error as follows:
- X Error of failed request: BadWindow (invalid Window parameter)
- Major opcode of failed request: 3 (X_GetWindowAttributes)
- Resource id in failed request: 0x33be198
- Serial number of failed request: 7
- Current serial number in output stream: 7
-
-
- but if I note the value of winnum, and type xwd -id winnum -out xwd.out
- on the command line, it works fine.
-
- Any idea what I'm doing wrong ?
-