Click here to Skip to main content
15,890,282 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: I hate MS Pin
Ravi Bhavnani19-Sep-13 5:03
professionalRavi Bhavnani19-Sep-13 5:03 
GeneralRe: I hate MS Pin
Mark_Wallace19-Sep-13 2:57
Mark_Wallace19-Sep-13 2:57 
GeneralRe: I hate MS Pin
OriginalGriff19-Sep-13 3:50
mveOriginalGriff19-Sep-13 3:50 
GeneralRe: I hate MS Pin
wout de zeeuw19-Sep-13 3:53
wout de zeeuw19-Sep-13 3:53 
GeneralRe: I hate MS Pin
Super Lloyd19-Sep-13 4:46
Super Lloyd19-Sep-13 4:46 
GeneralRe: I hate MS Pin
SoMad19-Sep-13 5:16
professionalSoMad19-Sep-13 5:16 
GeneralRe: I hate MS Pin
ExcellentOrg19-Sep-13 21:33
ExcellentOrg19-Sep-13 21:33 
GeneralRe: I hate MS Pin
ExcellentOrg19-Sep-13 21:30
ExcellentOrg19-Sep-13 21:30 
You are getting OutOfMemoryException because somewhere inside the code, you are trying to allocate the memory which cannot be allocated. Since memory allocation size is always an integral value, calculations of very small sizes are rounding off and requesting memory for zero (or maybe -ve) bytes.

At low magnifications, you will not even see the chart so might as well as put a precanned bitmap there.

If I were in your place, I'd handle the size and call into GDI only when size is decent enough for it to work. (No, intent is not to bypass the error, but to avoid attempting futile or impossible)

I've had to face this error in C++ era and if I remember right it was on IBM OS/2
GeneralCommenting on Q/As Pin
Rob Philpott19-Sep-13 1:57
Rob Philpott19-Sep-13 1:57 
GeneralRe: Commenting on Q/As Pin
Nagy Vilmos19-Sep-13 2:05
professionalNagy Vilmos19-Sep-13 2:05 
GeneralRe: Commenting on Q/As Pin
Rob Philpott19-Sep-13 2:10
Rob Philpott19-Sep-13 2:10 
GeneralRe: Commenting on Q/As Pin
Ravi Bhavnani19-Sep-13 5:05
professionalRavi Bhavnani19-Sep-13 5:05 
GeneralRe: Commenting on Q/As Pin
ZurdoDev19-Sep-13 2:25
professionalZurdoDev19-Sep-13 2:25 
GeneralRe: Commenting on Q/As Pin
_Maxxx_19-Sep-13 2:29
professional_Maxxx_19-Sep-13 2:29 
GeneralRe: Commenting on Q/As Pin
CPallini19-Sep-13 2:45
mveCPallini19-Sep-13 2:45 
GeneralRe: Commenting on Q/As Pin
Rob Philpott19-Sep-13 3:06
Rob Philpott19-Sep-13 3:06 
GeneralRe: Commenting on Q/As Pin
CPallini19-Sep-13 3:12
mveCPallini19-Sep-13 3:12 
GeneralRe: Commenting on Q/As Pin
OriginalGriff19-Sep-13 3:31
mveOriginalGriff19-Sep-13 3:31 
GeneralAre you feeling down? Pin
Nagy Vilmos19-Sep-13 1:51
professionalNagy Vilmos19-Sep-13 1:51 
GeneralRe: Are you feeling down? Pin
PB 369,78319-Sep-13 2:05
PB 369,78319-Sep-13 2:05 
GeneralRe: Are you feeling down? Pin
Mike Hankey19-Sep-13 2:09
mveMike Hankey19-Sep-13 2:09 
GeneralBatman Logo Decoded Pin
Nagy Vilmos19-Sep-13 1:24
professionalNagy Vilmos19-Sep-13 1:24 
GeneralRe: Batman Logo Decoded Pin
OriginalGriff19-Sep-13 1:37
mveOriginalGriff19-Sep-13 1:37 
GeneralRe: Batman Logo Decoded Pin
Corporal Agarn19-Sep-13 1:48
professionalCorporal Agarn19-Sep-13 1:48 
GeneralRe: Batman Logo Decoded Pin
Mike Hankey19-Sep-13 1:48
mveMike Hankey19-Sep-13 1:48 

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.