Comments
Sort by recent activity
By adding message boxes in the UsageReporterWithUI sample I realized that the thread used for displaying the dialog for user permission is run on a background thread.
This means that when the console app is done on it's thread, all background threads are simply dismissed.
I added a Thread.Sleep in the console application and the dialog for the user pops up nicely. I can wait and then see it disappear once the application ends.
:idea: Perhaps there could be a checkbox to NOT make the thread a background thread in the saproj settings would be a good thing?
:idea: I note that once the reporting is added, the application takes another half second (roughly) to end and I suppose this is because of the actual reporting. During that time, you could also check if the reporting thread you spawned which is waiting for the user input has ended. Perhaps a Thread.Join would be a good thing at that point?
Best Regards,
John / comments
By adding message boxes in the UsageReporterWithUI sample I realized that the thread used for displaying the dialog for user permission is run on a background thread.
This means that when the conso...
Hi Brian!
Yes, I'm trying to handle feature usage in the common dlls for the three projects. However, since I read somewhere that to get the feature usage template working I need to set the ReportUsage on the entry method, which I've done for both the console apps: internal class Program
{
[ReportUsage("ApduScriptPlayer")]
[STAThread]
private static void Main(string[] args)
{
I'd be happy do upload the obfuscated assembly, project file or even the input assemblies to you, if you think it can help.
John / comments
Hi Brian!
Yes, I'm trying to handle feature usage in the common dlls for the three projects. However, since I read somewhere that to get the feature usage template working I need to set the ReportU...