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
 access violation at "GetImageToStream"
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

messeexperten

Germany
6 Posts

Posted - Sep 15 2015 :  03:55:17  Show Profile  Reply
hallo,
i get a access violation at imageenmview.GetImageToStream.

see then testproject in attachment.

I load a multi-tiff-Image to imageenmView. Now I set
imageenmView.MIo.Params[x].tiff_compression.
Next I called GetImageToStream for all Images in imageenmview first time and all is ok. Now I called the same 2 or 3 time and the access Violation is fired.

please help.

Ulrich Herrmann



attach/messeexperten/201591535411_TestimageEn.zip
9082.65 KB

xequte

39056 Posts

Posted - Sep 15 2015 :  16:47:29  Show Profile  Reply
Hi

What version of Delphi and ImageEn are you using? Your compiled demo crashes, but when I compile it myself with ImageEn v6.2.0 it does not crash (even if i loop it 1000 times).

If you are already using v6.2.0, check you do not have multiple instances of ImageEn lurking on your system. Try uninstalling ImageEn and then reinstalling it.



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

messeexperten

Germany
6 Posts

Posted - Sep 24 2015 :  10:51:04  Show Profile  Reply
hallo,

enviroment
window 7
RadStudio xe7 enterprise all updates installed
imageen V6.2.0
IEVision 3..

imageen is uninstall all directories bpl's and so on are deleted
imageen is new install

I test to compile and install imageen manuell


not at all time the error does fired.
When you compile the testproject and run it, some times all is ok, but
when I call TImageEnMView.Clear (Button clear) and load the images again and call
GetImageToStream(...) the error triggered.
The same at GetImageToFile(...).

The function's call
fImageEnIO.Params.Assign( GetImageEnMIO.Params[idx] );

params is not available or corrupt at this time so the function fail's.

Sometime's a little change in sourcecode (set the params.... to other value or so on ) and the error triggered direct.

At time I don't understand when params will change.
If you debug my test-project extern, perhaps you can see what happen.


I'am not sure, but I think I see the error add previous version too.
Go to Top of Page

xequte

39056 Posts

Posted - Sep 25 2015 :  05:44:49  Show Profile  Reply
Hi

A lot of TImageEnMView code changed with 6.2.0, so it is possible that an issue has been introduced, though I personally implemented the unit testing of this and we test it in thousands of different configurations.

See if you can create a simple demo that processes the images continuosly until it reproduces a failure and I will add it to the unit test and eliminate any issue.

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

messeexperten

Germany
6 Posts

Posted - Sep 25 2015 :  10:41:07  Show Profile  Reply
hi,

you get the error all time, when you use big multitiff-images (ec. 100 pages and > 100 MB ). It is something with multithread sync.

Ulrich Herrmann
Go to Top of Page

w2m

USA
1990 Posts

Posted - Sep 25 2015 :  10:45:59  Show Profile  Reply
If you do not provide Nigel with a demo that reproduces the problem it will be difficult to solve your problem.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

messeexperten

Germany
6 Posts

Posted - Sep 26 2015 :  16:43:47  Show Profile  Reply
the first replay contains a test-project. When it is use with big tiff-files with more big images which is load more times, the error is trigged at my pc every times. I check the project on a other pc. RadStudio XE7 and imageen will be new installed. Different is only the size of the tiff-file. At all checks params is not define and
at ...params.assign the error fired. At the project is only a small tiff file. I think it is not good idee to post a tiff file with more than 200 mb.

ps
the workaround I use is:
for yi := 0 to imvSource.ImageCount-1  do
    begin
     imvSource.SelectedImage:= yi;
     imvSource.MIO.SaveToStream(ymemS,ioTiff,true);
    end;

this runs all time I check it fine.
Go to Top of Page

xequte

39056 Posts

Posted - Sep 27 2015 :  20:57:46  Show Profile  Reply
Hi

Perhaps you can upload your big TIFF file to a sharing site for me to download, such as:

http://www.transferbigfiles.com
or
http://www.yousendit.com


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

messeexperten

Germany
6 Posts

Posted - Sep 28 2015 :  02:38:49  Show Profile  Reply
thank's

I will create a file, but I need some time. The existing file's includes intern business documents where I can't send.

Ulrich Herrmann
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: