Click here to Skip to main content
15,897,891 members
Home / Discussions / C#
   

C#

 
GeneralRe: Safe thread calls Pin
faheemnadeem31-Mar-10 2:04
faheemnadeem31-Mar-10 2:04 
GeneralRe: Safe thread calls Pin
Luc Pattyn31-Mar-10 2:26
sitebuilderLuc Pattyn31-Mar-10 2:26 
GeneralRe: Safe thread calls Pin
faheemnadeem31-Mar-10 2:39
faheemnadeem31-Mar-10 2:39 
AnswerRe: Safe thread calls Pin
Alan N31-Mar-10 3:02
Alan N31-Mar-10 3:02 
GeneralRe: Safe thread calls Pin
faheemnadeem31-Mar-10 3:24
faheemnadeem31-Mar-10 3:24 
AnswerRe: Safe thread calls Pin
faheemnadeem31-Mar-10 21:18
faheemnadeem31-Mar-10 21:18 
QuestionOutof memory exception creating a thumbnail Pin
Mycroft Holmes31-Mar-10 1:21
professionalMycroft Holmes31-Mar-10 1:21 
AnswerRe: Outof memory exception creating a thumbnail Pin
Luc Pattyn31-Mar-10 1:58
sitebuilderLuc Pattyn31-Mar-10 1:58 
Hi Mycroft,

I suggest you add some code to see exactly what image file is causing the problem. I'm pretty sure it will always be the same, no matter how many images you have. A real out-of-memory situation would typically fluctuate a bit.

The problem you are likely to have is either a corrupted file, or an image format not supported by .NET;
the documentation on Image.FromFile() hides this little gem:

OutOfMemoryException:
    The file does not have a valid image format. 
    -or- 
    GDI+ does not support the pixel format of the file. 


Smile | :)

GeneralRe: Outof memory exception creating a thumbnail Pin
Bernhard Hiller31-Mar-10 2:19
Bernhard Hiller31-Mar-10 2:19 
GeneralRe: Outof memory exception creating a thumbnail Pin
Luc Pattyn31-Mar-10 2:28
sitebuilderLuc Pattyn31-Mar-10 2:28 
GeneralRe: Outof memory exception creating a thumbnail Pin
Mycroft Holmes31-Mar-10 12:09
professionalMycroft Holmes31-Mar-10 12:09 
GeneralRe: Outof memory exception creating a thumbnail Pin
Luc Pattyn31-Mar-10 12:29
sitebuilderLuc Pattyn31-Mar-10 12:29 
GeneralRe: Outof memory exception creating a thumbnail Pin
Mycroft Holmes31-Mar-10 12:58
professionalMycroft Holmes31-Mar-10 12:58 
QuestionPointToScreen and multiple monitors Pin
vlasto7731-Mar-10 1:18
vlasto7731-Mar-10 1:18 
AnswerRe: PointToScreen and multiple monitors Pin
V.31-Mar-10 3:03
professionalV.31-Mar-10 3:03 
GeneralRe: PointToScreen and multiple monitors Pin
vlasto7731-Mar-10 3:14
vlasto7731-Mar-10 3:14 
GeneralRe: PointToScreen and multiple monitors Pin
V.31-Mar-10 3:26
professionalV.31-Mar-10 3:26 
QuestionHow to Save/Store non serializable objects Pin
Anindya Chatterjee31-Mar-10 1:06
Anindya Chatterjee31-Mar-10 1:06 
AnswerRe: d How to Save/Store non serializable objects Pin
Keith Barrow31-Mar-10 1:17
professionalKeith Barrow31-Mar-10 1:17 
AnswerRe: How to Save/Store non serializable objects Pin
Bernhard Hiller31-Mar-10 2:16
Bernhard Hiller31-Mar-10 2:16 
QuestionThousand Seperator Pin
Sasmi_Office31-Mar-10 0:53
Sasmi_Office31-Mar-10 0:53 
AnswerRe: Thousand Seperator Pin
#realJSOP31-Mar-10 1:50
professional#realJSOP31-Mar-10 1:50 
AnswerRe: Thousand Seperator Pin
Eddy Vluggen31-Mar-10 1:55
professionalEddy Vluggen31-Mar-10 1:55 
QuestionPrevent access to directory Pin
Maddie from Dartford31-Mar-10 0:26
Maddie from Dartford31-Mar-10 0:26 
AnswerRe: Prevent access to directory Pin
Calla31-Mar-10 1:25
Calla31-Mar-10 1:25 

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.