Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > General Discussion
  New Posts New Posts RSS Feed - DLL’s fail to initialize
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

DLL’s fail to initialize

 Post Reply Post Reply
Author
Message
kokik View Drop Down
Newbie
Newbie


Joined: 10 May 2005
Location: United States
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote kokik Quote  Post ReplyReply Direct Link To This Post Topic: DLL’s fail to initialize
    Posted: 10 May 2005 at 11:26pm

Ours is a multi-threaded application programmed in VC++ calling VB dll's.
On a Windows 2000 server (Dual Processor & 1GB RAM), about 40 instances of this application run without any problem.
But the moment a few more are created (when the task manager is pulled up, the number of processes are about 120 - 40 by this
application and reaching around 1250 threads in all),
all the applications start throwing errors when creating dll components.
The very first error in each application is "Class not registered"
and the following errors are all "Not enough storage to complete this operation". 
At this point the memory usage is almost 0%; there's lots of RAM and hard disk space available,
so I am unable to understand the reason why "Not enough storage" comes up.
Also, this seems to be closely related with the number of threads and the number of processes
calling CreateDispatch or CreateInstance of the dll component.
On another machine with lesser RAM and storage, a lot more application instances than the number
for which the component creation fails, run without any problem.

What could possibly be the cause?  I am unable to tell if the error is hardware specific,
operating system specific or program specific!

 

Back to Top
Charbel View Drop Down
Newbie
Newbie


Joined: 08 March 2006
Location: Lebanon
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote Charbel Quote  Post ReplyReply Direct Link To This Post Posted: 08 March 2006 at 12:58pm

I am facing the same  problem. Did you manage to find the cause of these errors?

Thanks,

Back to Top
Ark42 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 20 October 2003
Status: Offline
Points: 291
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ark42 Quote  Post ReplyReply Direct Link To This Post Posted: 23 March 2006 at 11:35pm

I would have to guess the system global USER / GDI object maximums are being reached or something similar.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.109 seconds.