FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Error since upgrade
Posts: 933
Joined: Sun Oct 09, 2005 01:05 PM
Error since upgrade
Posted: Fri Oct 06, 2006 11:35 PM
Antonio,

This was my original QuitApp() code

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


By removing:

     if ! empty( oMainWnd )
        oMainWnd:end()
     endif


I no longer get the error.

Any idea why the above would cause the error ??

Thans
Jeff
Thanks,

Jeff Barnes



(FWH 16.11, xHarbour 1.2.3, Bcc730)
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Error since upgrade
Posted: Sat Oct 07, 2006 05: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

Continue the discussion