locked
Using Windows::ApplicationModel::Search::SearchPane::GetForCurrentView() report error

    Question

  • When I use the below line codes as showed in http://msdn.microsoft.com/en-us/library/windows/apps/xaml/windows.applicationmodel.search.searchpane 

    searchPane = Windows::ApplicationModel::Search::SearchPane::GetForCurrentView();

    the VS 2012 report error as follows:

    Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call.  This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention.

    What's the reason?

    Tuesday, August 14, 2012 8:57 AM

Answers

All replies