Discussion Locked

Why I get error "CoInitialize has not be

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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.

2 replies

by sl-campbell

by ytvsoftware

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.

This discussion is closed to new replies.