Topic: Bug in ADDataSet Load/Save (XML)
|
|
ssw
User
 Senior Boarder
| Posts: 23 |   | Karma: 0 |
|
Bug in ADDataSet Load/Save (XML)
|
|
Posted: 2007/10/02 06:01 |
|
|
|
|
Hi!
While testing AD2.0.3 I found some bugs in persistent dataset mechanism. Also I have some wishes and questions/
Bugs:
1. Related with InternalCalc (again ) and Blobs (only for XML): If ADMemTable has blob field (TBlobField) and InternalCalc filed with *data* then runing SaveToFile gives AV or corrupted XML On first PC it was AV quitly shuting my app. On the second one the output had corrupred rows, like the next
<Row RowID="0" RowState="Inserted">
<Current F1="1">IC1</Current> <<<---
</Row>
<Row RowID="1" RowState="Inserted">
<Current F1="2" IC1="3" />
</Row>
|
where F1 and IC1 are both TIntegerFiled.
Looks like a memory corrupting while saving field value to storage.
2. Blobs are not loaded during LoadFromFile (of course with the other LoadForm's too) only for XML.
Wishes:
I think it would be nice to have a switch turning off storing of TADConnection.Connected = true in design time.
So the form or DM will not request DB connection while loading into IDE.
Questions:
The family of Interbase RDBMS's have ability to send events from Server to Client by POST_EVENT. Is there any plans of supporting this feature in AD2?
For example, FIB+ can register event via DataSet or special component.
PS. Sorry my english, I am not great english writer
|
|
Diman
Admin
 Admin
| Posts: 1461 |  | Karma: 18 |
|
Re:Bug in ADDataSet Load/Save (XML)
|
|
Posted: 2007/10/02 09:21 |
|
|
|
|
Hi
Thank you for reporting.
1 & 2. Fixed.
I think it would be nice to have a switch turning off storing of TADConnection.Connected = true in design time. There is property ConnectedAtRunTime. If you will set it to arInactive, then connection will be inactive after loading of form/data module.
POST_EVENT. Is there any plans of supporting this feature in AD2? Sure, it is not the feature for 2.0. But it is on AnyDAC roadmap.
Sorry my english, I am not great english writer It is international technical forum. And your message is understandable for forum readers. It is most important.
Regards, Dmitry
|
|
ssw
User
 Senior Boarder
| Posts: 23 |   | Karma: 0 |
|
Re:Bug in ADDataSet Load/Save (XML)
|
|
Posted: 2007/10/03 02:04 |
|
|
|
|
There is property ConnectedAtRunTime. If you will set it to arInactive, then connection will be inactive after loading of form/data module.
Yes. But it affects only runtime, but I asked about design time.
The issue will be solved by adding ConnectedAtDesignTime. But IMHO it looks a little bit ugly.
May be it would be better to have single property ConnectedStore controlling both design time and run time. Also I don't see any reason to have designtime connected, but not connected for runtime.
In most cases I like not to store it at all.
POST_EVENT. Is there any plans of supporting this feature in AD2?
Sure, it is not the feature for 2.0. But it is on AnyDAC roadmap.
OK. The use of it is in my current project "roadmap" too. 
Regards.
|
|
Diman
Admin
 Admin
| Posts: 1461 |  | Karma: 18 |
|
Re:Bug in ADDataSet Load/Save (XML)
|
|
Posted: 2007/10/03 03:05 |
|
|
|
|
I will introduce:
TADUseStoredActivation = (arDesignTime, arRunTime); property ResourceOptions.UseStoredActivation: TADUseStoredActivation default [arDesignTime, arRunTime];
This give the ability to inherit (as all other options) this property value from TADManager to TADConnection and to datasets. Also, it allows to control when to use streamed Connected / Active.
|
|
ssw
User
 Senior Boarder
| Posts: 23 |   | Karma: 0 |
|
Re:Bug in ADDataSet Load/Save (XML)
|
|
Posted: 2007/10/03 03:21 |
|
|
|
|
Great! Thank you.
Also I was looking for posibility of creating formated XML. You use IDOM... interfaces for building XML. What about of IXML... interfaces?
IMHO It looks to be easier to use, isn't it?
In current situation the only solution I found is to format whole xml in TADStorage.Close using FormatXMLData route (I can't say that it looks nice). While IXML... use per insert formating.
Regards.
Post edited by: studsw, at: 2007/10/03 03:36
|
|
|