adding a first line in the command: bool anything = true;
and set a debugging-point to this line - so the focus is set to Visual studio after the command call but before the user-interaction / the firing of Get.
As soon as the focus is back to Rhino, this resource is missing.
???
d:\integration\rhino5\src4\rhino4\Plug-ins\Toolbars\ToolBarGroupControl.cs
i am using windows 7,
visual Studio Express,
Rhino Version 5 SR13 64-bit
(5.13.60913.21340, 13.09.2016)
I am not able to repeat what you are reporting using the release version of Rhino (Rhino.exe found in Program Files) as the debug target. I’m using Visual Studio 2010.
@stevebaer@dale
i can produce the error in this way:
copy paste the sample-Code to a new Rhino-Command-Class and set breakpoint.
i am using visual studio express 2013.
Debugg against Rhino.exe 64 bit SR 13
(1) rhino will become the active window / get the focus.
(2) rhino start command via commandline - in my case “test_duplicateSurfaceBorder”
(3) visual studio now the visual-studio window will come active - showing the code-line with breakpoint
(4) visual studio pressing F11 / step into at visual studio - step into the line with “GetOneObject”
(5) rhino very shortly i see the rhino-window
(6) visual studio now complains with the following message:
Locating source for 'd:\integration\rhino5\src4\rhino4\Plug-ins\Toolbars\ToolBarControl.cs'. Checksum: MD5 {ef be 19 4 cc b7 2c 21 1a 17 32 29 fa 67 90 33}
The file 'd:\integration\rhino5\src4\rhino4\Plug-ins\Toolbars\ToolBarControl.cs' does not exist.
Looking in script documents for 'd:\integration\rhino5\src4\rhino4\Plug-ins\Toolbars\ToolBarControl.cs'...
Looking in the projects for 'd:\integration\rhino5\src4\rhino4\Plug-ins\Toolbars\ToolBarControl.cs'.
The file was not found in a project.
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\vc7\atlmfc'...
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\vc7\crt'...
The debug source files settings for the active solution indicate that the debugger will not ask the user to find the file: d:\integration\rhino5\src4\rhino4\Plug-ins\Toolbars\ToolBarControl.cs.
The debugger could not locate the source file 'd:\integration\rhino5\src4\rhino4\Plug-ins\Toolbars\ToolBarControl.cs'.