events

Esper versus Coral8 . . .Event stream processing

has anyone done any analysis comparing coral8 versus esper for event stream processing? ...

How to know a QTreeWidget selected item?

I have a class that inherits by QTreeWidget, how can I know the actually selected row? I explain, usually we connect signals to slots by this way: connect(myButton, SIGNAL(triggered(bool)), this, SLOT(myClick())); I can't find nothing to similar for QTreeWidget->QTreeWidgetItem. The only way I found is this: redefining the mousePressE...

how to raise event from dynamically created usercontrol

How do I raise an event from a user control that was created dynamically? Here's the code that I'm trying where Bind is a public EventHandler protected indDemographics IndDemographics; protected UserControl uc; override protected void OnInit(EventArgs e) { uc = (UserControl)LoadControl("indDemographics.ascx"); IndDemographics.B...

HTML over flash without stopping interaction with flash

I have a html div layered on top of an interactive flash movie, but when the mouse moves over the div, it can't interact with the flash (the view changes as the mouse moves or is clicked). Is there a way to have the flash recieve the mouse movements and clicks but leaving the html visible? I can't modify the flash SWF file. Edit: To ma...

Does Javascript fire an event for unhandled/uncaught exceptions?

I'm looking to log unhandled javascript exceptions. Is there an event that fires when an exception isn't caught? I'm looking to catch the exceptions before they cause javascript errors in the browser, but I'd rather not run my entire application inside of a try/catch. Any help would be appreciated. Thanks! Update: tvanfosson pointed ou...

Create empty C# event handlers automatically

It is not possible to fire an event in C# that has no handlers attached to it. So before each call it is necessary to check if the event is null. if ( MyEvent != null ) { MyEvent( param1, param2 ); } I would like to keep my code as clean as possible and get rid of those null checks. I don't think it will affect performance very much...

Castle Windsor: How do I wire up events in my configuration?

I have something like this: public interface IDeviceMonitor { int DeviceId { get; } event DeviceUpdatedHandler NewValueRecieved; void Start(); void Stop(); } public class DeviceInactivityDetector { ... public virtual void DeviceUpdated(IDeviceMonitor device, DeviceUpdatedArgs args) { .... } } curren...

.NET Events more common in winform than webform?

Are declaring custom .NET event such as this, more common in a winform app than webform? ...

What is this java.awt.event error?

ANSWER: If you ever see these lines and are mistified like I was, here's what they mean. Thread[AWT-EventQueue-0] (Suspended (exception NullPointerException)) EventDispatchTread.run() line: not available [local variables unavailable] It's not that the variables are unavailable because they are lurking behind a shroud of mystery in a ...

Do I need to unsubscribe from (manually subscribed to) events in asp.net?

Do the same best practis rules regarding subscribing/unsubscribing to events apply in asp.net? I know it might seem like a silly question, but when I think about it, I have never really seen any code where people first subscribe to an event on a page and then unsubscribe later on in the web request. Example 1: On a page, in the Page_Lo...

Is there a way to catch when ContainsFocus changes?

I need to be able to determine when ContainsFocus changes on a Control (specifically a windows form). Overriding OnGotFocus is not the answer. When I bring the form to the foreground, ContainsFocus is true and Focused is false. So is there an OnGotFocus equivalent for ContainsFocus? Or any other way? ...

Best way to attach to events far down in the callstack in C#?

What is the best design decision for a 'top-level' class to attach to an event to a class that may be '5+ layers down in the callstack? For example, perhaps the MainForm has spawned an object, and that object has spawned a callstack of several other object calls. The most obvious way would be to chain the event up the object hierarchy,...

Firing a mainline event from a background thread in Java

Hiya, My question pertains to multi-threading in Java. I'm translating an app I wrote in Visual Basic 2008 into Java. There is a class in VB called BackgroundWorker, which allows the coder to perform a task on another thread, a lot like SwingWorker in Java. The only distinct difference is that, with the BackgroundWorker thread is run(),...

SDL Event Debug Problem

I am currently trying to get SDL events to work, but problem is that the program is not working. When I ran the program; it open and closes very quickly, and the debug gave these errors: The thread 'Win32 Thread' (0xb60) has exited with code 1 (0x1). The thread 'Win32 Thread' (0xe00) has exited with code 1 (0x1). The thread 'Win32 Thr...

How to tell if a button click event was triggered by keyboard or mouse in WPF?

Is there a simple way to tell what triggered Click event of a Button apart from setting multiple flags in Mouse/Key Up/Down event handlers? I'm currently only interested in distinguishing mouse from everything else, but it would be nice to handle Stylus and other input types if possible. Do I have to create my own button control to achie...

Custom controls in C# Windows Forms mouse event question

I have a mouseenter and mouseleave event for a Panel control that changes the backcolor when the mouse enters and goes back to white when it leaves. I have Label control within this panel as well but when the mouse enters the Label control, the mouseleave event for the panel fires. This makes sense but how do I keep the backcolor of th...

Flash Event Phases?

Could someone simply explain the 3 phases in the Flash Event framework, please? By event phases, I mean: CAPTURING_PHASE AT_TARGET BUBBLING_PHASE To be clear, I'm talking about flash.events.Event and subclasses. An in-depth example would be fantastic. What happens when you click on a nested MovieClip? ...

Experiences with SEDA and C#?

I'm thinking about SEDA. We design at the moment an application (which is running on a server as a service) which must be multithreaded and message / event based. The SEDA idea is very intresting and should match. But I cannot find articles etc. writing about experiences made with it. My question(s) now is(are): Do you use ActiveMQ...

Compact Framework - Timeout function for locking UI after period of inactivity

Good morning, I am the developer of a medium sized PDA application that will be used out on the streets. The PDA will contain some vaguely sensitive data (names and addresses, etc). The encryption on the mobile database is already handled, however if someone got hold of the PDA whilst it was logged in they could happily go through the d...

How to disable mouseout events triggered by child elements?

Let me describe the problem in details: I want to show an absolute positioned div when hovering over an element. That's really simple with jQuery and works just fine. But when the mouse goes over one of the child elements, it triggers the mouseout event of the containing div. How do I keep javascript from triggering the mouseout event o...