all groups > inetserver asp components > october 2003 >
You're in the

inetserver asp components

group:

Creating COM object from asp


Creating COM object from asp Yaroslav Nizhnik
10/24/2003 7:10:17 PM
inetserver asp components:
I have a problem.
I've implemented Out-proc COM object - 'obj' in server - 'serv.exe'. If I
create this object from VB script, or C++ client, It works correctly.
But if I start my server (run serv.exe, or create 'obj' from client), and
try to create it from asp - it works fine, but new process will be created.
So when I do 'Server.CreateObject("Serv.obj")', it doesn't create object in
old process, but the new process "serv.exe" will be started. Please, answer
me, how to solve this problem with two processes.

Re: Creating COM object from asp Cowboy (Gregory A. Beamer)
10/28/2003 10:30:06 AM
GetObject(): ASP runs in the IIS process space, which is held in MTS/COM+
(depending on OS version). GetObject() is allowed in MTS/COM+, which will
attempt to get a running version before spawning a new object.
CreateObject() is designed to "create" (ie, instantiate) an object).

You should find some good tutorials on MSDN.microsoft.com or
support.microsoft.com for using GetObject().

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

**********************************************************************
Think Outside the Box!
**********************************************************************
[quoted text, click to view]

AddThis Social Bookmark Button