Error since upgrade

User avatar
Jeff Barnes
Posts: 912
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada
Contact:

Post by Jeff Barnes »

Antonio,

This was my original QuitApp() code

Code: Select all

function quitapp()
      dbcloseall()
      freelibrary( hBorland )
      set resources to
      clear memory
      ResAllFree()
      if ! empty( oMainWnd )
         oMainWnd:end()
      endif
      Syswait(.01)
      quit
return .f.
By removing:

Code: Select all

     if ! empty( oMainWnd )
        oMainWnd:end()
     endif
I no longer get the error.

Any idea why the above would cause the error ??

Thans
Jeff
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Jeff,

The method End() releases several GDI objects, though they are also released automatically by the system when the app is finished.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply