开发者

How to debug a delphi 2006 clientDataSet if at all possible

开发者 https://www.devze.com 2022-12-17 10:19 出处:网络
Over the last few days we have seen random access violations being raised on Delphi 2006 using the ClientDataSet when loading an XML block but the errors disappear when using CodeGear 2007 rad Studio.

Over the last few days we have seen random access violations being raised on Delphi 2006 using the ClientDataSet when loading an XML block but the errors disappear when using CodeGear 2007 rad Studio.

I have a strange feeling that this is going to come back and haunt us in the future.

So, how can I debug the xml load procedure for a clien开发者_开发技巧tdataset.LoadFromStream method?

I can see it is defined in dbclient.pas but I cannot seem to find the xml processing section.

JD


I don't know if you've tried this already, but it's entirely legal (and supported) to use the Delphi 2007 version of midas.dll with a Delphi 2006 application. Since Embarcadero did fix some DataSnap bugs in Delphi 2007, there is some possibility that the errors you are seeing are caused by a Delphi 2006 bug. It is worth a try to substitute the 2007 version of midas.dll with your Delphi 2006 application and see if the errors go away. It might not fix the problem, but it will save you a lot of trouble and frustration if it does.


it been a while since ive been on 2006 but if i remember right

turn on debug packages then you should just be able to step into it


As far as I know the LoadFromStream cannot be used to load XML files, the data in the stream should be in the internal format used by the client dataset. Try setting the XMLData property instead.

0

精彩评论

暂无评论...
验证码 换一张
取 消