Page 1 of 1

Try/Except issue with Intraweb ?

Posted: Tue 06 Jul 2010 19:34
by jdredd
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 ?

Posted: Wed 07 Jul 2010 16:08
by bork
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".

Posted: Wed 07 Jul 2010 21:13
by jdredd
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.