Re: [lazarus] Trouble ending Application that uses Firebird DBs

2007-06-11 Thread Michael Van Canneyt


On Sun, 10 Jun 2007, Arí Ricardo Ody wrote:

> Hi Michael!
> 
> I wasn't disconnecting the database because at least the navigation between
> the first form and the other 2 are occuring without troubles. I was only
> connect at form.create of the the 2 forms called by the first.
> After read your e-mail I implemented the form.close for the 2 forms called by
> the first and put the explicit disconnet in this form.close.
> 
> Both forms called seems to freeze when the execution passes thru the
> TIBConnection.Connected 
> := false. I must to cancel them manually or via task manager.
> 
> When I remove the TIBConnection.Connected := false, navigation became ok
> again...

That probably means that there is something wrong with the TCP/IP connection.
But this is hard to debug, because it is firebird internal stuff.

> Did you read the zaher dirkey's comments?

Yes. I don't think this is it, because you would know about it. Firebird
events are something you must do yourself, and obviously you did not :-)

Michael.

> 
> [ ]
> 
> Ricardo
> At 19:22 10/6/2007, you wrote:
> 
> 
> >On Sun, 10 Jun 2007, Arí Ricardo Ody wrote:
> >
> > > I develop a program in what from an initial 
> > form a execute 2 other programs.
> > > Both other access a Firebird database. I put 
> > a TIBConnection.connected := true
> > > in the Form.Crate of the executed programs 
> > and everything's ok 'till I try to
> > > close the application. When I click the 
> > "Exit" button the Application doesn't
> > > ends... Considering that there are no databases in the first form/program,
> > > what do I do to force the application ends when I execute the Self.Close
> > > in
> > > the first Form?
> > >
> > > If I run the same application using a local database(a database existing
> > > in
> > > the HD of the machime where the application 
> > is running) everything's OK. The
> > > trouble is occurring with databases contained 
> > in other computer(a server of a
> > > win XP network).
> > >
> > > The final users must ends te application via 
> > task manager or manual closing.
> > > They are claiming a lot.
> >
> >Do you explicitly disconnect the database too before closing the form ?
> >
> >Michael.
> 
> 
> _
> To unsubscribe: mail [EMAIL PROTECTED] with
>"unsubscribe" as the Subject
>   archives at http://www.lazarus.freepascal.org/mailarchives
> 

Fwd: Re: [lazarus] Trouble ending Application that uses Firebird DBs

2007-06-10 Thread Arí Ricardo Ody
I had a new idea: Would the trouble be caused by a erroneous or omitted 
Firebird server customization? 

[ ]

Ricardo


- Segue mensagem encaminhada -

Data: Sun, 10 Jun 2007 23:06:27 -0300
De: Arí Ricardo Ody <[EMAIL PROTECTED]>
Para: Lazarus Mailing List 
Assunto: Re: [lazarus] Trouble ending Application that uses Firebird DBs

Hi Michael!

I wasn't disconnecting the database because at 
least the navigation between the first form and 
the other 2 are occuring without troubles. I was 
only connect at form.create of the the 2 forms called by the first.
After read your e-mail I implemented the 
form.close for the 2 forms called by the first 
and put the explicit disconnet in this form.close.

Both forms called seems to freeze when the 
execution passes thru the TIBConnection.Connected 
:= false. I must to cancel them manually or via task manager.

When I remove the TIBConnection.Connected := 
false, navigation became ok again...

Did you read the zaher dirkey's comments?

[ ]

Ricardo
At 19:22 10/6/2007, you wrote:


>On Sun, 10 Jun 2007, Arí Ricardo Ody wrote:
>
> > I develop a program in what from an initial 
> form a execute 2 other programs.
> > Both other access a Firebird database. I put 
> a TIBConnection.connected := true
> > in the Form.Crate of the executed programs 
> and everything's ok 'till I try to
> > close the application. When I click the 
> "Exit" button the Application doesn't
> > ends... Considering that there are no databases in the first form/program,
> > what do I do to force the application ends when I execute the Self.Close in
> > the first Form?
> >
> > If I run the same application using a local database(a database existing in
> > the HD of the machime where the application 
> is running) everything's OK. The
> > trouble is occurring with databases contained 
> in other computer(a server of a
> > win XP network).
> >
> > The final users must ends te application via 
> task manager or manual closing.
> > They are claiming a lot.
>
>Do you explicitly disconnect the database too before closing the form ?
>
>Michael.


_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives




_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Trouble ending Application that uses Firebird DBs

2007-06-10 Thread Arí Ricardo Ody

Hi Michael!

I wasn't disconnecting the database because at 
least the navigation between the first form and 
the other 2 are occuring without troubles. I was 
only connect at form.create of the the 2 forms called by the first.
After read your e-mail I implemented the 
form.close for the 2 forms called by the first 
and put the explicit disconnet in this form.close.


Both forms called seems to freeze when the 
execution passes thru the TIBConnection.Connected 
:= false. I must to cancel them manually or via task manager.


When I remove the TIBConnection.Connected := 
false, navigation became ok again...


Did you read the zaher dirkey's comments?

[ ]

Ricardo
At 19:22 10/6/2007, you wrote:



On Sun, 10 Jun 2007, Arí Ricardo Ody wrote:

> I develop a program in what from an initial 
form a execute 2 other programs.
> Both other access a Firebird database. I put 
a TIBConnection.connected := true
> in the Form.Crate of the executed programs 
and everything's ok 'till I try to
> close the application. When I click the 
"Exit" button the Application doesn't

> ends... Considering that there are no databases in the first form/program,
> what do I do to force the application ends when I execute the Self.Close in
> the first Form?
>
> If I run the same application using a local database(a database existing in
> the HD of the machime where the application 
is running) everything's OK. The
> trouble is occurring with databases contained 
in other computer(a server of a

> win XP network).
>
> The final users must ends te application via 
task manager or manual closing.

> They are claiming a lot.

Do you explicitly disconnect the database too before closing the form ?

Michael.



_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Trouble ending Application that uses Firebird DBs

2007-06-10 Thread Arí Ricardo Ody

I don't understand the _expression_ "events of Firebird". may you develop a little, please? 

Kind regards

Ricardo


 Mon, 11 Jun 2007 03:33:56 +0300, "zaher dirkey" 
<[EMAIL PROTECTED]> escreveu:


Did you use an events of Firebird, may be there is a thread still waiting.


On 6/11/07, Michael Van Canneyt <[EMAIL PROTECTED]> wrote:

On Sun, 10 Jun 2007, Arí Ricardo Ody wrote:

> I develop a program in what from an initial form a execute 2 other programs.
> Both other access a Firebird database. I put a TIBConnection.connected := true
> in the Form.Crate of the executed programs and everything's ok 'till I try to
> close the application. When I click the "Exit" button the Application doesn't
> ends... Considering that there are no databases in the first form/program,
> what do I do to force the application ends when I execute the Self.Close in
> the first Form?
>
> If I run the same application using a local database(a database existing in
> the HD of the machime where the application is running) everything's OK. The
> trouble is occurring with databases contained in other computer(a server of a
> win XP network).
>
> The final users must ends te application via task manager or manual closing.
> They are claiming a lot.

Do you explicitly disconnect the database too before closing the form ?

Michael.



-- 
zaher dirkey 

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Trouble ending Application that uses Firebird DBs

2007-06-10 Thread zaher dirkey

Did you use an events of Firebird, may be there is a thread still waiting.

On 6/11/07, Michael Van Canneyt <[EMAIL PROTECTED]> wrote:




On Sun, 10 Jun 2007, Arí Ricardo Ody wrote:

> I develop a program in what from an initial form a execute 2 other
programs.
> Both other access a Firebird database. I put a TIBConnection.connected:= true
> in the Form.Crate of the executed programs and everything's ok 'till I
try to
> close the application. When I click the "Exit" button the Application
doesn't
> ends... Considering that there are no databases in the first
form/program,
> what do I do to force the application ends when I execute the Self.Closein
> the first Form?
>
> If I run the same application using a local database(a database existing
in
> the HD of the machime where the application is running) everything's OK.
The
> trouble is occurring with databases contained in other computer(a server
of a
> win XP network).
>
> The final users must ends te application via task manager or manual
closing.
> They are claiming a lot.

Do you explicitly disconnect the database too before closing the form ?

Michael.





--
zaher dirkey


Re: [lazarus] Trouble ending Application that uses Firebird DBs

2007-06-10 Thread Michael Van Canneyt


On Sun, 10 Jun 2007, Arí Ricardo Ody wrote:

> I develop a program in what from an initial form a execute 2 other programs.
> Both other access a Firebird database. I put a TIBConnection.connected := true
> in the Form.Crate of the executed programs and everything's ok 'till I try to
> close the application. When I click the "Exit" button the Application doesn't
> ends... Considering that there are no databases in the first form/program,
> what do I do to force the application ends when I execute the Self.Close in
> the first Form?
> 
> If I run the same application using a local database(a database existing in
> the HD of the machime where the application is running) everything's OK. The
> trouble is occurring with databases contained in other computer(a server of a
> win XP network).
> 
> The final users must ends te application via task manager or manual closing.
> They are claiming a lot.

Do you explicitly disconnect the database too before closing the form ?

Michael.

[lazarus] Trouble ending Application that uses Firebird DBs

2007-06-10 Thread Arí Ricardo Ody
I develop a program in what from an initial form a execute 2 other 
programs. Both other access a Firebird database. I put a 
TIBConnection.connected := true  in the Form.Crate of the executed 
programs and everything's ok 'till I try to close the application. 
When I click the "Exit" button the Application doesn't ends... 
Considering that there are no databases in the first form/program, 
what do I do to force the application ends when I execute the 
Self.Close in the first Form?


If I run the same application using a local database(a database 
existing in the HD of the machime where the application is running) 
everything's OK. The trouble is occurring with databases contained in 
other computer(a server of a win XP network).


The final users must ends te application via task manager or manual 
closing. They are claiming a lot.


Suggestions?

Greetings from Sao Paulo - Brazil

Ricardo