It doesnt crash here. It works nicely.
0510 08/03/09 16:24:09| A custom script window is being created
0510 08/03/09 16:24:09| CInterfaceWindow - Window creation: WndTest
0510 08/03/09 16:24:09| CScriptObjectCustomWnd created. This: 02213e30
0510 08/03/09 16:24:11| CChooseFont - created
0510 08/03/09 16:24:28| CInterfaceWindow - Window destruction: WndTest
HOWEVER, as Matty already stated, the LOGFONT structure's length must be
92 !
code:
var LF = Interop.Allocate(92); //must be 92, see MSDN docs!!!!