gkngkc / UnityStandaloneFileBrowser

A native file browser for unity standalone platforms
MIT License
2.01k stars 317 forks source link

IL2CPP Support, crashes only in IL2CPP #44

Open ZeroByter opened 5 years ago

ZeroByter commented 5 years ago

In the editor itself and in a mono build everything works fine, but when building for IL2CPP the game crashes.

When debugging in Visual Studio, I get: Unhandled exception at 0x000007FEFEF49A12 (comdlg32.dll) in Galactic Lander.exe: 0xC0000005: Access violation reading location 0x0000000000000000.

image

Using .NET 4.x Equivalent and .NET 4.x for Api Compability Level. I didn't touch the import settings either.

gkngkc commented 5 years ago

Are you using latest (1.1) release? I did some fixes for IL2CPP recently. If you are, could you give more info about the bug.

If you can give me more details, I'll look into it.

ZeroByter commented 5 years ago

Sure! I'll be happy to provide more information!

I am using the latest (1.1) release, double checked.

I have also played around with this a little and even tried to open a dialog from a new DLL I specifically made for this, but same error occured (using the DLLs provided by your repo)

I think the fault lies with the DLLs, although I am not sure... just got a feeling.

ZeroByter commented 5 years ago

Oh, and if it means anything at all/is relevant, I get this warning message when compiling: System.Windows.Forms.dll assembly is referenced by user code, but is not supported on StandaloneWindows64 platform. Various failures might follow.

I usually ignore it since the file dialog does work in a mono build of the game, just not IL2CPP