Outlook crashes while click the radtreeviewitem in a Outlook Addin

2 posts, 0 answers
  1. prakash
    prakash avatar
    10 posts
    Member since:
    Mar 2009

    Posted 18 Jun 2009 Link to this post

    Dear Friends,

    We are using the RadTreeView in one of our outlook addin application. The Radtreeview works fine in a WPF application. But in the addin it crashes the outlook when a treeview item is clicked.

    If I debug I got the follwing error in VS.NET 2008 Debugger.

    "An unhandled exception of type 'System.NullReferenceException' occurred in Unknown Module."

    The call stack is,

    kernel32.dll!_RaiseException@16()  + 0x58 bytes 
      mscorwks.dll!RaiseTheExceptionInternalOnly()  + 0x159 bytes 
      mscorwks.dll!RaiseTheException()  + 0x4e bytes 
      mscorwks.dll!RaiseTheException()  + 0xc0 bytes 
      mscorwks.dll!RealCOMPlusThrow()  + 0x30 bytes 
      mscorwks.dll!RealCOMPlusThrow()  + 0xd bytes 
      mscorwks.dll!Thread::RaiseCrossContextException()  + 0x1ff bytes 
      mscorwks.dll!Thread::DoADCallBack()  + 0x13095b bytes 
      mscorwks.dll!_UM2MDoADCallBack@16()  + 0x7c bytes 
      user32.dll!_InternalCallWinProc@20()  + 0x23 bytes 
      user32.dll!_UserCallWinProcCheckWow@32()  + 0xb3 bytes 
      user32.dll!_DispatchMessageWorker@8()  + 0xe6 bytes 
      user32.dll!_DispatchMessageW@4()  + 0xf bytes 
      [Frames below may be incorrect and/or missing, no symbols loaded for MSO.DLL] 
      kernel32.dll!@BaseThreadInitThunk@12()  + 0x12 bytes 
      ntdll.dll!__RtlUserThreadStart@8()  + 0x27 bytes 

    There is no managed stack here.
    Is there anyway to solve the problem?

    The sample project contain source code and a setup project. Just install the setup project. The addin comes in the bottom of the left naviagtion pane. Click any one of the trreview item. You can see the outlook crashed.

    I have uploaded a sample project that reproduce the erorr in the following location.


    Thanks & Regards

  2. prakash
    prakash avatar
    10 posts
    Member since:
    Mar 2009

    Posted 19 Jun 2009 Link to this post

    I figured out the problem. The RadTreeView Crashes the application if it hosted inside an ElementHost (Winforms Interoperability).

    Discard this question. I am going to create a new question.
Back to Top