Laurent Boutet
Member²
Hi,
i think someone had my pb, but no real answers were made :
I made 2 project with the same code inside : In the create event, i just make a connection to oracle. If the connection is ok, it finally writes "ok" in a log, if not, it just writes "not ok".
Here is the code :
============================================
function TServiceToto.test : Boolean;
var res : Boolean ;
begin
res := False ;
try
try
oratest.Connected := False ;
oratest.LogonDatabase := 'logondatabase' ; oratest.LogonUsername := 'username' ;
oratest.LogonPassword := 'password' ;
SauveInfoLocal('before');
oratest.Connected := True ;
SauveInfoLocal('after');
res := True ;
except
on E:Exception do
SauveInfoLocal(E.Message);
end ;
finally
result := res ;
end ;
end ;
============================================
So i call the test function on the create of the project.
On an oracle server (8.1.7.0.0), the service and the application work fine : they both write in the log that the connection is ok.
So the log looks like :
before
after
ok
On an oracle client (8.1.7.0.0), the application works fine. But the service does not work !! No error !!!! But it does not write
here is how the log looks like :
before
after
ok
before
=> so, when i install the service, it writes :
before
after
ok
But when i start the service, it seems to hang up....and it just writes :
before
=> no errors are generated !!!
I dont understand !!!
The difference is that on one side i have Oracle server, and on the other side i have oracle client.
Please help,
this is an emergency !!!
I really really don't understand !!!
Thanks in Advance,
Laurent.
i think someone had my pb, but no real answers were made :
I made 2 project with the same code inside : In the create event, i just make a connection to oracle. If the connection is ok, it finally writes "ok" in a log, if not, it just writes "not ok".
Here is the code :
============================================
function TServiceToto.test : Boolean;
var res : Boolean ;
begin
res := False ;
try
try
oratest.Connected := False ;
oratest.LogonDatabase := 'logondatabase' ; oratest.LogonUsername := 'username' ;
oratest.LogonPassword := 'password' ;
SauveInfoLocal('before');
oratest.Connected := True ;
SauveInfoLocal('after');
res := True ;
except
on E:Exception do
SauveInfoLocal(E.Message);
end ;
finally
result := res ;
end ;
end ;
============================================
So i call the test function on the create of the project.
On an oracle server (8.1.7.0.0), the service and the application work fine : they both write in the log that the connection is ok.
So the log looks like :
before
after
ok
On an oracle client (8.1.7.0.0), the application works fine. But the service does not work !! No error !!!! But it does not write
here is how the log looks like :
before
after
ok
before
=> so, when i install the service, it writes :
before
after
ok
But when i start the service, it seems to hang up....and it just writes :
before
=> no errors are generated !!!
I dont understand !!!
The difference is that on one side i have Oracle server, and on the other side i have oracle client.
Please help,
this is an emergency !!!
I really really don't understand !!!
Thanks in Advance,
Laurent.