Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
R1.dll being created
Message
From
26/06/2014 14:35:45
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
R1.dll being created
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01602608
Message ID:
01602608
Views:
85
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
Next
Reply
Map
View

Click here to load this message in the networking platform