Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

Cannot run debug MasterCAM.exe on my computer


Recommended Posts

Hello, guys,  Happy new year 2015 !!!

 

I want to compile my c-hook program in a new computer. I encountered this problem when I transfered my c-hook code from one computer to a different computer.  Everything works good in my old computer but not on my new computer.

 

On the new computer,

 

I failed to run MasterCAM in debug mode in 2 ways:

1) Using shortcut mastercam.exe;

 

post-49696-0-00244900-1420689879_thumb.jpg

2) Debug C-hook dll in visual studio when calling Mastercam.exe;

post-49696-0-93541400-1420689882_thumb.jpg

 

 

They both gave me the following error message:

post-49696-0-91181300-1420689885_thumb.jpg

 

Can you help me find the problem?

 

 

My MasterCAM x6 is installed in   C:\mcamx6

My sdk is installed in                     C:\mcamx6\sdk

My computer is x64 platform

I compiled my c-hook dll in x64 debug mode

 

I also tried the shortcut method to call debug mastercam.exe on two other computers that have mastercam x6 installed and have x6 sdk.

 

Both failed.

 

I then guessed the problem is that I missed some important dlls in system32 folder which debug mastercam.exe needs but not installed on the new computers. What kind of dlls does mastercam needs additionally to enable its debug mode?

 

Thank you!

 

Guangyu

ISU

Link to comment
Share on other sites

Unfortunately a fairly useless error message ->
The application was unable to start correctly (0xc15002)

You should not need any "extra" files other than the Product install and the C-Hook SDK.

A couple things...
Is the version of the X6 C-Hook SDK and the X6 Product install the same?
Same was what you had on your "old" system?

Visual Studio - Is the same Version with the same Service Pack(s) installed?

You can also try this ->
MOVE all of the .FT files from the \CHooks folder to some other temp folder 
and see if that makes any (positive) difference.

 

Link to comment
Share on other sites

Yes, the X6 C-Hook SDK is MU2 and the X6 Product is MU2 (15.2.1.2)

 

I installed them using files below(not using MU3):

post-49696-0-48516400-1420755928_thumb.jpg

The service pack for Visual studio 2010 is the same: SP1

 

I tried removing .ft files from the CHooks folder, not work.

 

However, I noticed one thing when I installed the mastercam x6, it asked me to installed

1) Microsoft Visual C++ 2010 Redistributable Package (x64)

2) Microsoft Visual C++ 2010 Redistributable Package (x86)

 

But my system actually has these two packages, the install of these two then failed, and I continued installing...

post-49696-0-76856800-1420755916_thumb.jpgpost-49696-0-61508800-1420755925_thumb.jpg

The second time I uninstalled my higher version of these two packages(10.0.40219) existing on my computer

and let the mastercam install program install its own packages( turns out to be 10.0.30319)

 

and tried run debug mastercam.exe, not work, it is still the same error message.

 

Do you think I should uninstall the visual stuidio program and try again? 

 

Thank you.

 

Link to comment
Share on other sites

Roger,

 

I tried to run the debug mastercam x7 (I have x7 product and its sdk) both from visual studio and from shortcut, it works... with the only problem that I cannot find my c-hook under Settings->Customize->Category...

 

Now leave that "cannot find c-hook problem" for latter, considering the different behaviors between x6 and x7, is it possible that my mastercam x6 and sdk install program have been damaged? If so where can I find the undamaged ones to download?

 

Then for the "cannot find c-hook problem", how can I find where is wrong?

 

Thank you!

Link to comment
Share on other sites

Do you think I should uninstall the visual stuidio program and try again? 

I would think that is probably not going to help.

 

If the X6 "product" starts up and runs, the components (Visual C++ 2010 Redistributable Package, etc) to run Mastercam are there.

It appears that you have the CHook SDK's for X6, so you can match up the SDK to the Product version.

 

Then for the "cannot find c-hook problem", how can I find where is wrong?

Is the FT file for you C-Hook in the \CHook folder and is it correct?

"Correct" -> the Resource IDs are correct, etc.

 

Link to comment
Share on other sites

Roger,

 

The FT file for C-Hook in the \CHook should be correct, because when I run release MaterCAM X6, the toolbar got displayed (although the dlls for the CHook is a debug version), but when I switch to X7, it does not show up again. The FT file and C-Hook dll that I used in X6 and X7 are exactly the same .

 

Is it possible that  such difference is caused by the difference between X6 and X7?

 

Thank you.

Link to comment
Share on other sites
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

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.

Follow us

×
×
  • Create New...