ExportToFile Failing Silently 追蹤


Is there any way we can get any error messages or reasoning about why files are not being generated from this method call?  We have an issue where occasionally the export is not generating our documents, but ExportToFile is being called. I'm assuming it's an issue with the label format in some fashion, but I don't seem to be able to figure out what the actual issue is.  If I had some logging out of the ExportToFile method it might help me track this down. 



1 意見

評論操作 永久連結

Follow up to this we've determined that it has to do with running the ExportToFile within a separate thread but still have no idea why bartender fails. 

If I use a separate thread with code like this it works:

ThreadPool.QueueUserWorkItem(MyFunctionToExport, Parameter); 

But calling it like this fails. :


Basically within MyFunctionToExport() it initializes the label and sets a bunch of label fields and then calls the export.