05-21-2017 10:29 PM
I want to create a client and server test case which both rely on unique CVT instances. The way I would normally do this is to compile one into an exe and run the other in the dev environment. But, can this be done without an exe or having access to the application builder?
Basically, what I'm asking is, within the same dev environment, can two application instances exist to "My Computer " at the same time?
thanks,
XL600
Solved! Go to Solution.
05-21-2017 10:52 PM
My understanding is that you can - this is what a lot of in-built App Instances do (for example - UTF runs the unit tests in a new Application Instance, VIs run from the Tools menu run in their own App Instance etc. and can access the default App Instance). Creating your own Application Instances and other useful API functions is a bit trickier - I believe that this is only possible by using so-called "private" or "brown" functions for which there is no official support. There are some posts on LAVA from people more knowledgeable than I on how to leverage this without shooting your foot off. Whether this is your best option is debatable though.
05-22-2017 02:35 AM
If you have separate projects they should run in separate instances.
05-22-2017 03:05 AM
Each project is indeed a separate instance, in fact even each target inside a project. To create your own instances you indeed will need to dig into undocumented area as pointed out by tyk. And debugging this is a somewhat painful experience as you need to not only code with all the extra complications of separate instances in mind, but also debug it outside of the original project, which makes certain tools difficult to use.
05-22-2017 07:17 AM
That seems simpe enough then. A project for the client and a separate project for the server on the same target, both running at the same time. Can there be two targets to "my computer " in the same project?
Thanks!
xl600
05-22-2017 08:24 AM