[XForms] question box appears huge

Kerich, Steve (AGTE) Steve.Kerich at smiths-aerospace.com
Fri Oct 13 12:25:14 EDT 2006


Hi Jason,

Thanks for getting back with me so quickly. I really didn't know if
there was anyone out there that would respond to a Xforms question.

A totally agree with your suggestions about a buffer over run or a crazy
pointer. There is another yes/no box that is consistently doing
corrupted text. The buttons come up with stuff like "true" "true" for
the selections which is pretty funny to see since they are both true but
not to the user. Since this is only happening in two totally different
area, I would have to agree that something is getting stepped on. I'm
going to work backwards and look at all the data writes to see if I can 

How well do you understand how Xforms works under the hood? How
would/could the alert box being shown fix the question box data
structure? There must be something shared between them that is getting
reinitialized.

Update: I did some more testing and it seems that if I call the question
box before making my finish subroutine call, the box is normal but if I
make the same call as the first line after the call, the box is
corrupted. It would help if I could understand how the Alert box was
able to reinit the question box.

Let me know what you think,
Steve



(\__/)
(='.'=)
(")_(")


-----Original Message-----
From: jason cipriani [mailto:jason.cipriani at gmail.com]
Sent: Thursday, October 12, 2006 5:31 PM
To: Kerich, Steve (AGTE)
Cc: xforms at bob.usuhs.mil
Subject: Re: [XForms] question box appears huge

I've never seen that happen before. XForms may be kind of sketchy, but
lord knows I've put it to the test over the last few years and I
honestly believe that the goodie boxes are stable and bug-free. Are you
making sure you are calling fl_initialize when your application starts
before doing any other xforms stuff?

That aside, the cuplrit of odd problems like that is usually some
memory-related issue elsewhere in the program. Perhaps some of your code
is writing past the end of a buffer somewhere and coincidently
corrupting certain xforms data structures. Showing the alert box may
reinitialize some data, or may move things around in memory so that the
other issue no longer affects the quesiton box.

Sorry, I can't think of any other reason that would occur unless there's
some weird X or window-manager related problem that is only affecting
that one message box for some reason.

Jason

On 10/12/06, Kerich, Steve (AGTE) <Steve.Kerich at smiths-aerospace.com>
wrote:
> To subscribers of the xforms list
>
>
> I am having a problem with a question box. I use them throughout my 
> code but this one keeps putting up a question box that is so big it 
> goes off the left side of the screen and buttons that are huge. The 
> text in the label and on the buttons is also corrupted. I found out by

> trail and error that if I show an alert box before making the call to 
> show_question, the question box is the correct size. Has anyone seen 
> something like this happen before? The show_alert is doing something 
> to XForms that is making the show_question box work. I guess like 
> flushing a buffer, reseting a pointer, or something. Below is the 
> snippet from the program with the show_alert that makes this work.
> This only happens with the show_question call in the program.
Elsewhere it works fine.
>
> Any ideas would be greatly appreciated.
>
>  fl_show_alert("Nothing to write",
>             "Test.",
>             "test.",
>             1);
>
>       fl_show_question("Write archive CD with current track layout?", 
> 1);
>

>
> _______________________________________________
> To unsubscribe, send the message "unsubscribe" to 
> xforms-request at bob.usuhs.mil or see:
> http://cweblog.usuhs.mil/mailman/listinfo/xforms
> XForms Home Page: http://world.std.com/~xforms List Archive: 
> http://bob.usuhs.mil/pipermail/xforms and 
> http://bob.usuhs.mil/mailserv/list-archives/
> Development: http://savannah.nongnu.org/files/?group=xforms
>

______________________________________________________________________
CAUTION: This message was sent via the Public Internet and its
authenticity cannot be guaranteed. 

______________________________________________________

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.2/472 - Release Date:
10/11/2006
 

******************************************
The information contained in, or attached to, this e-mail, may contain confidential information and is intended solely for the use of the individual or entity to whom they are addressed and may be subject to legal privilege.  If you have received this e-mail in error you should notify the sender immediately by reply e-mail, delete the message from your system and notify your system manager.  Please do not copy it for any purpose, or disclose its contents to any other person.  The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company.  The recipient should check this e-mail and any attachments for the presence of viruses.  The company accepts no liability for any damage caused, directly or indirectly, by any virus transmitted in this email.
******************************************




More information about the Xforms mailing list