Page 1 of 1

Problem with invoke remotely on dev express grid

Posted: Tue Jul 19, 2011 3:46 pm
by vengaishiva
Hi,
I am having an application which contains a dev express grid. In my automation c# code(which is a visual studio solution with name ConsoleApp1), am using invoke remotely on this grid to perform some functions.

The problem is once i have executed the automation code(ConsoleApp1), am making some changes in my ConsoleApp1 code and am trying to run it next time. But the code is not running showing an error message, 'Unable to copy file "obj\Debug\ConsoleApp1.exe". The process cannot access the file bin\Debug\ConsoleApp1.exe because it is being used by another process'.

When i close the application being automated (i.e the application which contains dev express grid) and open it again, i can build and run the ConsoleApp1 mentioned above.

It seems that when i use invokeremotely, resources are not getting freed properly, until the application under automation is closed. Any help on this? :?

Regards,
Siva R S

Re: Problem with invoke remotely on dev express grid

Posted: Tue Jul 19, 2011 4:52 pm
by Ciege
Unfortunately, that's the way it is... When you use Invoke Remotely you have made a connection to the AUT that is not closed until the AUT is closed. You must close the AUT for your script to properly compile.
You can move the invoke remotely to a referenced DLL so that you only need to build that section of code when and if it changes and it should alleviate most of your issues with being unable to build.