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
 GetImageToStream and TImageEnMView
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Gubben

Norway
11 Posts

Posted - Mar 01 2016 :  22:20:14  Show Profile  Reply
Is there a change in GetImageToStream in Version 6.2.2?

I get an Access Violation error.

Same code don't give error i previous versions of ImageEn.

Regards
Ole

xequte

39052 Posts

Posted - Mar 02 2016 :  02:56:36  Show Profile  Reply
Hi Ole

That method has not changed for a while. What version were you using previously.

What is your code?

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

Gubben

Norway
11 Posts

Posted - Mar 02 2016 :  13:05:24  Show Profile  Reply
Hi Nigel

for i:=0 to ImageEnMView.imagecount-1 do
  begin

    ms:=TMemorystream.create;

    try

      ImageEnMView.MIO.Params[i].TIFF_Compression:=ioTIFF_JPEG;
      ImageEnMView.MIO.Params[i].BitsPerSample:=2;

      ImageEnMView.GetImageToStream(i,ms,iotiff);

...
...


Strange thing is, if I save only one image there is no error, several images gives an error.

I have reinstalled version 6.2.1 and my code executes with no error again.

Ole
Go to Top of Page

xequte

39052 Posts

Posted - Mar 02 2016 :  16:37:56  Show Profile  Reply
Hi Ole

I get no error with this code.

Does it only do it with a specific set of images? If so, please post the image that causes problems. Otherwise can you send a small demo and images that reproduce the issue.



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: