Click here to Skip to main content
12,071,956 members (61,499 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: .NET
I'm having an event on my ContextMenu which have the "System.EventArgs" as a parameter

The event procedure looks like this:
Private Sub CMRoot_ItemClicked(Sender As Object, e As System.EventArgs) Handles CMRoot.ItemClicked
It seems the "e" object is populated with an infinite loop of the object "Empty".
screen dump
Is this something I should be worried about?
Posted 2-Jul-14 0:09am
Edited 2-Jul-14 0:21am
v4

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Short answer, no.

Long answer.
The reason is that System.EventArgs.Empty[^] is a Static field, that gives an Empty EventArgs and when you then in debugger goes in that static field, it will give you a new Empty EventArgs, and a new one and an new etc.
  Permalink  
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160208.1 | Last Updated 2 Jul 2014
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100