I loop the project a few times releasing each class library, via a menu call
to this:

PROCEDURE ClearClassLibs
   LOCAL lnCount
   lnCount = 0
   DO WHILE DoClearClassLibs()
      *-- We don't want to get stuck in a loop
      lnCount = lnCount + 1 
      IF lnCount > 10
         EXIT
      ENDIF 
   ENDDO 
ENDPROC

PROCEDURE DoClearClassLibs
   LOCAL llRerun, lcQuickTestCursor
   llRerun = .F.
   lcQuickTestCursor = SYS(2015)
   IF TYPE("_VFP.ActiveProject") = "O" AND NOT ISNULL(_VFP.ActiveProject)
      FOR ii = 1 TO _vfp.ActiveProject.Files.count
        IF _vfp.ActiveProject.Files.Item(ii).type = "V"
            CLEAR CLASSLIB (_vfp.ActiveProject.Files.Item(ii).Name)
            IF NOT llRerun
               TRY 
                  *-- Test the availablity of the classlib
                  USE (_vfp.ActiveProject.Files.Item(ii).Name) IN 0
EXCLUSIVE ALIAS (lcQuickTestCursor)
                  USE IN SELECT(lcQuickTestCursor)
               CATCH
                  llRerun = .T.
               ENDTRY
            ENDIF 
         ENDIF
      NEXT 
   ENDIF
   RETURN llRerun
ENDPROC

-----Original Message-----
From: Alan Bourke
Sent: Wednesday, March 14, 2007 12:02 PM

I get this with VFP9 as well, and releasing the classlib doesn't work. 
Pain in the bum.



_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to