Solved

Active X Event Handling

Posted on 1998-06-04
1
152 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 100 total points
Comment Utility
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

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…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

771 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

14 Experts available now in Live!

Get 1:1 Help Now