Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SWF] Method OnClosed should pass FormClosedEventArgs type, instead of EventArgs #13282

sancheolz opened this issue Mar 4, 2019 · 0 comments · Fixed by #13283


Copy link

@sancheolz sancheolz commented Mar 4, 2019

Steps to Reproduce

  1. override From.OnClosed method like this:
protected override void OnClosed(EventArgs e)
            if (((FormClosedEventArgs)e).CloseReason != CloseReason.MdiFormClosing)
               {}//do something


Current Behavior

Throws NullReferenceException when cast e to FormClosedEventArgs.

Expected Behavior

Successfull cast e to FormClosedEventArgs.

On which platforms did you notice this

[ ] macOS
[x] Linux
[ ] Windows

Version Used:

Mono JIT compiler version 5.21.0 (master/d319f72d0dd Вс окт 7 12:53:58 MSK 2018)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors.
TLS: __thread
SIGSEGV: altstack
Notifications: epoll
Architecture: amd64
Disabled: none
Misc: softdebug
Interpreter: yes
LLVM: supported, not enabled.
Suspend: hybrid
GC: sgen (concurrent by default)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.