General information
Category:
COM/DCOM and OLE Automation
Title:
R1.dll being created
Environment versions
Network:
Windows 2008 Server
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only