Hello,
question to c# users
does anyone tryied to use async thread in InfoPath? So it can make heavy calculation work (or read data from db) in another thread? It doesn't look like form is "Not responsing" and all user controls become grey untill process is over.
Here's simple example:
XPathNavigator xp = MainDataSource.CreateNavigator();
string res = "Processing";
Task.Factory.StartNew(() =>
xp.SelectSingleNode("/my:myFields/my:status", NamespaceManager).SetValue(res));
when code is hit message appears "Microsoft.Office.InfoPath.Client.Internal.Host.Interop.pdb not loaded" and AccessVioletionException. So InfoPath is not familiar to this technology?