Solved

Active X Event Handling

Posted on 1998-06-04
1
157 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
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Please explain "Multi-Tenant Services" 5 107
What is sub-make ? 2 86
How do ASP.NET and MVC work together? 4 70
Mobile apps - web/native or hybrid? 1 64
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
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…
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…

685 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