> >>>It says something about TStringList property Strings not being published...
> >>
> >>You will get this error when loading a form with DB (related) components 
> >>with an Active=True property and the connection to the DB fails.
> > 
> > 
> > Doew anyone has any ideas how to solve that? I can remove the error, if
> > the dataset is opened while the component is 'loading', but then an
> > application will also silently close the database, without any error-
> > message?
> 
> I think an error mesage must be shown (in design mode always, in runtime 
> depending on the OnError handler)
> In design mode it may not result in an exception, and the db should stay 
> closed. In runtime an exception is OK unless handled on the OnError

The TDataset,  TDatabase and TTransaction components can't show a
messagedialog, since they are part of the FCL.

So I can suppress the exception. But then you'll never know why it's
impossible to set the active property to true, when you are in design
time.

Maybe that you can change it on the lazarus side: in the except-block,
take care of the EDatabaseError exceptions. (ie: show the message, and
don't reraise it)

Joost.

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to