locked
combase.dll!RoFailFastWithErrorContextInternal(HRESULT hrError=E_UNEXPECTED, unsigned long cStowedExceptions=0x00000005....

    Question

  • When we bind a large number of elements (approx 600) to the itemGridView, we get the exception. The application works with less than 500 or so elements without any issues.

    The binding is defined as this:

    ItemsSource="{Binding Source={StaticResource Datasource}}"

    ItemTemplateSelector="{Binding Source={StaticResource MyCustomTemplateSelector}}"

    We are stuck on this. Any help is highly appreciated.

    >    combase.dll!RoFailFastWithErrorContextInternal(HRESULT hrError=E_UNEXPECTED, unsigned long cStowedExceptions=0x00000005, _STOWED_EXCEPTION_INFORMATION_V1 * * aStowedExceptionPointers=0x126d1890)  Line 853    C++
         Windows.UI.Xaml.dll!DirectUI::ErrorHelper::ProcessUnhandledErrorForUserCode()  + 0x7a bytes    
         Windows.UI.Xaml.dll!AgCoreCallbacks::CallAUHandler()  + 0xe bytes    
         Windows.UI.Xaml.dll!CCoreServices::ReportUnhandledError()  + 0x14 bytes    
         Windows.UI.Xaml.dll!CXcpDispatcher::Tick()  + 0x7a827a bytes    
         Windows.UI.Xaml.dll!CXcpDispatcher::OnReentrancyProtectedWindowMessage()  + 0x36 bytes    
         Windows.UI.Xaml.dll!CXcpDispatcher::WindowProc()  + 0x6e bytes    
         user32.dll!_InternalCallWinProc@20()  + 0x23 bytes    
         user32.dll!_UserCallWinProcCheckWow@36()  + 0xbd bytes    
         user32.dll!_DispatchMessageWorker@8()  + 0xf8 bytes    
         user32.dll!_DispatchMessageW@4()  + 0x10 bytes    
         Windows.UI.dll!Windows::UI::Core::CDispatcher::ProcessMessage(int bDrainQueue=0x00000001, int * pbAnyMessages=0x037dfab8)  Line 121    C++
         Windows.UI.dll!Windows::UI::Core::CDispatcher::ProcessEvents(Windows::UI::Core::CoreProcessEventsOption options=CoreProcessEventsOption_ProcessUntilQuit)  Line 184 + 0x10 bytes    C++
         Windows.UI.Xaml.dll!CJupiterWindow::RunCoreWindowMessageLoop()  + 0x37 bytes    
         Windows.UI.Xaml.dll!CJupiterControl::RunMessageLoop()  + 0x28 bytes    
         Windows.UI.Xaml.dll!DirectUI::DXamlCore::RunMessageLoop()  + 0x1d bytes    
         Windows.UI.Xaml.dll!DirectUI::FrameworkView::Run()  + 0xc bytes    
         twinapi.dll!`Windows::ApplicationModel::Core::CoreApplicationViewAgileContainer::RuntimeClassInitialize'::`55'::<lambda_A2234BA2CCD64E2C>::operator()(void * pv=0x016e7228)  Line 560    C++
         twinapi.dll!`Windows::ApplicationModel::Core::CoreApplicationViewAgileContainer::RuntimeClassInitialize'::`55'::<lambda_A2234BA2CCD64E2C>::<helper_func>(void * pv=0x016e7228)  Line 613 + 0xe bytes    C++
         SHCore.dll!_SHWaitForThreadWithWakeMask@12()  + 0x129e bytes    
         kernel32.dll!@BaseThreadInitThunk@12()  + 0xe bytes    
         ntdll.dll!___RtlUserThreadStart@8()  + 0x27 bytes    
         ntdll.dll!__RtlUserThreadStart@8()  + 0x1b bytes    

    Monday, October 22, 2012 9:43 PM