Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Active X Event Handling

Posted on 1998-06-04
1
Medium Priority
?
173 Views
Last Modified: 2013-11-25
If I use an Active X control in my application that fires events, will those events be queued up so that I can respond to them one at a time. If there is a queueing effect, how deep is the queue? What happens if the queue overflows? Is there any ill effect on the Active X control if I do not respond right away to an event?

Based on the behavior I have seen, I am thinking that events are being fired as interrupts. This worries me. Anybody know what really happens?

I ask these questions because I am concerned that an Active X control I am using might go through periods where it bursts events to my application and I may not be able to respond to them all as quickly as they come in. I would like to avoid spinning a thread for each event that fires.
0
Comment
Question by:kmenzel
1 Comment
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 200 total points
ID: 1165276
The events will be queued up. However, what you should do is to process them as quickly as you can. The queue can overflow. If you cannot process them quickly enough, what you should do is to save the information about the event and save that in your own queue. Then return from the event handler. When you have some time, process the information in the queue.
0

Featured Post

NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

Question has a verified solution.

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

With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

824 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