Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Mike Potjer
  Where is Mike Potjer?
 Wyoming
 Michigan - United States
 Mike Potjer
 To: Bernard Bout
  Where is Bernard Bout?
 Brisbane
 Australia
 Bernard Bout
 Tags
Subject: RE: Error building MTDLL
Thread ID: 248357 Message ID: 248739 # Views: 4 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Errors & Debugging
Date: Tuesday, December 22, 2009 6:54:30 PM         
   


> A simple tip. When testing these type of files, it is always better to compile them as an EXE rather than a DLL and use that. Then you can easily see when it is loaded in memory and if it crashes due to an error it is a simple matter to unload it using the task manager. A MTDLL, because it runs in the same memory space as the calling app, will not show up like that and a crash could lock the DLL in memory.
>
> Bernard
>
> ** If you see someone without a smile, give em one of yours :) **
> My Blog

Thanks for the tip, Bernard. All advice in this area is appreciated, since at this point I only have enough knowledge of DLLs and COM to be dangerous. :-)

The problem I was having was actually occurring when I was trying to build the DLL. VFP was repeatedly failing at the very end of the BUILD MTDLL process, either at or immediately before the point where it reports that it is "Creating type library and registering COM component". I don't think that a locked DLL was the problem, since I restarted my PC, and later powered it down, and I could still not build when the PC came back up. And I was NOT trying to run any code in between shut-downs and my numerous attempts to build the DLL. Also, a build attempt had failed just prior to my deleting all the code files in the project. It was only after I forced all new copies of the code files to be restored from source control that the project would finally build again.

Mike Potjer
Optimal Solutions, Inc.

ENTIRE THREAD

Error building MTDLL Posted by Mike Potjer @ 12/17/2009 11:19:34 PM
RE: Error building MTDLL Posted by Anatoliy Mogylevets @ 12/18/2009 12:12:09 AM
RE: Error building MTDLL Posted by Mike Potjer @ 12/19/2009 12:01:45 AM
RE: Error building MTDLL Posted by tushar @ 12/18/2009 5:25:07 AM
RE: Error building MTDLL Posted by Mike Potjer @ 12/19/2009 12:08:06 AM
RE: Error building MTDLL Posted by tushar @ 12/19/2009 5:20:19 AM
RE: Error building MTDLL Posted by Mike Potjer @ 12/21/2009 6:29:47 PM
RE: Error building MTDLL Posted by Bernard Bout @ 12/22/2009 3:06:59 AM
RE: Error building MTDLL Posted by Mike Potjer @ 12/22/2009 6:54:30 PM
RE: Error building MTDLL Posted by Mike Potjer @ 1/7/2010 10:56:29 PM
RE: Error building MTDLL Posted by Stefan Wuebbe @ 1/8/2010 8:37:24 AM