8 messages in org.openoffice.fr.prog[prog] temporisation
FromSent OnAttachments
Martin BlaizotJan 19, 2006 5:52 am 
Bernard MarcellyJan 19, 2006 12:18 pm 
Alex ThurgoodJan 20, 2006 2:35 am 
Martin BLAIZOTJan 20, 2006 3:03 am 
Martin BLAIZOTJan 20, 2006 3:24 am 
Bernard MarcellyJan 20, 2006 5:15 am 
Martin BLAIZOTJan 20, 2006 9:10 am 
Alex ThurgoodJan 20, 2006 1:49 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[prog] temporisationActions...
From:Martin Blaizot (mart@wanadoo.fr)
Date:Jan 19, 2006 5:52:08 am
List:org.openoffice.fr.prog

Bonjour à tous,

J'ai une boîte de dialogue avec beaucoup de list box à remplir; j'ai donc une
fonction Fill_listBox que j'appelle plusieurs fois de suite pour remplir mes
list box. (cette fonction fait appel à deux autres fonctions : ConnecterSource()
puis DeconnecterSource() reprise dans le livre de bernard, avec en argument la
base et la table souhaitées) J'obtient très régulièrement des messages d'erreur du type Disposed Exception
concernant l'objet omaConnexion. Si par contre je place un "wait 1000" entre chaque instruction Fill_listBox, je
n'ai plus ces messages d'erreur.

Il semble donc que j'essaie d'ouvrir une connexion avant que la précédente ne
soit fermée; existe-t-il un moyen de tester l'état de ma connection afin de
remplacer mon wait par quelque qui voudrait dire : "wait while omaConnexion is
not closed"

D'avance merci,

Martin