Error since upgrade

Postby Jeff Barnes » Fri Oct 06, 2006 11:35 pm

Antonio,

This was my original QuitApp() code

Code: Select all  Expand view
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  Expand view
     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
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Postby Antonio Linares » Sat Oct 07, 2006 5:29 pm

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
User avatar
Antonio Linares
Site Admin
 
Posts: 42077
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], nageswaragunupudi, Otto and 60 guests