Solved

ActiveX EXE performance

Posted on 1998-10-06
5
138 Views
Last Modified: 2010-04-30
null
0
Comment
Question by:MichaelJC
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…

742 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