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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 SaveToStreamIEV

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
rswyman@docuxplorer.com Posted - Feb 12 2017 : 10:10:16
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;
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Apr 07 2017 : 18:33:02
Hi Ron

Yes, in 7.0.0.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
rswyman@docuxplorer.com Posted - Apr 07 2017 : 08:58:54
Hi Nigel,

Has this problem been address in the current release?

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



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com