A somewhat cheesy fix would be to subclass TDatabase and change it so that 
it doens't store the connected property.  Also, you could change it so that 
it doesn't read it in or at least ignore it when it does.

----- Original Message ----- 
From: "Gies,Brad" <[EMAIL PROTECTED]>
To: <delphi-talk@elists.org>
Sent: Wednesday, May 24, 2006 11:07 AM
Subject: Closing DB Connection when compiling


>
> Does anyone have a decent way of making sure a TDatabase is closed
> before compiling. Other than the obvious checking to make sure before
> the build?
>
> Is there a way to modify the .dfm and close the TDatabase if it's not
> already closed?
>
>
> Sincerely,
>
> Brad Gies
> -------------------------------------
> NLM Software
> Southfield, MI, USA
> ------------------------------------- 
>
>
>
>
>
>
>
> This e-mail is intended only for the person or entity to which it is 
> addressed and may
> contain confidential and/or privileged material.  Any review, 
> retransmission,
> dissemination or other use of, or taking of any action in reliance upon, 
> this information
> by persons or entities other than the intended recipient is prohibited. 
> If you
> received this message in error, please contact the sender immediately and 
> delete
> the material from your computer.
> __________________________________________________
> Delphi-Talk mailing list -> Delphi-Talk@elists.org
> http://www.elists.org/mailman/listinfo/delphi-talk
>
> 

__________________________________________________
Delphi-Talk mailing list -> Delphi-Talk@elists.org
http://www.elists.org/mailman/listinfo/delphi-talk

Reply via email to