private void createFormInOtherThread() { try { S7OexchangeBlock fdr = new S7OexchangeBlock(); _myForm = new _intForm(_connectionHandle, Marshal.SizeOf(fdr), this); SetSinecHWndMsg(_connectionHandle, _myForm.Handle, WM_SINEC); WndProcReady = true; Application.Run(); } catch (ThreadAbortException) { } }
private void createFormInOtherThread() { try { S7OexchangeBlock fdr = new S7OexchangeBlock(); _myForm = new _intForm(_connectionHandle, Marshal.SizeOf(fdr), this); SetSinecHWndMsg(_connectionHandle, _myForm.Handle, WM_SINEC); WndProcReady = true; Application.Run(); } catch (ThreadAbortException) { } }