Access Violation when displaying another form from onError Event in TOraSession

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
wjm4
Posts: 72
Joined: Mon 12 Feb 2007 21:31

Access Violation when displaying another form from onError Event in TOraSession

Post by wjm4 » Tue 03 Jul 2007 01:31

I am trying to capture a users password has expired when the user logs in. I am using the OnError event from the TOraSession component. When the E->ErrorCode = 28001 I display another form with a password box to type in a new password. However when I call Form->ShowModal() or Form->Show I get an access violation. I know the form I am trying to display is OK because it will display fine from a button click in my main form. Thereforei I think they problem lies with ODAC. Why is there an access violation? Is there another way to change an expired password from ODAC?

Borland Developer Studio 2006 (C++ Personality) with ODAC v. 5.80.0.39

Thanks for the help

Challenger
Devart Team
Posts: 925
Joined: Thu 17 Nov 2005 10:53

Post by Challenger » Tue 03 Jul 2007 12:53

We couldn't reproduce this error using information you have specified. Please send to ODAC support address complete sample that demonstrates this problem.

wjm4
Posts: 72
Joined: Mon 12 Feb 2007 21:31

Post by wjm4 » Tue 03 Jul 2007 14:03

I have solved the access violation problem and it was a problem with my login code. However now I am trying to call the TOraSession->ChangePassword("newpass") function and it is saying that the function is not supported. I am using the NET option and have read in the Forum that this function was not supported when using this option. Why can you not do this with the NET option? Is there a possibility that this will be usable in a future release? Any suggestions on how to change the password without executing a sql statement to alter the user?

Post Reply