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:

C-Hooks on multiple computers


Recommended Posts

Hello All, I have written half a dozen or so C-Hooks using Visual Studio 2017 and the work great on my computer. Problem arises when my co-workers try to run them. I have placed the .FT file and the .DLL in the correct local directory on each machine but when ran I get nothing. Ne errors just nothing. Anybody have any clues as to where I can start debugging this issue? 

 

TIA

Karl

Link to comment
Share on other sites
24 minutes ago, Karl@CP PISTONS said:

Hello All, I have written half a dozen or so C-Hooks using Visual Studio 2017 and the work great on my computer. Problem arises when my co-workers try to run them. I have placed the .FT file and the .DLL in the correct local directory on each machine but when ran I get nothing. Ne errors just nothing. Anybody have any clues as to where I can start debugging this issue? 

 

TIA

Karl

Hi Karl,

I would start by checking if the path on the end users computer is set to the "local" location on the users computer :

File -> Configuration -> Files -> Custom Add-In (dll)

Link to comment
Share on other sites

Zaffin, the programs are written in VB.net and yes it is a release version of the .DLL  

C++,  I am putting the custom .DLL and .FT files into the "standard" c-hook folder along with all the mastercam supplied programs. I didn't even know that they could be placed anywhere else. Can the .FT files also be located in this "custom" folder also?

 

But still no luck.

On my computer I set up a custom tab with the programs I have written. single click and program displays form with no issue. Other computers I never see the form or any errors just nothing. 

Any other sugestions?

Link to comment
Share on other sites

Copying files from one windows machine to another can cause the files to become blocked. Copy the files out of the Mastercam folder to a local temp folder away from Program files, right click and select properties of each file, make sure they are not blocked. Once all are ok then copy them back to the Mastercam folder.

Link to comment
Share on other sites
49 minutes ago, Karl@CP PISTONS said:

Can the .FT files also be located in this "custom" folder also?

I believe so yes, if that is the case then all your users could point to the same network location making it easy for you to update, although I do not recommend this since the network delay may cause you problems.

Link to comment
Share on other sites
  • 2 weeks later...
  • 3 weeks later...
On 1/21/2020 at 12:00 PM, Karl@CP PISTONS said:

Hello All, I have written half a dozen or so C-Hooks using Visual Studio 2017 and the work great on my computer. Problem arises when my co-workers try to run them. I have placed the .FT file and the .DLL in the correct local directory on each machine but when ran I get nothing. Ne errors just nothing. Anybody have any clues as to where I can start debugging this issue? 

 

TIA

Karl

Karl,

were you able to resolve yout issue?

Link to comment
Share on other sites

No the  c-hooks still do nothing even though the FT and DLL files are in the c-hook folder. I have one of our IT guys looking at it but for them it is VERRRRRYYYY low priority.

Files are not blocked by windows. Next step for me is to install VS Studio on one of the offending machines and compile  the source code to see if it then works. 

Thanks for asking I'll keep this thread informed if I find any breakthroughs. I was off on Friday and Monday so I'm really backed up  so probably won't get to it until Thursday.

Link to comment
Share on other sites
1 hour ago, Karl@CP PISTONS said:

No the  c-hooks still do nothing even though the FT and DLL files are in the c-hook folder. I have one of our IT guys looking at it but for them it is VERRRRRYYYY low priority.

Files are not blocked by windows. Next step for me is to install VS Studio on one of the offending machines and compile  the source code to see if it then works. 

Thanks for asking I'll keep this thread informed if I find any breakthroughs. I was off on Friday and Monday so I'm really backed up  so probably won't get to it until Thursday.

Does the mastercam event log show a resource error? Does it show the function being launched?

Link to comment
Share on other sites
Quote

Does the mastercam event log show a resource error?

Yes, if it cannot find the Resources specified in the FT file if will complain about that in the LOG.

Something like ->

ERROR (L49,C:\Program Files\Mastercam 2020\Mastercam\CHOOKS\MC_MultilingualAPP.ft): Unable to open resource module CHOOKS\PROJECT_NAME.dll.

Quote

Does it show the function being launched?

Yes, here I've launched a NET-Hook Add-In (RunUserDefined is the method that was called in the DLL) ->

NET-Hook function launched: C:\Program Files\Mastercam 2020\Mastercam\CHOOKS\NETHOOKSATELLITEASSEMBLYLANGUAGES.dll::RunUserDefined

You'll get something  very similar for a C-Hook Add-In.

Have you tried running your add-in in DEBUG?

If you set a breakpoint on in the entry point function of you add-in, it should get hit.

Link to comment
Share on other sites

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