Web Development

General discussion


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.

Thread display: Collapse - | Expand +

All Comments

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.

Related Discussions

Related Forums