Search Unity

[Solved] Force native crash on Windows standalone, without native plugins

Discussion in 'Scripting' started by chrismarch, Mar 26, 2015.

  1. chrismarch

    chrismarch

    Joined:
    Jul 24, 2013
    Posts:
    472
    How would I force a Windows standalone build to crash in native code, and not native plugin code, but in the player native code itself? I want to force the Unity player to pop up its crash dialog, and then generate the folder with crash.dmp that follows the dialog (doesn't work properly with native plugin crashes for now, this is a bug I reported...).

    I combed through http://issuetracker.unity3d.com/ searching for crash, and I couldn't find anything I could reproduce with my Unity Editor 5b18 64-bit build that I need to use at the moment. (although it is possible to do this with issue 680212 in the released Unity 5). There must be a bug out there! Haha, I am glad this is giving me trouble I guess, as it means the player doesn't hard crash from obvious attempts.

    I suppose I will go edit the exe file now...

    (Note: I am not talking about anything that would make error text, exceptions, null c# dereference, stack overflow exceptions, infinite loops, etc.)
     
  2. chrismarch

    chrismarch

    Joined:
    Jul 24, 2013
    Posts:
    472