Load large image after unloading a large image
Tech-Archive recommends: Fix windows errors by optimizing your registry
When trying to load a large image on a Pocket PC 2003, after Disposing a large
image and also after using GC.Collect(), I get an exception with "Exception"
as the
message, no other information, and it's not an OutofMemory Exception. I did
not have this problem on Pocket PC 2002 eventhough it had less memory.
//Scenario 1
Image img;
img = Bitmap.FromFile("file1.jpg");
//show the image
img.Dispose();
GC.Collect();
//the next line causes an exception with message "Exception"
img = Bitmap.FromFile("file2.jpg");
//Scenario 2
Image img;
img = Bitmap.FromFile("file2.jpg");
//show the image
img.Dispose();
GC.Collect();
//the next line causes an exception
img = Bitmap.FromFile("file1.jpg");
Any idea what I can do ?
thank you
awni
.
Relevant Pages
- Re: managed out of memory exception in pocket pc 2002 emulator
... Which statement causes the exception? ... > 128kb project just won't load the form when i debug the project. ... >>> My pocket pc application was up and running in both the pocket pc 2002 ... both the emulator and the actual device could not load the ... (microsoft.public.dotnet.framework.compactframework) - RE: clearcommerror native exception?
... This exception indicates that you're doing something wrong when passing the ... > I am trying to write a serial bluetooth communication application on pocket ... > Is there anyway I can get the error flags on the pocket pc? ... > much has the auto baud algorithm but this dialog is driving me nuts. ... (microsoft.public.dotnet.framework.compactframework) - RE: socket problem
... What exception are you getting if you are getting an exception. ... Visual Developer - Device Application Development MVP ... And I written in VS 2005 ap rogram w pocket pc. ... Socket tempSocket = new Socket(ipe.AddressFamily, ... (microsoft.public.dotnet.framework.compactframework) - Re: Native Exception while running the Application
... In the KeyUp event of all the textboxs and form, ... am using the functional keys it is throwing the following Native Exception. ... Windows CE. ... Pocket PC 2002 and Windows CE.NET 4.2, We have built the application for ... (microsoft.public.dotnet.framework.compactframework) - Re: System.MissingMethodException is driving me crazy
... There are a number of things that can cause this exception to be thrown and ... I'm doing dev is when I toggle between doing desktop and pocket pc ... > Public Sub LoadForm() ... > if I rename the method LoadForm then it will run a few times but then ... (microsoft.public.dotnet.framework.compactframework) |
|