Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
R1.dll being created
Message
De
26/06/2014 14:35:45
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
R1.dll being created
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01602608
Message ID:
01602608
Vues:
87
I have almost the simplest possible COM server. COMServer.prg has this code:

define class COMServer as Session olepublic
function Hello(tcName)
return 'Hello, ' + tcName
endfunc
enddefine

The only other file in the project is Config.fpw:

logerror = off
talk = off
safety = off
bell = off
notify = off
confirm = on
deleted = on
exclusive = off
resource = off
time = 1000000
refresh = 0,200
keycomp = Windows
screen = off
status bar = off

The project's name is COMServer.pjx, Project Info/Servers is set "Single Use" instancing, and I build a single-threaded DLL named COMServer.dll. When I use this code:

loServer = createobject('COMServer.COMServer')

a new DLL is created in the folder named comserverr1.dll. Why would instantiating a COM object cause a new DLL to be created? I see this on Windows XP, Window 7, and Windows 8.1.

Normally I wouldn't care about this weirdness except if the application is installed in a read-only folder like all good apps should be, the CREATEOBJECT statement fails because the new DLL can't be created.

Has anyone seen this? TIA

Doug
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform