Search the Community
Showing results for tags 'MasterCAM X6 C-Hook SDK'.
-
Hello, I met a problem when I am trying to debug my c-hook program in MasterCAM. Currently, I am developing c-hook program for MasterCAM X6 in Visual Studio 2010. In the release configuration, everything goes well, I build the mychook.dll and it works well in MasterCAM. Now, I want to debug mychook.dll with MasterCAM running, which means I want to see how values changes in my source code in visual studio when I press buttons of mychook.dll in MasterCAM. I did what Roger said before: In visual studio, under my project. Configuration->Debug Configuration->Debugging->Command-> C:\mcamx6\sdk\x64\debug\Mastercam.exe Configuration->Debugging->Work Directory-> C:\mcamx6 (where I install mastercamx6) After these setup, I press Start Debugging(F5), MasterCAM opens successfully. However, when I try to using mychook button to open a step file(which works well in release mode), visual studio report a fatal error. like below: This error points to some mastercam database read/write code in my program. like below: This is very strange to me. Because it works well in the release mode, but here it fails. I am guessing that it uses some read/write dlls in the \sdk\x64\Debug folder instead of the dlls in my noraml running \mcamx6. Which means the sdk is causing the problem. Could it be that my sdk is not compatible with my mcamx6 ? Or could it be that I am not installing my sdk correctly?(Honestly, I just copy the sdk folder to any location in my computer, instead of installing it), Here is the "Error Reprot Dialog" when I open the mastercam in debug mode. I guess the problem would be the way that I deal with sdk, but I have no clue how can I fix this. Thanks in advance for your help. Guangyu ISU
Join us!
eMastercam - your online source for all things Mastercam.
Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.