Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 622341
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:58:27+00:00 2026-05-13T18:58:27+00:00

We had multi-threaded application. Each thread has to invoke with CoIntialize when it is

  • 0

We had multi-threaded application. Each thread has to invoke with CoIntialize when it is iniatialized as we use some C++ COM object for our DB operation. The application is working fine for longer time in the production env. But suddently the CoIntialize() API in thread init function failed with below error
ThreadInit; HRESULT: 80070008 : Not enough storage is available to process this command.
OS : Windows Server 2003 R2 with SP2. I found work a around in stackoverflow
to increase heapsize for console application from 512 KB to 1MB in windows registry. I can do that. But I want to know what is the possible reason for this to happen first. The env did not changed recently. There are several other process running in that machine they can invoke Coinitialize without any issue. It failed for only two process. Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T18:58:28+00:00Added an answer on May 13, 2026 at 6:58 pm

    CoInitialize “initializes the COM library on the current thread”, which does have a memory requirement.

    My guess is that your production environment hit a point where the application’s heap size was not adequate to initialize COM on the new thread. Perhaps you hit a scenario where you allocated more threads than previously, even if the application wasn’t running as long.

    Raising the heap size would fix this, since it would allow those threads to initialize properly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently debug a multi threaded application, which runs without errors until some functions
I'm working on some big multi threaded project, now yesterday I had a deadlock
I had a multi-thread program which execute from dos prompt, there are some prints
I'm running a C# Console Application that is multi-threaded. The core process retrieves some
I had created a small multi threaded application and I am trying to convert
I am writing a multi-threaded .Net application in which many callers need to concurrently
I'm creating a multi-tenant ASP.NET application using NHibernate (shared schema). I had intended to
Here's the scenario: I have a multi threaded java web application which is running
I am working on a school project where I had to write a multi-threaded
I've had a working version of multi-threaded code, however I was unsatisfied with my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.