Problem with TOraXML.LoadFromStream

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
adeptus
Posts: 7
Joined: Fri 12 Aug 2005 12:22
Location: Hamburg, Germany

Problem with TOraXML.LoadFromStream

Post by adeptus » Thu 18 Aug 2005 10:58

Hi,

The following code throws an exception when reaching "LoadFromStream":

Stream := TFileStream.Create ('C:\temp\testSmall.xml', fmOpenRead);
with OraSQL4 do begin
with Params.ParamByName('XML_XMLCODE').AsXML do begin
OCISvcCtx := OraSession1.OCISvcCtx;
LoadFromStream (Stream); <- throws Exception!
end;
Execute;
end;

The Same File being loaded via something like Memo1.Lines.LoadFromStream shows perfectly in the Memo... and the XML ist valid.

Using the property AsString to fill the param seems to work, but I would rather use the Stream...

Any idea?

Working with the demoversion and D7 on win2k

Thanks!

Paul
Posts: 725
Joined: Thu 28 Oct 2004 14:06

Post by Paul » Thu 18 Aug 2005 13:13

We reproduced your problem and fixed it. This fix will be included to the next ODAC build.

adeptus
Posts: 7
Joined: Fri 12 Aug 2005 12:22
Location: Hamburg, Germany

Post by adeptus » Thu 18 Aug 2005 13:41

Paul wrote:We reproduced your problem and fixed it. This fix will be included to the next ODAC build.
Wich is due when? Sorry to bother but I need the fix, in order to decide wether to buy ODAC or not... :roll:

by the way: Thanks for the answer!

Post Reply