Click here to Skip to main content
Rate this: bad
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

1 solution

Rate this: bad
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.

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 8,478
1 OriginalGriff 6,516
2 Peter Leow 3,567
3 Zoltán Zörgő 3,386
4 Richard MacCutchan 2,397

Advertise | Privacy | Mobile
Web01 | 2.8.150123.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