Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 11th, 2003, 06:06 AM
Authorized User
 
Join Date: Jun 2003
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.

 
Old November 11th, 2003, 11:46 AM
sal sal is offline
Friend of Wrox
 
Join Date: Oct 2003
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
Default

What is this executable doing?



Sal
 
Old November 11th, 2003, 12:01 PM
Authorized User
 
Join Date: Jun 2003
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


 
Old November 11th, 2003, 03:33 PM
sal sal is offline
Friend of Wrox
 
Join Date: Oct 2003
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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



Sal
 
Old November 11th, 2003, 05:37 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

m.
 
Old November 12th, 2003, 04:13 AM
Authorized User
 
Join Date: Jun 2003
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






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





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