Subject: Re: Bitmap ?!
Date: Fri, 30 Apr 2004 10:34:21 +1000
Lines: 74
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
Message-ID: <#
[email protected]>
Newsgroups: microsoft.public.dotnet.framework.compactframework
NNTP-Posting-Host: adsl-11-233.swiftdsl.com.au 218.214.11.233
Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA05.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11
..phx.gbl
Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.framework.compactframework:52095
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
mmhh....
well I might...
but I was told to trust the garbage collector !
anyway that's a good remark I will try to see if there is a possibility to
put some Dispose() somewhere .. (I mean the application was not thought this
way..)
just a question (which would ease my pain) could reuse a bitmap once it has
been disposed (explicitly by a call to Dispose()) ? or no ?
--
ihookdb
Get your data mobile
http://www.ihookdb.com
"Ilya Tumanov [MS]" said:
Lloyd,
Are you forgetting to dispose of bitmaps you no longer need?
Best regards,
Ilya
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
From: "Lloyd Dupont" <net.galador@ld>
Subject: Bitmap ?!
Date: Fri, 30 Apr 2004 09:40:58 +1000
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
Message-ID: <
[email protected]>
Newsgroups: microsoft.public.dotnet.framework.compactframework
NNTP-Posting-Host: adsl-11-233.swiftdsl.com.au 218.214.11.233
Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA05.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10
phx.gbl
Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.framework.compactframework:52090
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
in my program I could edit picture and import them from a file.
we test recently from a 143Kb jpg and I have weird problem.
in the program it's stored as a byte[] data;
when the user want to see it I create the picture with
Bitmap b = new Bitmap(new MemoryStream(data));
what's really weird is if I look at the picture many times in a row
sometimes the bitmap creation failed.
any ideas ? tips ? experiences ?