0

I have a custom observer class derived from CBase, MConnectionMonitorObserver, and QObject(for signals) that I use to observe events from RConnectionMonitor.

When I call the RConnectionMonitor::NotifyEventL passing the observer instance, the application crashes saying that a thread has panicked.

What I'm trying to do here is to listen to the network events asynchronously without blocking the main thread.

EDIT: Should I use an active object to hold the RConnectionMonitor object?

Best regards

Gerstmann
  • 5,368
  • 6
  • 37
  • 57

1 Answers1

0

The problem was, as @James commented, that I was registering for events before I established the connection to the connection monitor server.

Gerstmann
  • 5,368
  • 6
  • 37
  • 57