ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 SaveToStreamIEV
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

rswyman@docuxplorer.com

USA
156 Posts

Posted - Feb 12 2017 :  10:10:16  Show Profile  Reply
I think I found a problem with SaveToStreamIEV where it will only saves all objects and not just a single object as the code suggest. e.g. hobj = -3 and pass to SaveObj(LZStream, hobj);


where as the code for SaveToStreamIEV saves all object to the stream

  LZStream := TZCompressionStream.Create(Stream, zcDefault, 15);
  try
    LZStream.Write(fObjCount, sizeof(integer)); // object
    SaveObj(LZStream, hobj);
  finally
    FreeAndNil(LZStream);
  end;


I adjust the code and it seems to be ok but I'd thought I'd pass it on for review and hope it gets incorporated in a future release.

  LZStream := TZCompressionStream.Create(Stream, zcDefault, 15);
  try
    vObjCount := 1;
    if hObj = -3 then begin  // save all objects
        vObjCount := fObjCount;
    end;
    LZStream.Write(vObjCount, sizeof(integer)); // object
    SaveObj(LZStream, hobj);
  finally
    FreeAndNil(LZStream);
  end;

xequte

38611 Posts

Posted - Feb 12 2017 :  16:51:12  Show Profile  Reply
Thanks, we'll address that for the next release.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

rswyman@docuxplorer.com

USA
156 Posts

Posted - Apr 07 2017 :  08:58:54  Show Profile  Reply
Hi Nigel,

Has this problem been address in the current release?

Thanks
Ron
Go to Top of Page

xequte

38611 Posts

Posted - Apr 07 2017 :  18:33:02  Show Profile  Reply
Hi Ron

Yes, in 7.0.0.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: