Try/Except issue with Intraweb ?

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
jdredd
Posts: 42
Joined: Wed 25 Mar 2009 21:14

Try/Except issue with Intraweb ?

Post by jdredd » Tue 06 Jul 2010 19:34

I have an Intraweb application that uses ODAC.

In my Mainform, i have a try/except around a OraSession.Connect;

example

try
Usersession.orasession.connect;
except on
e:exception do
begin
webapplication.terminate('DB Error = '+e.message);
end;
end;

This does not seem to work at all.

on Orasession I set the error event to set a string to use, but this doesn't seem to exactly work either as planned.

Anyone deal with Intraweb and Odac ?

bork
Devart Team
Posts: 649
Joined: Fri 12 Mar 2010 07:55

Post by bork » Wed 07 Jul 2010 16:08

Hello

The try/except block in Delphi has the same behavior for all applications (for VCL and IntraWeb). Please explain what does it mean: "this doesn't seem to exactly work either as planned".

jdredd
Posts: 42
Joined: Wed 25 Mar 2009 21:14

Post by jdredd » Wed 07 Jul 2010 21:13

This can be ignored.

Was using this on a intraweb vcl form create.. and doing things that seems to output to the screen and such, doesn't play to nicely.

Moved the code, and everything executes as planned.

Post Reply