Access Violation, database active at designtime, crashes at runtime

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Erik van Putten
Posts: 20
Joined: Thu 11 Nov 2004 08:24
Location: Moerkapelle

Access Violation, database active at designtime, crashes at runtime

Post by Erik van Putten » Mon 02 Jun 2008 09:38

Hi I have upgraded to SDAC 4.50.0.34 and have found the following problem.

(Running on Delphi 2007 with all available updates and patches under Vista)

When I place a SQL Connection, a TMSDatasource and an TMSTable on a form without activating and then connecting them and activating them at Runtime everything runs fine.

If however the SQL Connection and the TMSTable are activated at designtime (with the option KeepDesignConnected set to false), the moment the SQL Connection is Connected at Runtime I get an Access Violation.

I tried this at two different machines, both get the same problem, the problem does not arise in version 4.35 of SDAC.

It is really helpfull to have this option working to be able see the data at designtime.

p.s. Only having the SQL connection connected at designtime and the rest at runtime also does not create an Access Violation.

Is the same error as formi has reported, or does this still need to be fixed for the next release ?

Kind Regards, Erik.

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Tue 03 Jun 2008 15:40

Thank you for information we have reproduced this problem and fixed it. This fix will be included in the next SDAC build.

Erik van Putten
Posts: 20
Joined: Thu 11 Nov 2004 08:24
Location: Moerkapelle

Post by Erik van Putten » Tue 03 Jun 2008 18:28

Thanks, can't wait for the next release :)

Post Reply