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
Access Violation when displaying another form from onError Event in TOraSession
-
Challenger
- Devart Team
- Posts: 925
- Joined: Thu 17 Nov 2005 10:53
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?