- Home /
Why unity crashes when using shell32?
I'm using shell 32 to get some file descriptions. It works perfect in Visual Studio 2010, but when it comes inside unity it crashes.
The code is:
using Shell32;
ShellClass shell = new ShellClass();
Folder objFolder = shell.NameSpace(path);
string fileTitle = objFolder.GetDetailsOf(objFolder.Items().item(0),21); //Crash on this line
The Error is:
Runtime Error! This application has requested the Runtime to terminate it in an unusual way.
Thank you.
Comment