Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: gorf23 on December 31, 2022, 10:23:14 AM

Title: Help Strange Macro Problem seems to load at startup
Post by: gorf23 on December 31, 2022, 10:23:14 AM
I was working on a macro for a wxlua dialog i ran the macro and the dialog box and buttons appaired on screen and seemed to work ok.

But wouldn't close on exit, now every time i boot mach4 the dialog box loads and displays on screen but my screen is a blank page no mach4 screen set displayed..
and i still can't close the dialog box and when i exit mach4 it crashes..

any suggestion's other than starting over, i can't get back into screen edit to copy any of my newer scripts, i would like not to have to rewrite them..

Thanks gary 
Title: Re: Help Strange Macro Problem seems to load at startup
Post by: DazTheGas on December 31, 2022, 11:55:13 AM
Run "Mach4GUI.exe  /e" from the command line, this should load you direct into the editor after selecting your profile.

DazTheGas
Title: Re: Help Strange Macro Problem seems to load at startup
Post by: gorf23 on January 02, 2023, 05:59:19 PM
Thanks DazTheGas

Got it working for now, till i break it again :)
Title: Re: Help Strange Macro Problem seems to load at startup
Post by: Bill_O on January 02, 2023, 06:01:48 PM
When I am doing things with the Mach I make a copy of the folder before I change anything.
Then when I mess up I just delete the Mach4 folder and rename the copy.
Title: Re: Help Strange Macro Problem seems to load at startup
Post by: gorf23 on January 04, 2023, 07:16:24 PM
I guess I ran into another glitch..

I have the dialog working fine as it seems it's in a m code file m1005

if I place the m1005 in side a g code file it seems to run fine dialog displays good and i can run the g code file over and over and no error's

but now when I close mach4 and exit mach4, it seems to crash wants to generate a crash error file every time i close after running the dialog though g code..
It doesn't crash if I have run it with the MDI

is it not allowed to run a Lua wx dialog being called from a g code file?