Seems to work for me. How did you compile and link the app??

Since this is an example, do they ever explain why they have the XtPopup call??


On 08-Dec-00 at 19:20, Capt Steve Wood ([EMAIL PROTECTED]) wrote:
> Hello,
> 
> I registered with the Source Forge (user name: steve_wood), but I could not
>  get anywhere from the login page.  I kept getting an error (words to the 
> effect) "error in secure channel".
> 
> The reason I wanted to register is to report a bug.  So, if you don't mind,
>  I would like to report this bug using this e-mail. PLEASE LET ME KNOW if 
> you cannot forward this to the appropriate party.
> 
> 
> 
> 
> 
> The following error message is printed on stderr when executing the 
> "XmManageChild(dialog)" command:
> 
> X Error of failed request:  BadValue (integer parameter out of range for 
> operation)
> Major opcode of failed request:  12 (X_ConfigureWindow)
> Value in failed request:  0x0
> Serial number of failed request:  197
> Current serial number in output stream:  198
> 
> The code sequence that generated this error is from the sample code 
> provided for Volume Six A: Motif Programming Manual (Oreilly  & Associates 
> Inc).  The actual program is "hello_dialog.c" (Dan Heller and Paula 
> Ferguson Copyright 1994) and is enclosed below.
> 
> The actual fragment that causes this error is:
> 
>      .
>      .
>      .
> 
>     /* Create the InformationDialog as child of button */
>     dialog = XmCreateInformationDialog (button, "info", args, n);
> 
>     /* no longer need the compound string, free it */
>     XmStringFree (xm_string);
> 
>     /* add the callback routine */
>     XtAddCallback (dialog, XmNokCallback, activate, NULL);
> 
>     /* manage the dialog */
>     XtManageChild (dialog);
> (at which point it crashes and produces the above mentioned message)
> 
> I compiled and ran this program (unmodified) on a NEC Versa LX running 
> Redhat Linux 7.0 using the gcc compiler.  I have never had any problems 
> with Linux. Motif, or gcc up until now.  The motif library is actually 
> LessTif, installed from the binary 91.4-1.i386 rpm's.  I get the same error
>  using the Motif 1.2 or 2.0 widgets.
> 
> I ran the program using gdb "run -sync" and it crumped at the same place 
> with the same message.  I added a break point just before the call to 
> XtManageChild and did a stack trace.  The results are included below in 
> gdb_output.txt.
> 
> I would appreciate any advice on how this problem can be overcome.
> 
> Sincerely,
> 
> Steve Wood
> 
> 
> 

Reply via email to