Click here to Skip to main content
15,899,314 members
Home / Discussions / C#
   

C#

 
GeneralRe: Setting default button in a user control Pin
Member 117376030-Jul-04 2:20
Member 117376030-Jul-04 2:20 
GeneralRe: Setting default button in a user control Pin
Heath Stewart30-Jul-04 4:33
protectorHeath Stewart30-Jul-04 4:33 
GeneralRe: Setting default button in a user control Pin
Member 117376030-Jul-04 4:50
Member 117376030-Jul-04 4:50 
Generalmp3 player Pin
Member 80940929-Jul-04 11:04
Member 80940929-Jul-04 11:04 
GeneralRe: mp3 player Pin
Nick Parker29-Jul-04 11:36
protectorNick Parker29-Jul-04 11:36 
GeneralRe: mp3 player Pin
crushinghellhammer29-Jul-04 12:17
crushinghellhammer29-Jul-04 12:17 
QuestionDrawing twice causes exception? Pin
Pain_Elemental29-Jul-04 9:34
Pain_Elemental29-Jul-04 9:34 
AnswerRe: Drawing twice causes exception? Pin
Heath Stewart29-Jul-04 9:42
protectorHeath Stewart29-Jul-04 9:42 
And as I mentioned, make sure you're disposing all Bitmap (or Image) and Graphics objects when done. Not disposing of them can cause memory problems, though the exact exception is ambiguous. Try my suggestions I posted before about using the using statement (or just code the try-finally blocks yourself; it's all compiled to the same IL) and see if that fixed anything.

Disposing of the Bitmap on which you're drawing will also make sure the file handle to which it's saved is disposed (at least it's supposed to; to be sure, write to a FileStream instead of using a filename String and dispose of it when finished saving).

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Drawing twice causes exception? Pin
Pain_Elemental29-Jul-04 20:26
Pain_Elemental29-Jul-04 20:26 
GeneralRe: Drawing twice causes exception? Pin
Heath Stewart30-Jul-04 3:13
protectorHeath Stewart30-Jul-04 3:13 
GeneralRe: Drawing twice causes exception? Pin
Pain_Elemental30-Jul-04 3:34
Pain_Elemental30-Jul-04 3:34 
GeneralRe: Drawing twice causes exception? Pin
Pain_Elemental30-Jul-04 10:37
Pain_Elemental30-Jul-04 10:37 
GeneralDifferent behavior on different machines Pin
DougW4829-Jul-04 9:22
DougW4829-Jul-04 9:22 
GeneralRe: Different behavior on different machines Pin
Heath Stewart29-Jul-04 9:36
protectorHeath Stewart29-Jul-04 9:36 
GeneralRe: Different behavior on different machines Pin
DougW4829-Jul-04 9:59
DougW4829-Jul-04 9:59 
GeneralCryptography Pin
Wender Oliveira29-Jul-04 9:14
Wender Oliveira29-Jul-04 9:14 
GeneralRe: Cryptography Pin
Heath Stewart29-Jul-04 9:22
protectorHeath Stewart29-Jul-04 9:22 
Questioncontrol InvokeRequired() always necessary? Pin
vista2729-Jul-04 8:32
vista2729-Jul-04 8:32 
AnswerRe: control InvokeRequired() always necessary? Pin
Judah Gabriel Himango29-Jul-04 8:58
sponsorJudah Gabriel Himango29-Jul-04 8:58 
AnswerRe: control InvokeRequired() always necessary? Pin
Nick Parker29-Jul-04 9:07
protectorNick Parker29-Jul-04 9:07 
GeneralRe: control InvokeRequired() always necessary? Pin
Heath Stewart29-Jul-04 9:13
protectorHeath Stewart29-Jul-04 9:13 
GeneralRe: control InvokeRequired() always necessary? Pin
Nick Parker29-Jul-04 9:28
protectorNick Parker29-Jul-04 9:28 
GeneralRe: control InvokeRequired() always necessary? Pin
Heath Stewart29-Jul-04 9:39
protectorHeath Stewart29-Jul-04 9:39 
GeneralRe: control InvokeRequired() always necessary? Pin
Judah Gabriel Himango29-Jul-04 9:39
sponsorJudah Gabriel Himango29-Jul-04 9:39 
AnswerRe: control InvokeRequired() always necessary? Pin
Heath Stewart29-Jul-04 9:16
protectorHeath Stewart29-Jul-04 9:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.