🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.comp.borland-delphi
4 messages
4 total messages Started by Jens Hartmann Thu, 25 Aug 2005 19:52
Process is not terminated
#445
Author: Jens Hartmann
Date: Thu, 25 Aug 2005 19:52
21 lines
2138 bytes
Hi,

I have the following problem:

I wrote a programm which connects to a MySQL-Database. I use "libmySQL.dll" 
and "mysql.pas" which are recommended on mysql.com.
To connect to the Database I use mysql_real_connect(). To terminate the 
connection I use mysql_close().
Everytime I close the program after I have connected to the database, the 
programm-prozess is not terminated. If I close the program without having 
connected to the database there is no problem.

How can I terminate the process or what have I to do in order the let the 
prozess terminate by itself?

I use Delphi 5, MySQL 4.0.13., the unit "mysql.pas" and the required 
"libmySQL.dll". My OS is WinXP SP2.

Thanks in advance!

Greets Jens 
Re: Process is not terminated
#438
Author: �abster
Date: Mon, 29 Aug 2005 08:51
33 lines
2228 bytes
I use HALT(1)

or
asm
push 0
call ExitProcess
end;
U�ytkownik "Jens Hartmann" <jens_hartmann@yahoo.de> napisa� w wiadomo�ci
news:del7gq$59f$1@online.de...
> Hi,
>
> I have the following problem:
>
> I wrote a programm which connects to a MySQL-Database. I use
"libmySQL.dll"
> and "mysql.pas" which are recommended on mysql.com.
> To connect to the Database I use mysql_real_connect(). To terminate the
> connection I use mysql_close().
> Everytime I close the program after I have connected to the database, the
> programm-prozess is not terminated. If I close the program without having
> connected to the database there is no problem.
>
> How can I terminate the process or what have I to do in order the let the
> prozess terminate by itself?
>
> I use Delphi 5, MySQL 4.0.13., the unit "mysql.pas" and the required
> "libmySQL.dll". My OS is WinXP SP2.
>
> Thanks in advance!
>
> Greets Jens
>
>
Re: Process is not terminated
#439
Author: Erik
Date: Mon, 29 Aug 2005 17:59
41 lines
2544 bytes
The first thing I would do is test to see if the MySQL
server is closing your connection at your mysql_close()
statement.

Put a button on your form, and onclick mysql_close()
watch the server to see that your connection no longer
exists.

It kind of sounds like your app is waiting for the
connection to be closed.

I'm sure somebody smarter than I will say something if
I'm just talking out my butt, here.

GL

Jens Hartmann wrote:
> Hi,
> 
> I have the following problem:
> 
> I wrote a programm which connects to a MySQL-Database. I use "libmySQL.dll" 
> and "mysql.pas" which are recommended on mysql.com.
> To connect to the Database I use mysql_real_connect(). To terminate the 
> connection I use mysql_close().
> Everytime I close the program after I have connected to the database, the 
> programm-prozess is not terminated. If I close the program without having 
> connected to the database there is no problem.
> 
> How can I terminate the process or what have I to do in order the let the 
> prozess terminate by itself?
> 
> I use Delphi 5, MySQL 4.0.13., the unit "mysql.pas" and the required 
> "libmySQL.dll". My OS is WinXP SP2.
> 
> Thanks in advance!
> 
> Greets Jens 
> 
> 
Re: Process is not terminated
#440
Author: J French
Date: Tue, 30 Aug 2005 07:53
15 lines
1575 bytes
On Mon, 29 Aug 2005 10:51:10 +0200, "�abster" <labsta@poczta.of.pl>
wrote:

>I use HALT(1)
>
>or
>asm
>push 0
>call ExitProcess
>end;

Out of interest, why use ASM 
-  ExitProcess is just a StdCall API

ExitProcess( 0 );
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads