• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 142
  • Last Modified:

ActiveX EXE performance

null
0
MichaelJC
Asked:
MichaelJC
1 Solution
 
TheAnswerManCommented:
Instead of using events.
Modify a Public Property of the Class.

and reference it with a timer of the
Parent Application.
0
 
MichaelJCAuthor Commented:
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
 
a111a111a111Commented:
Do you have some DoEvents in your code?
0
 
MirkwoodCommented:
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
 
MichaelJCAuthor Commented:
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now