sizer Posted November 26, 2003 Posted November 26, 2003 I have application that reads EXCEL ( HUGE ) document and looks for rows that ..... Major problem is that my application use 100% processor time for 4-5 minutes and my application is frozen during that time ( witch is bad :mad: ) Is it possible to limit procesor usage to n% processor time? :confused: Quote Some people are wise and some are other-wise.
Administrators PlausiblyDamp Posted November 26, 2003 Administrators Posted November 26, 2003 If you are searching in a loop you could put an Application.DoEvents in there somewhere to allow the application to process windows messages and redraw itself. If you look under System.Threading you could drop the priority of the current thread so at least it doesn't hog the CPU. System.Threading.Thread.CurrentThread.Priority=Threading.ThreadPriority.BelowNormal Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
sizer Posted November 26, 2003 Author Posted November 26, 2003 Thanks!! :D Quote Some people are wise and some are other-wise.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.