title: Winforms app crashes on Windows server 2008r2
body: <p>I have a winforms application that connects to X_Trader via ttapi.
  (Info about X_Trader <a href="https://www.tradingtechnologies.com/platforms/x_trader-platform/" rel="nofollow">here</a>)
  The application runs fine on windows7 machines but on server it crashes as soon as it startsup.
  From the crash report I found that KernelBase.dll is causing this.
  I have put logs on everyline to see for which line the application is crashing.
  From the logs, I found that it crashes while creating a instance of UIDispatcher of TT( Dispatcher disp = Dispatcher.AttachUIDispatcher()).
  I am gonna paste the error details from crash report.</p>
  
  <blockquote>
    <p>Problem Event Name:    APPCRASH<br/>
      Application Name: TradingSystemsLiveFeed.exe<br/>
      Application Version:  1.0.0.0<br/>
      Application Timestamp:    57106fc3<br/>
      Fault Module Name:    KERNELBASE.dll<br/>
      Fault Module Version: 6.1.7601.23250<br/>
      Fault Module Timestamp:   562593c7<br/>
      Exception Code:   e0434352<br/>
      Exception Offset: 000000000000adcd<br/>
      OS Version:   6.1.7601.2.1.0.400.8<br/>
      Locale ID:    2057<br/>
      Additional Information 1: 367e<br/>
      Additional Information 2: 367e805d0e7c1ec3f63b05bb5ce5c416<br/>
      Additional Information 3: 2279<br/>
      Additional Information 4: 2279f56534e3e1288468aa2f740c7a91<br/>
    Read our privacy statement online:
      <a href="http://go.microsoft.com/fwlink/?linkid=104288&amp;clcid=0x0409" rel="nofollow">http://go.microsoft.com/fwlink/?linkid=104288&amp;clcid=0x0409</a><br/>
    If the online privacy statement is not available, please read our privacy statement offline:
      C:\Windows\system32\en-US\erofflps.txt</p>
  </blockquote>