Click here to Skip to main content
15,881,803 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm having an event on my ContextMenu which have the "System.EventArgs" as a parameter

The event procedure looks like this:
VB
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
Updated 1-Jul-14 23:21pm
v4

1 solution

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.
 
Share this answer
 
v2

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900