[Mono-list] mono_runtime_invoke crash

Robert Jordan robertj at gmx.net
Sun Sep 14 16:47:32 UTC 2014


On 13.09.2014 22:30, tbrooks wrote:
> I've broken everything down to an extremely simple test, this crashes for me
> about every other run with an access violation 0x00000C (so a null pointer
> somewhere in mono_runtime_invoke). It seems related to Console.WriteLine; if
> it is removed the crashing stops.

You did not show us how you're initializing the runtime.

Maybe you didn't call mono_set_dirs () (it's likely required
under Windows, where you seem to test on) or
mono_config_parse (NULL) which initializes the DLL mapping.

Under Windows you could also end up with compiling your app
for the Windows subsystem which doesn't have a console.

Robert




More information about the Mono-list mailing list