Click here to Skip to main content
16,005,206 members
Home / Discussions / C#
   

C#

 
QuestionChange inheritance relationship dynamically using reflection Pin
Kevin McFarlane17-Aug-06 1:36
Kevin McFarlane17-Aug-06 1:36 
AnswerRe: Change inheritance relationship dynamically using reflection Pin
Kevin McFarlane17-Aug-06 2:40
Kevin McFarlane17-Aug-06 2:40 
QuestionCan a datagrid row be scrollable Pin
Uma Kameswari17-Aug-06 1:21
Uma Kameswari17-Aug-06 1:21 
Questionsending email and Sms Pin
minkinin17-Aug-06 1:15
minkinin17-Aug-06 1:15 
AnswerRe: sending email and Sms Pin
Nader Elshehabi17-Aug-06 1:30
Nader Elshehabi17-Aug-06 1:30 
GeneralRe: sending email and Sms Pin
eggsovereasy17-Aug-06 3:55
eggsovereasy17-Aug-06 3:55 
QuestionWindow service and desktop application communication? Pin
sinanju17-Aug-06 1:07
sinanju17-Aug-06 1:07 
QuestionIncreasing Performance Pin
kkadir17-Aug-06 0:58
kkadir17-Aug-06 0:58 
Hi there,

My problem is that when my app executes the following code :

private void AddImageToList(string file)<br />
        {<br />
            //<br />
            // get the image from the file, make it a thumbnail and add to the list<br />
            //<br />
            this.image = Image.FromFile(file);            <br />
            this.thumbnailImage = this.image.GetThumbnailImage(100, 100, new Image.GetThumbnailImageAbort(ThumbnailCallback), IntPtr.Zero);<br />
            thumbnailImage.Tag = file;<br />
            this.imageList.Add(this.thumbnailImage);            <br />
        }


..my program freezes and it takes 10-15 secs to continue, also when I use these thumbnails again performance reduces dramatically..

Is there anything I can do to increase my performance?

P.S: generally images I wish to load into thumbnails are ~500kb to 1.5Mb

.:: Something is Wrong ::.

AnswerRe: Increasing Performance Pin
Christian Graus17-Aug-06 1:01
protectorChristian Graus17-Aug-06 1:01 
GeneralRe: Increasing Performance Pin
kkadir17-Aug-06 1:20
kkadir17-Aug-06 1:20 
GeneralRe: Increasing Performance Pin
Cris ( Chintan Patel )17-Aug-06 2:15
Cris ( Chintan Patel )17-Aug-06 2:15 
GeneralRe: Increasing Performance [modified] Pin
kkadir17-Aug-06 3:52
kkadir17-Aug-06 3:52 
QuestionDeploying .NET framework [modified] Pin
hamidreza_buddy17-Aug-06 0:55
hamidreza_buddy17-Aug-06 0:55 
AnswerRe: Deploying .NET framework [modified] Pin
Nader Elshehabi17-Aug-06 1:11
Nader Elshehabi17-Aug-06 1:11 
QuestionRe: Deploying .NET framework Pin
hamidreza_buddy17-Aug-06 1:46
hamidreza_buddy17-Aug-06 1:46 
AnswerRe: Deploying .NET framework Pin
Ed.Poore17-Aug-06 1:54
Ed.Poore17-Aug-06 1:54 
AnswerRe: Deploying .NET framework Pin
Nader Elshehabi17-Aug-06 5:49
Nader Elshehabi17-Aug-06 5:49 
QuestionSocket programming help Pin
tobym17-Aug-06 0:48
tobym17-Aug-06 0:48 
AnswerRe: Socket programming help Pin
tobym17-Aug-06 0:52
tobym17-Aug-06 0:52 
AnswerRe: Socket programming help Pin
Malcolm Smart17-Aug-06 1:08
Malcolm Smart17-Aug-06 1:08 
GeneralRe: Socket programming help Pin
tobym17-Aug-06 1:21
tobym17-Aug-06 1:21 
AnswerRe: Socket programming help Pin
Andrei Ungureanu17-Aug-06 2:37
Andrei Ungureanu17-Aug-06 2:37 
GeneralRe: Socket programming help Pin
tobym17-Aug-06 3:12
tobym17-Aug-06 3:12 
GeneralRe: Socket programming help Pin
Andrei Ungureanu17-Aug-06 5:57
Andrei Ungureanu17-Aug-06 5:57 
QuestionImage from Drawing Pin
Sabry190517-Aug-06 0:44
Sabry190517-Aug-06 0:44 

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.