Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > ClientDataSet.LoadFromStream doesn't work in Win98/Me

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-04-07, 19:02
leafarsetnofis leafarsetnofis is offline
Registered User
 
Join Date: Dec 2007
Posts: 1
ClientDataSet.LoadFromStream doesn't work in Win98/Me

I have an client application wich communicate with an server app via socket (with indy 10), when the client application execute: ClientDataSet.LOADFROMSTREAM() function delphi show the message: ACCESS VIOLATION AT ADDRESS xxxxxx. READ OF ADDRESS xxxxxx.
The problem here is that the error occur only in Pcs running windows 98 or Me, in windows 2K and Xp works fine.
Anybody know what happen here? anybody have any idea about to resolve this?.

In the server I savetostream(tstream,dfxml) (parsing to Xml)
the result dataset of a Query to a Mysql table.

Then, Here is the client code:

-- begin of code
cValue := tstringlist.Create;
//cReply is a String containing the xml structure/data
ExtractStrings([','],[' '],pChar(cReply),cvalue);
data := TStringStream.Create(cvalue.Strings[1]);
data.Seek(0, soBeginning);
with SQLMain do //<<-Client dataset where I wish to store
//the data from a table in the server
begin
Active := False;
LoadFromStream(data);
Active := True;<-Delphi stop here after A.Violation
end;
Synchronize(pMainFormProcedure);<- Run other procedure
//after loading the data from server
end;
-- end of code

Thats all!. This same code work without error in Win2K, Xp and 2003 server.

So, what could be hapening? I wonder is a win98 limitation? maybe need a patch? (I have delphi 6 with rtl patch and update ach2=
I have many days trying to solve this without success.

I hope you can help me on this
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On