(07-16-2019, 11:32 AM)Alexandre Machado Wrote:(07-16-2019, 07:24 AM)matija Wrote: Not Work!
Otherwise, it opens a login window, but it reports an error in OnCheck!
Debug Output: TIWServerController.IWAutherEvent1Check ERROR EAccessViolation error raised, with message : Access violation at address 0151F424 in module 'QnGUI.exe'. Read of address 000000AC Process QnGUI.exe (7340)
yes, it does work. You need to determine why you are receiving an AV there. Something in your event code is probably accessing some object which hasn't been initialized yet. Debug your event and find out why you are getting an AV. IW is correctly triggering the event but it has no control over user code.
Only this is in OnCheck: Result := TIWUserSession(WebApplication.Data).CheckUser(aUser, aPass); from sample
WebApplication.Data = nil! Why?
Previously it worked! Must by change only property in ServerController or UserSession?