LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Combining "allowMultipleInstances" with "OS Open Document" event = Catastrophe!

Hey folks,

 

I'm combining two somewhat "off-book" LabVIEW features here. Hoping I can get some help from the experts!

 

I have an application (named APT) which has been built into an executable. In the .ini file, "allowMultipleInstances=TRUE". So calling the application more than once results in multiple instances.

 

I also have the "OS Open Document" event, which triggers when the user opens .csv files from Windows Explorer.

 

"OS Open Document" has been workingly splendidly for a couple months. I was recently asked to add the multiple instances case by the enduser, which I did. Now with both features, I get the following behavior:

 

1) If my application is NOT the default program, then performing an "Open With --> APT" causes the file to open in Excel (?). Then APT opens, but doesn't load the file data. It acts as though it's been called without loading any file information.

 

2) If my application IS the default program, then endless instances of APT begin appearing. This forces a restart.

 

Has anyone had any sort of experience with combining these two features? Any ideas on how to make them play nicely together? If not, I think I may have to break it to the enduser that he can only have one or the other.

 

Thanks.

0 Kudos
Message 1 of 3
(2,839 Views)

Bumping this thread, hoping someone new might have some input.

0 Kudos
Message 2 of 3
(2,816 Views)

You must be using an older version of LabVIEW. That event isn't exposed in LabVIEW 2011, as far as I know. In fact, Ton submitted an idea to provide a native way to handle this.

 

Given that the event you are using isn't documented, it's anybody's guess as to what the problem is. At the very least we would need to see some code to have a chance at guessing what the problem might be. It could be something as simple as a race condition.

0 Kudos
Message 3 of 3
(2,812 Views)