Hi all,
Well, I have a ActiveX EXE thats runs as Service (using a typelib to
implements the SCM Handler) and I had declared an collection in a public
basic module
All the application runs like this:
________________________________________________________________
My App
Public Class Module: BaseClass
Runs an Winsock API functions thats listen for connections, when an
connection is requested is accepted and a new class is add to the
collection
Public Class Module: Socket
Used to controls the Winsock connection handle and is members of the
Collection
Basic Module: Main
Public variables declared like collections API's and Functions
_________________________________________________________________
There is a function in the BaseClass thats returns the Collection declared
as Public the the basic module
In another VB App I tried
Sub Form_Load()
Dim MyBaseClass
Set MyBaseClass = GetObject()
Debug.Print MyBaseClass.Socks.Count
End Sub
and this always returns 0 but I'm sure thats this var has itens becouse for
every iten added to the collection I made:
Socks.Add
App.LogEvent Socks.Count
I suspect that is becouse the service runs under the System Service
credential and probability runs another thread on the same process, I don't
know what to do
Reguards,
Luiz
Archived from group: microsoft>public>vb>ole