Page 1 of 1

Problem with TOraXML.LoadFromStream

Posted: Thu 18 Aug 2005 10:58
by adeptus
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!

Posted: Thu 18 Aug 2005 13:13
by Paul
We reproduced your problem and fixed it. This fix will be included to the next ODAC build.

Posted: Thu 18 Aug 2005 13:41
by adeptus
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!