Solved

ActiveX EXE performance

Posted on 1998-10-06
5
136 Views
Last Modified: 2010-04-30
null
0
Comment
Question by:MichaelJC
5 Comments
 
LVL 3

Expert Comment

by:TheAnswerMan
ID: 1438405
Instead of using events.
Modify a Public Property of the Class.

and reference it with a timer of the
Parent Application.
0
 

Author Comment

by:MichaelJC
ID: 1438406
I get roughly the same performance.  Since I am not raising very many events, this shouldn't affect performance any more than a timer polling the property.  I think it has more to do with the fact that the ActiveX .EXE is running in the background.
0
 
LVL 3

Expert Comment

by:a111a111a111
ID: 1438407
Do you have some DoEvents in your code?
0
 
LVL 13

Accepted Solution

by:
Mirkwood earned 30 total points
ID: 1438408
To verify if your statement is right.
Goto control panel/system/performance and set boost to none. Now all applications are threated equal.

Furthermore these two functions
Declare Function SetPriorityClass Lib "kernel32" Alias "SetPriorityClass" (ByVal hProcess As Long, ByVal dwPriorityClass As Long) As Long

Declare Function GetCurrentProcess Lib "kernel32" Alias "GetCurrentProcess" () As Long

0
 

Author Comment

by:MichaelJC
ID: 1438409
Oddly enough, even with the events today it appears that it is running the same speed whether it is standalone or through automation.  Maybe something was hosed up yesterday.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question