Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
15
StackOverflow Exception on UltraMonthViewSingle MouseMove Event in .NET 2 Framework
posted

I have the following Code in windows forms .NET 2 Framework applicaion

private UltraMonthViewSingle uMonthView;

private UltraDayView uDay;

this.uMonthView.MouseEnterElement += new Infragistics.Win.UIElementEventHandler(this.uMonthView_MouseEnterElement);
this.uMonthView.MouseLeaveElement += new Infragistics.Win.UIElementEventHandler(this.uMonthView_MouseLeaveElement);

this.uMonthView.MouseMove += new System.Windows.Forms.MouseEventHandler(this.uMonthView_MouseMove);

this.uDay.MouseEnterElement += new Infragistics.Win.UIElementEventHandler(this.uDay_MouseEnterElement);
this.uDay.MouseLeaveElement += new Infragistics.Win.UIElementEventHandler(this.uDay_MouseLeaveElement);

this.uDay.MouseMove += new System.Windows.Forms.MouseEventHandler(this.uDay_MouseMove);

I am seeing a stackoverflow exception when my mouse pointer lies on the calendar.

(v) wsCalendar ctor(): DEFAULT
(v) wsCalendar uDay_InitializeVisibleDay(): DEFAULT
(v) wsCalendar uDay_InitializeVisibleDay(): DEFAULT
(v) wsCalendar SetAppearances(): DEFAULT
(v) wsCalendar PopulateContextMenu(): DEFAULT
(v) wsCalendar SetVisibleView(): 0: DEFAULT
(v) wsCalendar SetVisibleView(): .. 0: DEFAULT
(v) wsCalendar uDay_InitializeVisibleDay(): DEFAULT
(v) wsCalendar uMonthView_MouseMove(): DEFAULT
(v) wsCalendar uMonthView_MouseMove(): DEFAULT
(v) wsCalendar DayMonth_Paint: DEFAULT
(v) wsCalendar uMonthView_MouseMove(): DEFAULT
(v) wsCalendar uMonthView_MouseMove(): DEFAULT
(v) wsCalendar uMonthView_MouseMove(): DEFAULT
(v) wsCalendar uMonthView_MouseMove(): DEFAULT
(v) wsCalendar uMonthView_MouseMove(): DEFAULT
(v) wsCalendar uMonthView_MouseMove(): DEFAULT
(v) wsCalendar uMonthView_MouseMove(): DEFAULT
(v) wsCalendar uMonthView_MouseMove(): DEFAULT
(v) wsCalendar uMonthView_MouseMove(): DEFAULT
(v) wsCalendar uMonthView_MouseMove(): DEFAULT
(v) wsCalendar uMonthView_MouseMove(): DEFAULT
An unhandled exception of type 'System.StackOverflowException' occurred in System.Windows.Forms.dll 

 

Event Viewer information ...

Fault bucket 2108143563755997667, type 5
Event Name: CLR20r3
Response: Not available
Cab Id: 1893868279290822969

Problem signature:
P1: myapp.exe
P2: 100.18.327.1858
P3: 5aba94ab
P4: mscorlib
P5: 2.0.0.0
P6: 59a7213c
P7: 1fe0
P8: 69
P9: Exception
P10:

Parents
  • 34430
    Offline posted

    Hello windy,

    I have done an initial investigation into this stack overflow exception that you are seeing, and from the code and stack trace alone, I cannot seem to decipher what exactly may be happening to cause this exception. If I had to guess, this appears to be likely due to something happening in the MouseMove event that is forcing the UltraMonthViewSingle to repaint and/or fire the MouseMove event again.

    In order to test this, I would like you to try unhooking the MouseMove event at the beginning of the MouseMove event and then re-hooking it at the end of that event handler. This will allow us to determine whether or not the actions in the MouseMove event are essentially causing it to fire again and again.

    If this does not work, then would it be possible for you to please provide the code that you are using in the MouseMove event for your UltraMonthViewSingle, along with the version of NetAdvantage for Windows Forms that you are using when targeting .NET 2?

    Please let me know if you have any other questions or concerns on this matter.

Reply Children