Re: [MSEide-MSEgui-talk] TTextStream.CopyFrom(SomeStream) fails

2012-07-05 Thread IvankoB
The full file URL is http://brefi.narod2.ru/podpiska/updates/common/type4/files.dsc;. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed

Re: [MSEide-MSEgui-talk] TTextStream.CopyFrom(SomeStream) fails

2012-07-05 Thread Martin Schreiber
On Thursday 05 July 2012 11:08:12 IvankoB wrote: The full file URL is http://brefi.narod2.ru/podpiska/updates/common/type4/files.dsc;. What means fails? -- Live Security Virtual Conference Exclusive live event will

Re: [MSEide-MSEgui-talk] TTextStream.CopyFrom(SomeStream) fails

2012-07-05 Thread IvankoB
What means fails? document.read(pb,document.size); reqresult.copyfrom(document,document.size); reqresult.read(pb,reqresult.size); pb after both READ should contain same data. Here, document.size gets equal to reqresult.size but their data differs (zero size for reqresult.size).

Re: [MSEide-MSEgui-talk] TTextStream.CopyFrom(SomeStream) fails

2012-07-05 Thread Martin Schreiber
On Thursday 05 July 2012 11:31:25 IvankoB wrote: What means fails? document.read(pb,document.size); reqresult.copyfrom(document,document.size); reqresult.read(pb,reqresult.size); pb after both READ should contain same data. Here, document.size gets equal to reqresult.size but their data

Re: [MSEide-MSEgui-talk] TTextStream.CopyFrom(SomeStream) fails

2012-07-05 Thread IvankoB
Stream position OK? Hmm.. it needs to rewind the position after CopyFrom: if result = REQ_SUCCESS then begin reqresult.copyfrom(document,document.size); reqresult.position:= 0; end; Then it works. PS: Me see AV in the message window of IDE after changing

Re: [MSEide-MSEgui-talk] TTextStream.CopyFrom(SomeStream) fails

2012-07-05 Thread IvankoB
Happens very often with FPC. FPC unit handling should be rewritten but nobody has time. These issues give FPC (an excellent stable product ) a feeling of being immature. -- Live Security Virtual Conference