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

  • Home
  • SEARCH
  • 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 5961503
In Process

The Archive Base Latest Questions

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

We have a current product written in Delphi 6 websnap, which I’m attempting to

  • 0

We have a current product written in Delphi 6 websnap, which I’m attempting to upgrade to run under delphi 2005.
It uses ADO, and the error on running is “CoInitialize has not been called”.
The only references I can find to this error point to IntraWeb and something called ServerController, which I’m not sure is relevant to me.
Any number of calls of CoInitialize(nil) have no effect.

Am I wasting my time getting this to run or is it possible to run under 2005 -or a later release come to that?

  • 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-22T18:58:26+00:00Added an answer on May 22, 2026 at 6:58 pm

    CoInitialize needs to be called within the thread that does the COM access (e.g. in any thread that accesses your database through ADO). It is called in the main thread by Delphi by default, but you need to call it explicitly in other threads.

    Try calling it in the OnActivate event, and call CoUninitialize in the OnDeactivate event.

    Also make sure your ADOTables and ADOConnections are not open at design time. As otherwise the app will try to use COM before you’ve called CoInitialize.

    If all else fails – try overriding the web form’s constructor and slip a CoInitialize in there before you call inherited. Don’t forget to call CoUninitialize in the destructor.

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

Sidebar

Related Questions

I have three current thoughts on how to do this: re-implement AuthenticationService, which uses
Our current product is based on Eclipse RCP. We are starting to have problems
If I have a query like this: String Category = HttpContext.Current.Request.QueryString[Product].ToString(); IQueryable<ItemFile> pressReleases =
I have current a developed app which I am going to submit in just
I have the current PHP: $thisarray[] = #000; SetProfileField('usercss', $USER->id, implode(',',$thisarray)); Which writes #000
The current product I work on is a Windows Service written in C++ and
Currently we have couple projects that are written in Delphi 6. Because of specific
I have written an importer which copies data from a flat table into several
I have written a script that gets paypals current rates compared with the dollar
I have written my pivot SQL and it is working. The current SQL Statement

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.