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:

NetHook not running in X4 MU2


Recommended Posts

Hello,

 

we created a nethook for Mastercam X4 (we created it by using the NetHook2Example from the Mastercam web page and Microsoft Visual Studio 2005. It worked fine in X4 and X4MU1

 

After installing MU2 the Nethook does not run any more. We get this error instead:

 

"Exeption has been thrown by the target of an invocation."

 

Does any of you know what would be the reason for this error.

 

Best regards

 

Gorazd Peterlin

Link to comment
Share on other sites

Gorazd,

 

"Microsoft Visual Studio 2005"

Are you really using 2005 ?

For X4 you're supposed to use VS 2008.

 

"Exeption has been thrown by the target of an invocation."

 

This just means "something went wrong", which could be almost anything.

If you rebuild your NETHook application referencing the NETHook2_0.DLL from X4-MU2,

does that make any difference?

Link to comment
Share on other sites

Hello,

 

I have tried both things and the thing is that the Nethook is working on my Vista Laptop and does not work on my brand new Windows7 PC.

 

The error states this:

 

"A .NET Library error occurred and the user application "CHOOKSMULTI_MACHINES_POST.DLL", has stopped executing.

 

Roger, I can send you the whole project, so you can see how I have done it. Maybe you find an error in a project.

 

Regards.

 

Gorazd.

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