Solved

ActiveX EXE performance

Posted on 1998-10-06
5
134 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VBA open file from excel cell 4 36
Using "ScreenUpdating" 6 55
How to incorporate an error traping routing to existing code in VB6 11 39
VB6 - Convert HH:MM into Decimal 8 51
Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

911 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now