General discussion

Locked

Why I get error "CoInitialize has not be

By wkleo ·
Currently I develop web based application (ISAPI) using websnap in delphi 6 and I facing the problem when I using ADO component in Delphi6 which is TADOQuery to accesing data in SQL Server 7 during runtime which is get error "CoInitialize has not been called" but fine in designtime.Can somebody let me know what's caused the problem as soon as possible?
Currently I using IIS Web Server for develop web
based application.Thank You.

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Why I get error "CoInitialize has not be

by sl-campbell In reply to Why I get error "CoInitia ...

Please check out this information:

http://support.microsoft.com/default.aspx?scid=kb;en-us;Q190959

And then maybe this:

http://search.support.microsoft.com/search/default.aspx?Catalog=LCID%3D1033%26CDID%3DEN-US-KB%26PRODLISTSRC%3DON&Product=msall&Query=CoInitialize%2520has%2520not%2520been%2520called&Queryc=CoInitialize+has+not+been+called&REF=false&srchstep=0&KeywordType=ALL&Titles=false&numDays=&maxResults=25

Make sure you remove any spaces in the URL that may have gotten in during copying.

Collapse -

by ytvsoftware In reply to Why I get error "CoInitia ...

The most often the difference of debug and release version of executables is that at debug the data fields are initialized automatically and at release are not. Check do you read some variables without initializing them before. Also check the lengths of variables. Might be you overrun it, but at debug it hidden as the program
includes special additional information etc. Can be problems with synchronization. In debug the program run more slow.

Back to Web Development Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums