Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Active X Event Handling

Posted on 1998-06-04
1
Medium Priority
?
168 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
[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
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 feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

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…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

705 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