Armin Taghavizad
Armin Taghavizad

Reputation: 1685

Threads managing problem!

I wrote a program that uses OLE and it was working fine until I added some components which were important for my program, after that my program have problem when starts to work with OLE and raise this exception:

    "EOleSysError
     No more threads can be created in the system"

is there any way to requesting more threads or free used threads or something like them? How can solve this problem? Thanks.

Upvotes: 3

Views: 269

Answers (2)

Runner
Runner

Reputation: 6111

I strongly suggest, either you stop using the components if you cannot fix them (tell the author to fix them), or you start using them correctly if the fault is on your side. Reaching the thread limit for a process is a serious issue and should never happen. There is no cure for that, but fixing the code that is causing it.

Read this: Pushing the Limits of Windows: Processes and Threads

Upvotes: 8

André
André

Reputation: 9112

Maybe you use those components in a bad way? So those components keep connections and threads open instead of closing them?

What kind of components do you use? And how, do you have some example code?

Upvotes: 2

Related Questions