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:

Recommended Posts

Hello,

 

I couldn't debug my program on MR1 release with an error.

When I try to debug my program, I've got an following error.

Debug Assetion Failed!

Prpogram:CMcamXsdkdebugMastercam.exe

File:wincore.cpp

Line.384

 

I could debug my program with SP1 release and I used Visual Studio 6.0 with SP1 release.

I've changed my environment to VisualStudio 2003 with MR1 release.

 

Does anyone have information about this?

Link to comment
Share on other sites

Mimi,

 

That's a fairly general error, so you're going to have to be more specific if you need help. My best suggestion is to check out your AFX_MANAGE_STATE macros to make sure that they are correctly placed, and that you're in the dll that corrosponds to the correct resource file before calling into MCDialog.

 

Try this:

1. Click "Retry" when the assertion comes up.

2. Look at the call stack, and find the closest funtion the you wrote that is in the call stack to the current execution point

3. if AFX_MANAGE_STATE(AfxGetStaticModuleState()) isn't the first line of the function, add it. (Note that this is a macro, so it isn't going to need a semicolon)

 

 

Best of luck,

Link to comment
Share on other sites

Jon,

Thank you for you reply.

 

But this error doesn't happen when I try to run the C-hook.

This error occurs when I try to start Mastercam from VC.

 

After loading "C:MCamX-MR1resourcesMCCoreRes.dll",

the accessing error "exception:0xC0000005" occurs.

It seems that Mastercam has accessed the address "0x000000" and "0xffffffff".

So I believe that Mastercam accesses the valriables that are not initialized.

When I try to debug my program, the error I mentioned above occurs fifteen times, then encounters "break point of user setting" and my debugger stops.

Is there any necessarry information to solve this problem?

 

 

mimi

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

mimi,

 

After extensive internal discussions, we prescribe the following cure:

 

1. Open the directory c:mcamxchooks

(your install directory for MR2)

2. Find the file art.ft

3. Rename it art.ftt

 

This should alleviate the error. The art.ft file tells mastercam by its presence to load the art.dll file, and link it to your executable. However, the art.dll that was released is a release version, and not designed for debugging. By linking a release version in, your executable becomes not fully debuggable, and causes the error you see, hence Roger's questions about whether you were running the the Debug version.

 

Best of luck, and please let us know if this alleviates the problem

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