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
 SetImageFromFile
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

izaque

Brazil
95 Posts

Posted - Feb 23 2012 :  05:03:33  Show Profile  Reply
Hello, I'm trying to read TIFF files 104 with 400Kb each, with the following code:
iPosicao: = iemvThumb.AppendImage;
iemvThumb.SetImageFromFile (iPosicao, sArquivoDestino);
When iPosicao is = 68 an error occurs in "Out of Memory" in the line of the method SetImageFromFile.
I'm using version 3.1.2, Delphi 7, Windows 7 64 bit, at the time the error occurs have more than 2 GB of Memory available.
What should I do?



Please rename the file extension for TIFF.
Sorry for the English, PT.BR.

fab

1310 Posts

Posted - Feb 23 2012 :  10:26:20  Show Profile  Reply
Hello,
please post the file (and please open a single topic for the same question).
Go to Top of Page

izaque

Brazil
95 Posts

Posted - Feb 23 2012 :  10:41:16  Show Profile  Reply
I think that I could not post the file, how do I?
Go to Top of Page

fab

1310 Posts

Posted - Feb 23 2012 :  10:55:43  Show Profile  Reply
I cannot replicate this problem using last version. I tested your image with Delphi 7 and Windows 7 - 64 bit. Old ImageEn versions had problems handling pointers with locations >2GB.
Go to Top of Page

izaque

Brazil
95 Posts

Posted - Feb 23 2012 :  11:09:56  Show Profile  Reply
Even in a 400KB file with? ImageEn Version 3.1.2.
It has some code to work around this problem?
Go to Top of Page

fab

1310 Posts

Posted - Feb 23 2012 :  11:20:53  Show Profile  Reply
Yes, even with 400KB file. It is not important the buffer size, but where the operating system allocates it (if pointer_pos > 0x80000000).
Go to Top of Page

izaque

Brazil
95 Posts

Posted - Feb 23 2012 :  11:45:42  Show Profile  Reply
Ok, Thanks!
Go to Top of Page

izaque

Brazil
95 Posts

Posted - Feb 23 2012 :  13:38:44  Show Profile  Reply
Hi Fabrizio, could circumvent the problem of "out of memory" using TImageEnMView.MIO.LoadFromFileTIFF who read specific files with the extension. Tiff, and also using BeginSelectImages and EndSelectImages.
Thanks.
Go to Top of Page

fab

1310 Posts

Posted - Feb 23 2012 :  13:47:00  Show Profile  Reply
Sorry, I don't understand very well the question.
You call LoadFromFileTIFF, so you can avoid TIFFs.
Also, current version hasn't the Out Of Memory problem.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: