TheAvenger
asked on
Error when creating a second instance of a COM control
Hi Experts,
I am developing a small COM control using Visual Basic 6.0. Everything works fine with the control until I try to make two simultaneously running instances of it. The first instance is created without any problems, however the second does give the following error:
Not enough storage is aviable to complete this operation
I have enough RAM and hard drive space available. I tried the same control with ASP and with a small Delphi application and I get the same error.
I suppose my control is somehow configured to run only a single instance, but I don't know how to control this. Can someone help?
Thanks!
TheAvenger
I am developing a small COM control using Visual Basic 6.0. Everything works fine with the control until I try to make two simultaneously running instances of it. The first instance is created without any problems, however the second does give the following error:
Not enough storage is aviable to complete this operation
I have enough RAM and hard drive space available. I tried the same control with ASP and with a small Delphi application and I get the same error.
I suppose my control is somehow configured to run only a single instance, but I don't know how to control this. Can someone help?
Thanks!
TheAvenger
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
What is your OS and which service pack you have installed?
ASKER
The OS is Windows XP, SP 1 and SP2 (two machines).
I have some global variables. I will try to move them in a class and come back with a post after it.
I have some global variables. I will try to move them in a class and come back with a post after it.
ASKER
@EDDYKT: Unfortunately not
What do you do inside your COM object? Database accessing?
Is your COM object ocx or dll?
Is your COM object ocx or dll?
ASKER
It was a problem with the log I was using - it was using a file and probably locked it. I now use the Event Log of NT and it works just fine.