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
System.Reflection.TargetException gtk-clock under .Net #59
Comments
|
gtk-clock.pl and gtk-sierpinski.pl work for me if $cc.Target.Dispose; is commented out (line 50, line 47 resp.). gtk-tetris.pl works as is. Otherwise I get an error about being unable to find Dispose in CLR::Cairo::Surface. Full backtace below: Exception in Gtk# callback delegate Cairo.Context: called from finalization thread, programmer is missing a call to Dispose |
under cmd.exe (and cygwin also, separately; both produce the same error) under .Net:
C:\Users\mwilson\src\niecza>run\Niecza.exe examples\gtk-clock.pl
Unhandled exception: System.Reflection.TargetException: Non-static method requir
es a target.
at System.Reflection.RuntimeConstructorInfo.CheckConsistency(Object target)
at System.Reflection.RuntimeConstructorInfo.Invoke(Object obj, BindingFlags i
nvokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Niecza.OverloadCandidate.Invoke(Object obj, Variable[] pos, VarHash named)
at Niecza.CLRWrapperProvider.c__AnonStoreyA.<>m__B(Frame th)
at Niecza.Kernel.RunCore(Frame& cur)
at line 0 (CLR::Gtk::Window.new @ 0)
at C:\Users\mwilson\src\niecza\examples\gtk-clock.pl line 17 (MAIN mainline @
2)
at C:\Users\mwilson\src\niecza\lib\CORE.setting line 2115 (CORE C1022_ANON @ 2
)
at C:\Users\mwilson\src\niecza\lib\CORE.setting line 2116 (CORE module-CORE @
58)
at C:\Users\mwilson\src\niecza\lib\CORE.setting line 2116 (CORE mainline @ 1)
at line 0 (boot-MAIN @ 1)
at line 0 (ExitRunloop @ 0)
at C:\Users\mwilson\src\niecza\boot\lib\CORE.setting line 685 (CORE die @ 2)
at C:\Users\mwilson\src\niecza\src\NieczaBackendDotnet.pm6 line 37 (NieczaBack
endDotnet NieczaBackendDotnet.accept @ 13)
at C:\Users\mwilson\src\niecza\src\NieczaCompiler.pm6 line 32 (NieczaCompiler
C19_ANON @ 4)
at C:\Users\mwilson\src\niecza\src\NieczaCompiler.pm6 line 38 (NieczaCompiler
NieczaCompiler.compile @ 18)
at C:\Users\mwilson\src\niecza\src\NieczaCompiler.pm6 line 68 (NieczaCompiler
NieczaCompiler.compile_file @ 5)
at C:\Users\mwilson\src\niecza\src\niecza line 306 (MAIN mainline @ 107)
at C:\Users\mwilson\src\niecza\boot\lib\CORE.setting line 1933 (CORE C906_ANON
@ 2)
at C:\Users\mwilson\src\niecza\boot\lib\CORE.setting line 1934 (CORE module-CO
RE @ 56)
at C:\Users\mwilson\src\niecza\boot\lib\CORE.setting line 1934 (CORE mainline
@ 1)
at line 0 (boot-MAIN @ 1)
at line 0 (ExitRunloop @ 0)
The text was updated successfully, but these errors were encountered: