Bug - Debugger asks for ToolBarGroupControl.cs

@stevebaer @dale

i am facing a strange behaviour while debugging:
i can reproduce the error with this example:

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.

i am using windows 7,
visual Studio Express,
Rhino Version 5 SR13 64-bit
(5.13.60913.21340, 13.09.2016)


Hi Tom,

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.

What am I missing?

– Dale

Can you help me understand a little more what that means? Are you getting an exception, dialog box, … ?

@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'.

the disassembly looks like this at this moment:

Rhino.UI.Controls.ToolBarControl.ToolBarControl_MouseEnter(object, System.EventArgs)

000007FE8F1A8BBC  inc         byte ptr [rdi]  
000007FE8F1A8BBE  add         byte ptr [rax],al  
--- d:\integration\rhino5\src4\rhino4\Plug-ins\Toolbars\ToolBarControl.cs ------
000007FE8F1A8BC0  mov         qword ptr [rsp+18h],r8  
000007FE8F1A8BC5  mov         qword ptr [rsp+10h],rdx  
000007FE8F1A8BCA  mov         qword ptr [rsp+8],rcx  
000007FE8F1A8BCF  push        rbx  
000007FE8F1A8BD0  sub         rsp,30h  
000007FE8F1A8BD4  mov         rax,7FE8F0304D0h  
000007FE8F1A8BDE  mov         eax,dword ptr [rax]  
000007FE8F1A8BE0  test        eax,eax  
000007FE8F1A8BE2  je          000007FE8F1A8BE9  
000007FE8F1A8BE4  call        000007FEEE6763FC  
000007FE8F1A8BE9  mov         rax,qword ptr [rsp+40h]  <-----------Active 
000007FE8F1A8BEE  mov         byte ptr [rax+1C9h],1  
000007FE8F1A8BF5  lea         rbx,[7FE8EFFF090h]  
000007FE8F1A8BFC  lea         rcx,[7FEEBA05398h] 
000007FE8F1A8C03  call        000007FEEE2827D0  

don t know if this helps.
i never did anything with the missing file ToolBarControl.cs

does that make it more clear ?




Hi Tom,

Just curious, do you have Visual Studio loading symbols during debugging?

If so, you might set this to “Only specified modules.”

– Dale

i checked this setting - and changed it to this:

i still have the error.

Did that change solve the problem?

i still have the error.
But as it only occurs if i set a break-point - for me it s not so high priority to solve it