Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: cd_edwards on November 27, 2011, 11:44:59 AM

Title: Data structure change
Post by: cd_edwards on November 27, 2011, 11:44:59 AM
I've been working on a plugin for a LCD display and had the device working quite well except there was no config dialog. I ended up crashing mach3 so I installed the most recent non-release beta version. Now I have a problem in that the display is not picking up the mach3 machine data structure correctly. Has there been a change in the structure between the release and the current beta version?  Also, I've been able to create a problem with mach3 in that I am able to trigger a 9991 art code consistantly. Closing the dialog, causes mach3 to crash. this is extremely repeatable. I'm not modifiying the structures at all, just set up a dialog box and obviuosly incorrectly.
Title: Re: Data structure change
Post by: Hood on November 27, 2011, 05:32:54 PM
Probably best to email Andrew and give him details of exactly what happens and likely also your plugin etc so he can repeat the issue there.
andrewm@machsupport.com

Hood
Title: Re: Data structure change
Post by: AiR_GuNNeR on November 28, 2011, 08:06:00 AM
Are you using VS2003?  If not, that could be your problem as some of the class sizes have changed and will cause memory corruption.
Title: Re: Data structure change
Post by: cd_edwards on November 28, 2011, 08:08:55 AM
well that is maybe it then as I'm trying to use vs2010. I knew i should not have upgraded from 2003.
Title: Re: Data structure change
Post by: AiR_GuNNeR on November 28, 2011, 09:28:33 AM
If you look in the plugin forum, there is a guy there that did a great job and doewrote some new headers so you can use VS2008, but it does not support MFC.
Eric
Title: Re: Data structure change
Post by: cd_edwards on November 28, 2011, 08:50:58 PM
Thanks for the heads up Eric. Once I recompiled using the headers from the MachPluginWizard 1.1a I can say that  it actually works with VS2010. my LCD DRo is now working again.