Skip to content

IL2CPP does not support marshaling delegates that point to instance methods to native code #139

@Graylington

Description

@Graylington

After converting my Unity project to IL2CPP, I receive the following error when trying to load a file

NotSupportedException: IL2CPP does not support marshaling delegates that point to instance methods to native code. The method we're attempting to marshal is: System.Windows.Forms.CommonDialog::OwnerWndProc at System.Windows.Forms.CommonDialog.ShowDialog (System.Windows.Forms.IWin32Window owner) [0x00000] in <00000000000000000000000000000000>:0 at SFB.StandaloneFileBrowserWindows.OpenFilePanel (System.String HOMKPMAEFCI, System.String DKDBCAEHMJI, SFB.ExtensionFilter[] FDMFDONNFPK, System.Boolean BGHPAMDHIGC) [0x00000] in <00000000000000000000000000000000>:0 at SFB.StandaloneFileBrowser.OpenFilePanel (System.String HOMKPMAEFCI, System.String DKDBCAEHMJI, SFB.ExtensionFilter[] FDMFDONNFPK, System.Boolean BGHPAMDHIGC) [0x00000] in <00000000000000000000000000000000>:0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions