Re: Out of memory eventhough Garbage collection is in the code
Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance
- From: Göran Andersson <guffa@xxxxxxxxx>
- Date: Mon, 03 Nov 2008 19:27:35 +0100
Victory wrote:
Hi,
After calling this function 190 times, i get an exception
at the point of exception. The stack trace says:
StackTrace " at
System.Drawing.Image.FromFile(String filename, Boolean
useEmbeddedColorManagement) at
Procédo.MainApp.QualityCheckClass.EvaluateTiffImage(ThreadM
essageClass& displayObject, String fileName, String
startingPageNum, String fileExt) in
D:\src\Procédo\MainForm\QualityCheck.vb:line 3957"
String
Don't call GC.Collect in your code. There is nothing in your code that
gets better from it. The garbage collector will perform a collection
when needed.
Have you tried to load only the specific file where the error occurs?
It's possible that the error comes from a corrupt file instead of an
actual lack of memory.
--
Göran Andersson
_____
http://www.guffa.com
.
Relevant Pages
- another NullPointerException problem with List interface
... The API says that addcan have this exception "if the ... prints out the filename). ... 45 public static ListlistAllFiles(File dir, String ... extension) throws Exception ... (comp.lang.java.programmer) - Path/File Access Error (75)
... If you can't seem to eliminate throwing this exception, ... Dim FileName15, FileName16 As String ... the exception nevertheless gets thrown because the filename for 16 was never ... Examples of invalid files names are: ... (microsoft.public.dotnet.languages.vb) - Re: Elegant closure of InputStreams under exceptions?
... IOException {BufferedReader br = new BufferedReader(new FileReader(filename)); ... public static List<String> readFileFullythrows IOException { ... exception raised by close will shadow an exception raised in the block. ... (comp.lang.java.programmer) - RE: Detailed ASP.Net info not displaying in browser
... HTTP 500 page when an exception is thrown from the web service. ... at VOSE.Data.DataRequest.dr_DB2Process.DeleteCommRows(String company, String ... objQueue, tOrderManagementIndicator omindicator, Int32 intTriggerId) in ... Microsoft Online Community Support ... (microsoft.public.dotnet.xml) - RE: Detailed ASP.Net info not displaying in browser
... HTTP 500 page when an exception is thrown from the web service. ... at VOSE.Data.DataRequest.dr_DB2Process.DeleteCommRows(String company, String ... objQueue, tOrderManagementIndicator omindicator, Int32 intTriggerId) in ... Microsoft Online Community Support ... (microsoft.public.dotnet.xml) |
|