Events wont Debug in the RT

Events wont Debug in the RT

Hello,
I have an issue with the debugging of an event.
My code works without error and the event works too when I start the runtime and the event happens.
When I start the debug session in the Runtime, the events wont run anymore.
When I start the debug session directly from the VSTA IDE from the Editor, then the event work while debugging.
My code:
C# Code:
private void ThisProject_Startup(object sender, EventArgs e {
this.Active += new zenOn.ActiveEventHandler(ThisProject_Active);
this.Inactive += new zenOn.InactiveEventHandler(ThisProject_Inactive);
}
void ThisProject_Active() {
//Initialize AlarmListSelectionChanged Change Event
this.Alarm().AlarmListSelectionChanged += new zenOn.AlarmListSelectionChangedEventHandler(zAML_AlarmListSelectionChanged);
}
public void zAML_AlarmListSelectionChanged(zenOn.IAlarmItem obItem) {
this.Variables().Item("zz_IBN_AML_SelectedVariable").set_Value(0, obItem.Name);
}
void ThisProject_Inactive() {
FreeObjects();
this.Alarm().AlarmListSelectionChanged += new zenOn.AlarmListSelectionChangedEventHandler(zAML_AlarmListSelectionChanged);
}


I read these posts:
http://www.copadata.com/forums/showthread.php?t=2287
http://www.copadata.com/forums/showthread.php?t=993
but unfortunately I don't get it to work.
Does this mean that I have to have the four additional events in my startup each of them with the zenOn.AlarmListSelectionChangedEventHandler? If that is the case, I didn't get it to work like that either.
C# Code:
private void ThisProject_Startup(object sender, EventArgs e {
this.Active += new zenOn.ActiveEventHandler(ThisProject_Active);
this.Inactive += new zenOn.InactiveEventHandler(ThisProject_Inactive);
this.OnPreVSTADebugStart -= new zenOn.OnPreVSTADebugStartEventHandler(ThisProject_OnPreVSTADebugStart);
this.OnVSTADebugStart -= new zenOn.OnVSTADebugStartEventHandler(ThisProject_OnVSTADebugStart);
this.OnPreVSTADebugStop -= new zenOn.OnPreVSTADebugStopEventHandler(ThisProject_OnPreVSTADebugStop);
this.OnVSTADebugStopped -= new zenOn.OnVSTADebugStoppedEventHandler(ThisProject_OnVSTADebugStopped);
}
public void ThisProject_OnPreVSTADebugStart(){
this.Alarm().AlarmListSelectionChanged += new zenOn.AlarmListSelectionChangedEventHandler(zAML_AlarmListSelectionChanged);
}
public void ThisProject_OnVSTADebugStart(){
this.Alarm().AlarmListSelectionChanged += new zenOn.AlarmListSelectionChangedEventHandler(zAML_AlarmListSelectionChanged);
}
void ThisProject_OnPreVSTADebugStop(){
this.Alarm().AlarmListSelectionChanged += new zenOn.AlarmListSelectionChangedEventHandler(zAML_AlarmListSelectionChanged);
}
public void ThisProject_OnVSTADebugStopped(){
this.Alarm().AlarmListSelectionChanged += new zenOn.AlarmListSelectionChangedEventHandler(zAML_AlarmListSelectionChanged);
}

So how do I get my debugging session and my event to work together? Thanks in advance.
Cis

This is a migrated post! Originally posted on 22.09.2014 by user cisnetandazo. Please be aware that information can be outdated.

    Disclaimer

    This document governs the use of our Community Forum. By registering and using the platform, you accept these conditions.

    The COPA-DATA Community Forum serves to encourage the exchange of information and experience about the zenon software between forum users respectively zenon users.

    Please mind that any published information on the Community Forum is the subjective opinion and view based on the experience and the level of knowledge of the author. COPA-DATA does not overtake any responsibility for the content and the accuracy of the shared information.

    Users of the Community Forum are encouraged to share only well-founded experiences and to point out any risks associated with the implementation of proposed solutions to problems. COPA-DATA at its absolute discretion, reserves the right to moderate the forum. In this connection COPA-DATA may remove any information containing false facts, potentially dangerous solutions, bad language or content that may insult, degrade or discriminate others. COPA-DATA may block a non-complying user from forum access if the user violated this provision.

    COPA-DATA reserves the right to change this document from time to time at own discretion.


    Ing. Punzenberger COPA-DATA GmbH
    Karolingerstraße 7b · 5020 Salzburg · Austria
    www.copadata.com