I try to call into a managed exe COM server (.net 3.0, no service packs) from a native windows shell extension, and it works just fine, except for when the called function uses lambda expressions, like so:
mainWnd.Dispatcher.Invoke((ThreadStart)(() => mainWnd.listBoxFolders.Items.Refresh()));
If instead, I use an anonymous method:
mainWnd.listBoxFolders.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Background, new System.Windows.Threading.DispatcherOperationCallback(delegate
everything works just fine. The same lambda expressions work well when used in the main application (from managed threads).
Any ideas ?
View Complete Post