I'll have to give Tracy's & Mike's suggestions a try although I'm a bit concerned with using SET PROC with an 8MB EXE in a production environment.
Maybe I didn't explain this well. I'm using a standalone PRG that is run from within the context of my EXE but I want to be able to take advantage of the classes in the EXE itself. The fact that the EXE is hard-coded in the PRG is fine (if it worked as I expected) because this is the only place this PRG ever runs. (IOW I'm not concerned at all about reuse here.) What appears to happen when using the 3rd parameter of NEWOBJECT, is it can't read the class library from the EXE, despite the fact that the docs indicate that this is precisely what the 3rd param is for. If so, this limitation should be clearly spelled out in the VFP docs. If I can confirm this, I'll add it to FoxWiki myself. Currently I can work around this by pointing to another copy of the EXE on disk. I could also take the class library I'm using and build an APP from it and point the PRG at that instead of the EXE since it won't be in memory but all these things feel rather kludgy. Mike's suggestion about using SYS(16,0) sounds like it may be the best solution, since he says this allowed him to read things from an EXE. Justin Darnell wrote: > Interesting and on the same page, one of our former developers always made > it a habit to use the EXE parameter to call newobject even inside the > program. So then, when I have two copies of the program, say one for > testing (programtest.exe) and one stable (program.exe) and execute anything > in programtest that calls to a classlib in program.exe I get the "file > descriptor" error you describe. > > Obviously the solution for me (with a different goal in mind) was to > eliminate the third parameter from the NEWOBJECT() calls. > > J > -- Richard Kaye Vice President Artfact/RFC Systems Voice: 617.219.1038 Fax: 617.219.1001 For the fastest response time, please send your support queries to: Technical Support - [EMAIL PROTECTED] Australian Support - [EMAIL PROTECTED] Internet Support - [EMAIL PROTECTED] All Other Requests - [EMAIL PROTECTED] --------------------------------------------------------- This message has been checked for viruses before sending. --------------------------------------------------------- _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://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.

