Page 1 of 1

Access Violation when displaying another form from onError Event in TOraSession

Posted: Tue 03 Jul 2007 01:31
by wjm4
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

Posted: Tue 03 Jul 2007 12:53
by Challenger
We couldn't reproduce this error using information you have specified. Please send to ODAC support address complete sample that demonstrates this problem.

Posted: Tue 03 Jul 2007 14:03
by wjm4
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?