[Gambas-user] Signal #11

Ron_1st ronstk at ...239...
Sun Sep 7 16:44:34 CEST 2008


On Sunday 07 September 2008, Hans-Martin wrote:
> > Hello all,
> >
> > i have an application running well with 2.7.0 but getting a signal#11 with
> > 2.8.2
> >
> > PUBLIC SUB ButtonPartner_Click()
> >   DIM hForm AS FPartnerStart
> >
> > signal#11 -->  hForm = NEW FPartnerStart(BenutzerID)    <-- signal#11
> >   hForm.Show
> >
> > END
> >
> >
> > As i get the error by creating a new form (what is designed with the
> > gambas-ide) i thing there is 1 component that makes the trouble. But in
> > this form i use a bunch of different component, so its not that simple to
> > find out what will bring this error.
> >
> > Any suggestion how to find the guilty component?
> >
> > regards,
> > HMB
> >
> 

You get the error on creating the instance as shown.
Two things happen
1) building the form as visible object
2) running the initialize code in the class file.

If the form has the error you should get the error if the *.class 
file is empty or a dummy that does nothing.
If no error occurs then it is the class file that has something wrong.

Just something I had once in the past. At the time MoveScale was introduced
in the forms I had some problems alike this.
I made the 4 values round values instead float as I see in your form.
In my project the bug was gone. Not nessasary this still happens nowadays.

> { Form Form
>  MoveScaled(13.4444,4,97,77) <-- to MoveScaled(13,4,97,77)
>  Text = ("Partnerverwaltung")
>  { EditImmerAn Menu NeuenPartnerAnlegen
> ....

Second point I see is the percent in the tooltip.
Maybe that is a special character in gambas as the \ is.

>  { ComboBoxPartnerName ComboBox
>    MoveScaled(11,4,84,3)
>    ToolTip = ("'%ter' - findet alle Partner, die 'ter' im Namen haben\n'May' 
> findet alle Partner, die mit 'May' anfangen")
>    Drop = True
>    Text = ("")
>  }

You could try to make a copy of the project with only the form and class file.
Set the form/class as startup and check what happens.
Editing here will not corrupt your current real project to mess.


Best regards
Ron_1st

-- 
 A: Because it messes up the order in which people normally read text. 
 Q: Why is top-posting such a bad thing? 
 A: Top-posting. 
 Q: What is the most annoying thing in e-mail? 
 




More information about the User mailing list