Click here to Skip to main content
11,706,142 members (56,210 online)
Rate this: bad
good
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 1-Jul-14 23:09pm
Edited 1-Jul-14 23:21pm
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
0 Sergey Alexandrovich Kryukov 151
1 OriginalGriff 151
2 Mika Wendelius 70
3 ppolymorphe 61
4 chainerlt 60
0 OriginalGriff 9,050
1 Sergey Alexandrovich Kryukov 8,417
2 CPallini 5,189
3 Maciej Los 4,726
4 Mika Wendelius 3,636


Advertise | Privacy | Mobile
Web02 | 2.8.150819.1 | Last Updated 2 Jul 2014
Copyright © CodeProject, 1999-2015
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