Crash when standalone player embedded into other window

crash on unity version 5.5.2,windows 10.but it is not crash on 5.6 b8,I don’t know why.

Use development player. There should be a crash dump saved, player log might also contain some info. Seeing a callstack from there would help me to find a reason.

I solve the problem,but I don’t know the reason.

stack trace is

========== OUTPUTING STACK TRACE ==================
0x00987805 (P) ScreenManagerWin::OnWindowRegainedFocus
0x774A3C3B (USER32) AddClipboardFormatListener
0x77494741 (USER32) DispatchMessageW
0x7749439A (USER32) DispatchMessageW
0x7749FAC9 (USER32) GetWindowThreadProcessId

so I comment some code in your winform example UnityForm.cs

private int WindowEnum(IntPtr hwnd, IntPtr lparam)
{
unityHWND = hwnd;
//ActivateUnityWindow();
return 0;
}

now it not crash.

the zip file is crash.dmp and error.log

2974765–221067–2017-02-27_193508.zip (33.5 KB)

Please report it as a bug.
Our example is out of date and does not contain recent improvements. Check the value of USERDATA in Unity window. It’s lowest bit will be set to 1 after graphics has been initialized, you should avoid doing something with the window prior to that.