Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 11th, 2003, 06:06 AM
Authorized User
 
Join Date: Jun 2003
Location: , , .
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default Server Resources

I have an executable that sits in the system tray and based on a timer runs a task which collects result information from various files.

The problem is that when the routines start, they take 98% of the server resources. This process can take a couple of minutes and is rendering the server useless for this period. Is there any way I can give this a low priority so it does not consume all available resources?

Thanks in advance.

Reply With Quote
  #2 (permalink)  
Old November 11th, 2003, 11:46 AM
sal sal is offline
Friend of Wrox
 
Join Date: Oct 2003
Location: Clarksville, TN, USA.
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
Default

What is this executable doing?



Sal
Reply With Quote
  #3 (permalink)  
Old November 11th, 2003, 12:01 PM
Authorized User
 
Join Date: Jun 2003
Location: , , .
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

I make calls to a dll written in C that opens binary files and returns
various arrays. Effectively I have a structure as follows

Binary File
    List of Events
        List of Meetings

I have to loop through this structure to find any events that are of a
result status:

E.G.

File 1
    Event1
        Meeting 1 - Result
        Meeting 2 - Result
        Meeting 3 - No Result
    Event 2
        Meeting 1 - No Result
        Meeting 2 - Result
File 2

etc etc

Once I have established a result, I then check some database tables (Access
at present but upsizing to MSDE) to see if result already catalogued, If it
is delete it and update else add new.

This is a simplified overview but you get the picture that it is loop
intensive!

Hope this helps.

Byron


Reply With Quote
  #4 (permalink)  
Old November 11th, 2003, 03:33 PM
sal sal is offline
Friend of Wrox
 
Join Date: Oct 2003
Location: Clarksville, TN, USA.
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Can this binary files be made into text files? comma delimited?



Sal
Reply With Quote
  #5 (permalink)  
Old November 11th, 2003, 05:37 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Alameda, ca, USA.
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Did you try to lower the priority of your process using SetThreadPriority?

m.
Reply With Quote
  #6 (permalink)  
Old November 12th, 2003, 04:13 AM
Authorized User
 
Join Date: Jun 2003
Location: , , .
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm afraid not. That side of things is out of my hands.

Cheers

Byron

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Resources Jose Silva Visual Studio 2005 0 March 16th, 2008 04:55 PM
Resources mike72 ASP.NET 2.0 Professional 0 January 3rd, 2006 08:25 AM
Resources files Duncan VS.NET 2002/2003 2 March 1st, 2004 05:59 AM
Cleaning up resources jbenson001 ASP.NET 1.x and 2.0 Application Design 2 January 22nd, 2004 11:50 AM
Resources vijay VB.NET 2002/2003 Basics 2 November 3rd, 2003 11:25 AM



All times are GMT -4. The time now is 08:29 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.