Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: gorf23 on September 07, 2018, 11:01:22 AM

Title: mach4 module help
Post by: gorf23 on September 07, 2018, 11:01:22 AM
I create a module that's I have in the profile folder I am calling it with a button press I also have it loaded in with the screen load script.

I have a couple of mc.mcCntlGcodeExecute calls and its works fine dro's move and seems to be running ok no gui lockup.
The problem I am having when I add some more code to the module, may not be the fist time I add code but maybe the second or third then I start getting the gui lockup and even if I remove the lines on new code doesn't matter gui will still lockup the only way I have been able to fix it has been to create a new profile and reenter the code..

any suggestion as to what may cause this?.

Thanks gary
Title: Re: mach4 module help
Post by: rhtuttle on September 07, 2018, 12:05:22 PM
Make sure you haven't saved any previous modules(ie. backups) with the same function names in the modules directory.  Lua compiles all files in that directory and you can get conflicting addresses for the functions. 

Just a thought,

HTH

RT