Solved

Active X Event Handling

Posted on 1998-06-04
1
166 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 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
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 viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

630 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