Unity 4.3.4f1
NGUI 3.4.6 or thereabouts
Close the window for a webplayer or PC compiled player, and it crashes. Webplayer doesn't tell me much in the error log, but the PC output_log.txt says:
NullReferenceException
at (wrapper managed-to-native) UnityEngine.Component:InternalGetGameObject ()
at UnityEngine.Component.get_gameObject () [0x00000] in <filename unknown>:0
at UIDrawCall.ClearAll () [0x0002c] in C:\repositories\daedalimperium\DaedalImperium\Assets\NGUI\Scripts\Internal\UIDrawCall.cs:664
at UIDrawCall.ReleaseAll () [0x00000] in C:\repositories\daedalimperium\DaedalImperium\Assets\NGUI\Scripts\Internal\UIDrawCall.cs:676
at UIPanel.OnDisable () [0x00062] in C:\repositories\daedalimperium\DaedalImperium\Assets\NGUI\Scripts\UI\UIPanel.cs:728
(Filename: C Line: 0)
I looked at that line in UIDrawCall.cs and it's already checking if the application is playing, so I have no idea. I am closing the application by hitting the little X that closes like every window. I've already read about how application.quit() sometimes fails (or used to), but I'm not trying to close the program via script...
Any insight would be great.