Multiple Instances for Testing

Multiple Instances

For testing purposes, here is a quick way to create and run multiple instances of your program:

  1. Don't run it yet! Once the RegisterProgramInstance() method is called, it becomes a unique program instance with an assigned Program Instance ID.
  2. Build (F6) your solution.
  3. Go to the solution's \bin\Debug folder.
  4. Make several copies of the contents of that folder.
  5. Each of those copies when run becomes a unique program instance.

If you are copying the files to a machine other than your own (the one you built the program on), be sure that all of the necessary files have been included.