Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Possible Bug: Delphi shutsdown when opening project

edited September 2001 in General
I'd like to report a possible bug that is causing me problems, whereby
Delphi is terminating abnormally without any kind of error message.

The scenario is as follows:

I have one form containing a TADOConnection, TppDesigner, TppDataDictionary
and supporting pipelines, datasources etc.
I have another form containing a TADOQuery, TppDBPipeLine, TDataSource and a
TppReport all connected together as required.
The seconds forms TADOQuery's Connection property points to the first forms
TADOConnection.
If I close the project with these two forms open, then open the project
again either through File->Open Project or couble clicking on the
project.dpr file in Explorer, Delphi terminates without reporting any kind
of error.
If I modify the project.dsk file so that neither of these forms are included
in the projects "Open Module List" then the project opens fine and Delphi
runs as it should.

Any suggestions?

Comments

  • edited September 2001
    This is an ADO problem with Delphi 6. There is a bug in the exception
    handling routine that will cause this. Try opening the project, then set
    the TADOConnection's connected property to false. Save your project. Then
    it should open ok. You will need to add code to set the connected property
    to true. If you would like more details, check out Borland's ADO newsgroup.

    Hope this helps,
    - David Scheidt

This discussion has been closed.