Page MenuHomeFeedback Tracker

Arma Crash on: "ext" callExtension ["",[ ]]
Closed, ResolvedPublic

Description

"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.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Engine
Steps To Reproduce

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.

Additional Information

Currently only tested with a C# Extension that does work when not called with empty args.

Event Timeline

ragebone created this task.Sep 7 2017, 4:16 PM

Created a Github Repo with all the code and a compiled X64 DLL that will crash under the given circumstances.

https://github.com/Ragebone/basicExtension/releases

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) {
Wulf closed this task as Resolved.Sep 8 2017, 8:15 AM
Wulf claimed this task.