Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > CPU utilization


Reply
 
Thread Tools Display Modes
  #1  
Old 12-06-2005, 03:17 PM
rcorrea's Avatar
rcorrea rcorrea is offline
Centurion
 
Join Date: Aug 2003
Posts: 188
Default CPU utilization


How do you get a program to not tie up all the system resources when it's running?

I've written a few vb apps that when they are opening a textfile for input somewhere else, or running a SQL statement against a network file, that the program literally looks like it's locking up while accessing. It eventually comes back and shows me what I'm looking for.

Just curious.
__________________
Love thy neighbor, or he'll shoot you.
Reply With Quote
  #2  
Old 12-06-2005, 03:18 PM
surixurient's Avatar
surixurient surixurient is offline
Junior Contributor
 
Join Date: Apr 2005
Location: between C0000h and C7FFFh
Posts: 351
Default

you can put in DoEvents ocationaly
__________________
I Thunk, therefore I am.
Reply With Quote
  #3  
Old 12-06-2005, 03:28 PM
rcorrea's Avatar
rcorrea rcorrea is offline
Centurion
 
Join Date: Aug 2003
Posts: 188
Default

Duh, thanks!
__________________
Love thy neighbor, or he'll shoot you.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->