Ken Dibble wrote on 2013-04-09: > > I think one of the big culprits is class libraries. > > You've probably tested something, then opened a .prg class library and > attempted to edit the code, and received a message "Remove [something] from > memory?" This stuff is all supposed to be out of memory when whatever you > tested reaches the end of its stack on the way out. And it certainly should > not be in memory if what you tested concludes with the "big three": CLOSE > ALL CLEAR ALL RELEASE ALL. But this happens anyway.
You don't need to "run" the form. I have the difficulty when I have a class in the baseclasslibrary.vcx being used by a commonui.vcx, which I have put on a form. The baseclasslibrary.vcx does not close. I don't run code in my development session. I launch a second session with a custom config.fpw that launches the full program from code. > > And I think that issue is related to why stuff won't compile until you > issue those commands and sometimes not even then. > > Folks are right about using a separate instance of VFP to compile or debug. > The reason I don't do that is because I get "access denied" if I have a > project open in the first instance that the second instance tries to open > again. (I know, I know, I should set my VFP IDE preferences to > multi-user... Old habits die hard.) > Same here! I prefer to get the "access denied" when I attempt to open the project a second time. > Ken Dibble > www.stic-cil.org > I have written some code that loops through the _vfp.activeproject.files collection. It will open each vcx as a table, then issue a Clear Class for each class in it, close the vcx, issue a Release Classlib, then attempt to open the vcx as a table exclusively. If it doesn't I set a flag to run a second pass. The second pass I process the classlibs in reverse. If it still fails on a classlib, I use macro substitution to modify each class, then close it without making any changes. This takes about 5 seconds total on my workstation. I usually never hit the third pass. It also only modifies the classes in the classlib that does not open exclusively. When I wrote this, opening my integrated source control project took just over 1 minute. Since the SourceSafe files have been moved to a new server, opening the project takes 8 to 10 seconds. Tracy Pearson PowerChurch Software _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** 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.

