"ext" callExtension ["what ever", []];
will consistently crash Arma 3 unless there is no extension.
"ext" callExtension ["what ever", [""]];
Will not crash and the extension might work as expected.
"ext" callExtension ["what ever", []];
will consistently crash Arma 3 unless there is no extension.
"ext" callExtension ["what ever", [""]];
Will not crash and the extension might work as expected.
Arma3 64Bit
My C# DLL
Or i assume any other extension will do too.
Execute it with `"your extension " callExtension ["",[]]`
I will upload a link to the Sourcecode and a compiled and tested version a bit later.
I will also add a Note with that C# code and this bug-report to the callExtension and extensions Wiki page.
Currently only tested with a C# Extension that does work when not called with empty args.
Created a Github Repo with all the code and a compiled X64 DLL that will crash under the given circumstances.
Solved,
missed some wired type thingy from here:
https://community.bistudio.com/wiki/Extensions
RVExtension method should be this:
public static int RvExtensionArgs(StringBuilder output, int outputSize, [MarshalAs(UnmanagedType.LPStr)] string function, [MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.LPStr, SizeParamIndex = 4)] string[] args, int argCount) {