Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exit on closing the application

Status
Not open for further replies.

1chiban

Programmer
May 31, 2011
4
PT
Hi, i have a problem when closing a pb12 application. It looks like it can't be closed correctly prior from effecting the login. It throws me an exception with the following parameters:

Exception Information:

Code: 0xc0000005 Flags: 0x0000000

Record: 0x0000000000000000 Address: 0x0000000000686982

I tried using the debugger but it looks like it explodes randomly in different parts of the exit method. Any help? Thanks in advance.
 
No, actually it only crashes if i don't log in the application and press the cancel button although the exit method is the same. The final command of the exit sequence is:


IF IsValid (gnv_apl) THEN DESTROY (gnv_apl)

RETURN
 
are you opening your login window from the open event of another window (like mdi)?

then after the open(w_login) you should do something like:

if not this.isvalid() then
return
end if

// to avoid execution of code when the w-login did a close
//

Also check if there's some event or function called, using the post method before opening your login window.

HiH



regards,
Miguel L.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top