Re: [Gambas-user] French mailing list is die ?

2008-09-07 Thread Laurent Carlier
Le dimanche 07 septembre 2008 12:34:20 François, vous avez écrit :
 Hi Benoit,

 Since a long time, I find the french ML is empty.
 Is there a problem with it ?

Perhaps not a lot of people are posting their bugs/questions in the french ML 
? It's a question of preference. With the EN mailing-list, you can touch more 
people.

If you want you can post in the french ML, i can answer if i know the answer 
:-)

There is many french people involved in gambas :-p

A plus tard sur la liste française !

++


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Signal #11

2008-09-07 Thread Hans-Martin
Am Sonntag, 7. September 2008 14:05:22 schrieb Hans-Martin Bundeshund:
 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


hmm, i think its not a bad idea to post the  FPartnerStart-form:


# Gambas Form File 2.0

{ Form Form
  MoveScaled(13.,4,97,77)
  Text = (Partnerverwaltung)
  { EditImmerAn Menu NeuenPartnerAnlegen
Name = EditImmerAn
Text = ()
Shortcut = F1
  }
  { ButtonPartnerNeuanlage Button
MoveScaled(3,0,20,3)
Enabled = False
ToolTip = (Einen Neuen Partner anlegen)
Text = (Neuen Partner anlegen)
  }
  { ButtonPartnerAendern Button
MoveScaled(25,0,13,3)
Enabled = False
ToolTip = (Aktuellen Partner bearbeiten)
Text = (Partner \xC3\xA4ndern)
  }
  { ButtonPartnerSuchen Button
MoveScaled(79,0,16,3)
Enabled = False
ToolTip = (Nach einem Partner suchen.\nEs m\xC3\xBCssen minimum 3 
Buch-\nstaben eingegeben werden.)
Text = (Partner anzeigen)
  }
  { TabStripPartner TabStrip
MoveScaled(2,8,93,67)
Enabled = False
Font = Font[Bold]
AutoResize = True
Count = 9
Index = 0
Text = (Anschrift)
Picture = Picture[editcopy.png]
{ TextBoxName1 TextBox
  MoveScaled(15,1,77,3)
  Text = ()
  ReadOnly = True
  MaxLength = 255
}
{ TextLabel1 TextLabel
  MoveScaled(2,1,11.,2.5556)
  ToolTip = (Erste Zeile der Anschrift)
  Text = (Name1)
  Alignment = Align.Right
}
{ TextLabel2 TextLabel
  MoveScaled(2,5,11.,2.5556)
  ToolTip = (Zweite Zeile der Anschrift)
  Text = (Name2)
  Alignment = Align.Right
}
{ TextBoxName2 TextBox
  MoveScaled(15,5,77,3)
  Text = ()
  ReadOnly = True
  MaxLength = 255
}
{ TextLabel3 TextLabel
  MoveScaled(2,9,11.,2.5556)
  ToolTip = (Dritte Zeile der Anschrift)
  AutoResize = True
  Text = (Name3)
  Alignment = Align.Right
}
{ TextBoxName3 TextBox
  MoveScaled(15,9,77,3)
  Text = ()
  ReadOnly = True
  MaxLength = 255
}
{ TextLabel4 TextLabel
  MoveScaled(2,13,11.,2.5556)
  ToolTip = (Stra\xC3\x9Fe der Anschrift)
  Text = (Stra\xC3\x9Fe)
  Alignment = Align.Right
}
{ TextBoxStrasse TextBox
  MoveScaled(15,13,51,3)
  Expand = True
  Text = ()
  MaxLength = 255
}
{ TextBoxPF TextBox
  MoveScaled(72,13,20,3)
  Text = ()
  ReadOnly = True
  MaxLength = 255
}
{ TextLabelPLZ TextLabel
  MoveScaled(2,17,11.,2.5556)
  ToolTip = (Die PLZ zur Stra\xC3\x9Fenanschrift)
  Text = (PLZ  Stra\xC3\x9Fe)
  Alignment = Align.Right
}
{ TextBoxPLZPF TextBox
  MoveScaled(72,17,20,3)
  ToolTip = (Die Postleitzahl der Postfachs)
  Text = ()
  ReadOnly = True
  MaxLength = 255
}
{ TextBoxPLZ TextBox
  MoveScaled(15,17,19,3)
  ToolTip = (PLZ der Stra\xC3\x9Fenanschrift)
  Text = ()
  ReadOnly = True
  MaxLength = 255
}
{ TextLabel6 TextLabel
  MoveScaled(9,21,4,2.5556)
  ToolTip = (Der Ort der Anschrift)
  Text = (Ort)
  Alignment = Align.Right
}
{ TextBoxOrt TextBox
  MoveScaled(15,21,77,3)
  Text = ()
  ReadOnly = True
  MaxLength = 255
}
{ TextLabel7 TextLabel
  MoveScaled(2,25,11.,2.5556)
  ToolTip = (Das Land der Anschrift)
  Text = (Land)
  Alignment = Align.Right
}
{ TextBoxLand TextBox
  MoveScaled(15,25,77,3)
  Text = ()
  ReadOnly = True
  MaxLength = 255
}
{ TextLabel8 TextLabel
  MoveScaled(1,32,13,2.5556)
  ToolTip = (Telefonnummer der Zentrale)
  Text = (Zentrale)
  Alignment = Align.Right
}
{ TextLabel9 TextLabel
  MoveScaled(2,36,11.,2.5556)
  ToolTip = (Die FAX-Nummer der Zentrale)
  Text = (FAX)
  Alignment = Align.Right
}
{ TextLabel10 TextLabel
  MoveScaled(64,53,10.5556,3.)
  ToolTip = (Das Anlagedatum des Partners in der Datenbank)
  Text = (Angelegt am)
  Alignment = Align.Right
}
{ TextLabelEinstufung TextLabel
  MoveScaled(2,52,11.,3.)
  ToolTip = (Einstufung/Beurteilung des Kunden)
  Text = (Einstufung)
  Alignment = Align.Right
}
{ TextBoxTelefonZentrale TextBox
  MoveScaled(15,32,35,3)
  Text = ()
  ReadOnly = True
  MaxLength = 255
}
{ ButtonWeitereNummern Button
  MoveScaled(54,32,38,7)
  ToolTip = (Anzeige/Pflege weiterer 

Re: [Gambas-user] Signal #11

2008-09-07 Thread Hans-Martin
Am Sonntag, 7. September 2008 14:05:22 schrieb Hans-Martin Bundeshund:
 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


hmm, i think it's not a bad idea to post the FPartnerStart-form:

# Gambas Form File 2.0

{ Form Form
  MoveScaled(13.,4,97,77)
  Text = (Partnerverwaltung)
  { EditImmerAn Menu NeuenPartnerAnlegen
Name = EditImmerAn
Text = ()
Shortcut = F1
  }
  { ButtonPartnerNeuanlage Button
MoveScaled(3,0,20,3)
Enabled = False
ToolTip = (Einen Neuen Partner anlegen)
Text = (Neuen Partner anlegen)
  }
  { ButtonPartnerAendern Button
MoveScaled(25,0,13,3)
Enabled = False
ToolTip = (Aktuellen Partner bearbeiten)
Text = (Partner \xC3\xA4ndern)
  }
  { ButtonPartnerSuchen Button
MoveScaled(79,0,16,3)
Enabled = False
ToolTip = (Nach einem Partner suchen.\nEs m\xC3\xBCssen minimum 3 
Buch-\nstaben eingegeben werden.)
Text = (Partner anzeigen)
  }
  { TabStripPartner TabStrip
MoveScaled(2,8,93,67)
Enabled = False
Font = Font[Bold]
AutoResize = True
Count = 9
Index = 0
Text = (Anschrift)
Picture = Picture[editcopy.png]
{ TextBoxName1 TextBox
  MoveScaled(15,1,77,3)
  Text = ()
  ReadOnly = True
  MaxLength = 255
}
{ TextLabel1 TextLabel
  MoveScaled(2,1,11.,2.5556)
  ToolTip = (Erste Zeile der Anschrift)
  Text = (Name1)
  Alignment = Align.Right
}
{ TextLabel2 TextLabel
  MoveScaled(2,5,11.,2.5556)
  ToolTip = (Zweite Zeile der Anschrift)
  Text = (Name2)
  Alignment = Align.Right
}
{ TextBoxName2 TextBox
  MoveScaled(15,5,77,3)
  Text = ()
  ReadOnly = True
  MaxLength = 255
}
{ TextLabel3 TextLabel
  MoveScaled(2,9,11.,2.5556)
  ToolTip = (Dritte Zeile der Anschrift)
  AutoResize = True
  Text = (Name3)
  Alignment = Align.Right
}
{ TextBoxName3 TextBox
  MoveScaled(15,9,77,3)
  Text = ()
  ReadOnly = True
  MaxLength = 255
}
{ TextLabel4 TextLabel
  MoveScaled(2,13,11.,2.5556)
  ToolTip = (Stra\xC3\x9Fe der Anschrift)
  Text = (Stra\xC3\x9Fe)
  Alignment = Align.Right
}
{ TextBoxStrasse TextBox
  MoveScaled(15,13,51,3)
  Expand = True
  Text = ()
  MaxLength = 255
}
{ TextBoxPF TextBox
  MoveScaled(72,13,20,3)
  Text = ()
  ReadOnly = True
  MaxLength = 255
}
{ TextLabelPLZ TextLabel
  MoveScaled(2,17,11.,2.5556)
  ToolTip = (Die PLZ zur Stra\xC3\x9Fenanschrift)
  Text = (PLZ  Stra\xC3\x9Fe)
  Alignment = Align.Right
}
{ TextBoxPLZPF TextBox
  MoveScaled(72,17,20,3)
  ToolTip = (Die Postleitzahl der Postfachs)
  Text = ()
  ReadOnly = True
  MaxLength = 255
}
{ TextBoxPLZ TextBox
  MoveScaled(15,17,19,3)
  ToolTip = (PLZ der Stra\xC3\x9Fenanschrift)
  Text = ()
  ReadOnly = True
  MaxLength = 255
}
{ TextLabel6 TextLabel
  MoveScaled(9,21,4,2.5556)
  ToolTip = (Der Ort der Anschrift)
  Text = (Ort)
  Alignment = Align.Right
}
{ TextBoxOrt TextBox
  MoveScaled(15,21,77,3)
  Text = ()
  ReadOnly = True
  MaxLength = 255
}
{ TextLabel7 TextLabel
  MoveScaled(2,25,11.,2.5556)
  ToolTip = (Das Land der Anschrift)
  Text = (Land)
  Alignment = Align.Right
}
{ TextBoxLand TextBox
  MoveScaled(15,25,77,3)
  Text = ()
  ReadOnly = True
  MaxLength = 255
}
{ TextLabel8 TextLabel
  MoveScaled(1,32,13,2.5556)
  ToolTip = (Telefonnummer der Zentrale)
  Text = (Zentrale)
  Alignment = Align.Right
}
{ TextLabel9 TextLabel
  MoveScaled(2,36,11.,2.5556)
  ToolTip = (Die FAX-Nummer der Zentrale)
  Text = (FAX)
  Alignment = Align.Right
}
{ TextLabel10 TextLabel
  MoveScaled(64,53,10.5556,3.)
  ToolTip = (Das Anlagedatum des Partners in der Datenbank)
  Text = (Angelegt am)
  Alignment = Align.Right
}
{ TextLabelEinstufung TextLabel
  MoveScaled(2,52,11.,3.)
  ToolTip = (Einstufung/Beurteilung des Kunden)
  Text = (Einstufung)
  Alignment = Align.Right
}
{ TextBoxTelefonZentrale TextBox
  MoveScaled(15,32,35,3)
  Text = ()
  ReadOnly = True
  MaxLength = 255
}
{ ButtonWeitereNummern Button
  MoveScaled(54,32,38,7)
  ToolTip = (Anzeige/Pflege weiterer 

Re: [Gambas-user] Signal #11

2008-09-07 Thread Kari Laine
On Sun, Sep 7, 2008 at 3:48 PM, Hans-Martin [EMAIL PROTECTED] wrote:

 Am Sonntag, 7. September 2008 14:05:22 schrieb Hans-Martin Bundeshund:
  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

Hi,

sorry can not help you with your problem but it is better to send a little
project as .tar.gz to the list which exhibits the problem. That way Benoit
and others have it easier to test it and help you.

As I am learning the Gambas I can not figure out what is this container
object passed to form-constructor. I tried to look at Gambas help but no
avail. Could someone tell me please.

Best Regards
Kari Laine
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Signal #11

2008-09-07 Thread Ron_1st
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.,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? 
 

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Signal #11

2008-09-07 Thread Hans-Martin
Am Sonntag, 7. September 2008 16:44:34 schrieb Ron_1st:
 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.,4,97,77) -- to MoveScaled(13,4,97,77)
   Text = (Partnerverwaltung)
   { EditImmerAn Menu NeuenPartnerAnlegen
  

fixed this, but same behavier  :(


 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 = ()
   }

fixed this too, but still sig11


 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.

good idea. i have done this. gambas throws the signal#11 error before the 
first statement (in _new()) is reached. so the breakpoint i set on the first 
instruction is never reached... strange. there must be something else in 
the .form-file that will raise this error...

 Editing here will not corrupt your current real project to mess.



Many thanks for that. me have to look closer and try more out  :(
It must something that changes between 2.7.0 and 2.8.2...

 Best regards
 Ron_1st

Hans-Martin



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Signal #11

2008-09-07 Thread Joachim Ruoff
Hi all,

I had a similar problem, my application runs well until I update to 
Gambas 2.8, then I get the error message with signal#11

I could solve that problem, when I delete the shortcuts in the menu 
editor, now the program runs well. May be there is a bug with that 
shortcuts?
When I use these shortcuts in an other application the same problem occurs.

Regards
Joachim

Hans-Martin schrieb:
 Am Sonntag, 7. September 2008 16:44:34 schrieb Ron_1st:
   
 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.,4,97,77) -- to MoveScaled(13,4,97,77)
   Text = (Partnerverwaltung)
   { EditImmerAn Menu NeuenPartnerAnlegen
 
   

 fixed this, but same behavier  :(

   
 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 = ()
   }
   

 fixed this too, but still sig11

   
 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.
 

 good idea. i have done this. gambas throws the signal#11 error before the 
 first statement (in _new()) is reached. so the breakpoint i set on the first 
 instruction is never reached... strange. there must be something else in 
 the .form-file that will raise this error...

   
 Editing here will not corrupt your current real project to mess.


 

 Many thanks for that. me have to look closer and try more out  :(
 It must something that changes between 2.7.0 and 2.8.2...

   
 Best regards
 Ron_1st
 

 Hans-Martin



 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

   
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Maybe a bug in how Gambas manages open DB connections

2008-09-07 Thread Leonardo Miliani
Benoit Minisini ha scritto:
 On vendredi 05 septembre 2008, Leonardo Miliani wrote:
 Ops I forgot the version: 2.8.1, but got the same error with
 previous versions 2.8 and, if I remember correctly, 2.7.
 
 Then please post the actual code that shows your problem.
 
 Thanks.
 

English is not my native language so maybe I can not explain the problem
very well.
But it's very easy to understand (don't think at the code, now: just
think in pseudocode or logical steps):

1) I open a connection named C1
2) I get some results from it
3) I open a new connection named C2
4) Just after the point 3), if I try to get some other results from C1,
I get the error the the C1 is not a valid object. I must call another
MySQL query (even with C1.Find or C1.Execute or whatever I want) before
to look for a result.

I send the complete form (class and gui) that give me the error: not the
complete project (too big, several MBs), not the original DB (tooo
big...).

-- 
Ciao.
Leo.

Web: www.leonardomiliani.com
E-mail: [EMAIL PROTECTED]
Scegli software opensource - Choose opensource software

Co-fondatore di Gambas-it.org
Il sito di riferimento della comunità italiana degli utenti di Gambas
www.gambas-it.org


frmApriAuto.tar.bz2
Description: application/bzip
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Trayicon question

2008-09-07 Thread Ron
Hi,

I want to add trayicon functionality to my program.
So I have dragged a Trayicon object to my main form to start with.

When I start my program I get an 'Embedding has failed' error.
Since the message is so sparse, I have no clue where to look...
Do I miss a component, or forgot something?

I'm using gb.qt  with Gambas 2.8.1

Thanks in advance.

Regards,
Ron_2nd

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Maybe a bug in how Gambas manages open DB connections

2008-09-07 Thread Ron_1st
On Sunday 07 September 2008, Leonardo Miliani wrote:
 Benoit Minisini ha scritto:
  On vendredi 05 septembre 2008, Leonardo Miliani wrote:
  Ops I forgot the version: 2.8.1, but got the same error with
  previous versions 2.8 and, if I remember correctly, 2.7.
  
  Then please post the actual code that shows your problem.
  
  Thanks.
  
 
 English is not my native language so maybe I can not explain the problem
 very well.
 But it's very easy to understand (don't think at the code, now: just
 think in pseudocode or logical steps):
 
 1) I open a connection named C1
 2) I get some results from it
 3) I open a new connection named C2
 4) Just after the point 3), if I try to get some other results from C1,
 I get the error the the C1 is not a valid object. I must call another
 MySQL query (even with C1.Find or C1.Execute or whatever I want) before
 to look for a result.
 
 I send the complete form (class and gui) that give me the error: not the
 complete project (too big, several MBs), not the original DB (tooo
 big...).
 

When I did understand right in the past the mysql access is asynchroon.
This means before the C!.exec it connects and after it it disconnect
leaving no open connections, only the result is hold.
When you make the C2 connection maybe the C1 connection is destroyed.
This because i think you use the exact same property values.
Try with another user name for C2, then mysql knows they are different

For the connection the main properties are 'use', 'password', 'server', 'port'.
Less importand are the 'database' and 'table'

The wrong thing I see is that all those properties are put together on the 
connection.
I should have 1 connection and across that same connection be able to
access several databases and tables in them.
I'm not sure that this is true in gambas.

Seen from the mysql server it gets request from 2 equal sources, the different 
gambas
connections are the same for the TCP connection. 
There is no unique identification sign they are differnt in the TCP connection.
It could be the 'user'/'password'
So the asynchroon close from the C@ connection kills someway C1 also. I think.
 
Just guessing this is the problem.

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? 
 

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user