RobotStudio event

API: debug procedure?

Hi,

I was using VB6 to do an addin for RS 3.2 and I am trying to convert it for RS5 using VS2005.

In the good old time with VB6, the debugging procedure was very simple and easy: click Start Debugging ... in VB6 and then start RobotStudio. In the middle of the work, the debugging mode can be stopped in VB6 and resumed without shutting down RS.

It now seems that RobotStudo 5 has to be closed first and started again to see the debugging result after overwriting the old dll with the new one.  Am I right here? What is the debugging procedure with RS5 and VS 2005 if there is a simple one? Thank you very much.

John

john_yu2008-1-11 23:13:20

Comments


  • Hi John,

    Yes you are right. In .NET, an assembly (dll) can never be unloaded from it's application domain. And since RobotStudio runs addins in it's own (main) appdomain, they can't be unloaded without shutting down RS.

    VSTA overcomes this by running the addin in a separate application domain. But that brings another set of problems an limitations..

    regards,
    Johannes

    Johannes Weiman2008-1-14 14:3:27
    Johannes Weiman
    Software Engineer
    ABB Robotics