Hello again knowledgeable ones.
I have asked a few questions in the past for a panel I am building and have managed from some research trial and error, and like i said questions an information from here to get almost everything working.
I will start by saying i'm running AXIS with a GladeVCP if this makes sense as I do not feel the need to make a full screen set for my application, and am not sure if I want to get that far into as I feel I have already gone to far as it is. But anyway, just after i started this panel I found Linuxcnc was being upgraded and I was to far in to even think about rewriting to the latest version that everything is on at the moment. Also don't know if my PC this machine runs on would handle the upgrade, might have a look one day soon but for now I would just like to get the panel I'm working on to work how I would like then see where I go from there.
Where I am stuck now is I have created a individual custom full screen error message window which works great with most errors, but I have found one that did not work, which is if the requested tool is not found in the database it would error the normal way but if I click the ok button it would quit linuxcnc out with a message as attached next:
The program 'axis' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
(Details: serial 37213 error_code 3 request_code 15 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
/usr/bin/gladevcp:295: GtkWarning: GdkWindow 0x400001f unexpectedly destroyed
gtk.main()
Shutting down and cleaning up LinuxCNC...
/usr/bin/gladevcp:295: GtkWarning: GdkWindow 0x4000003 unexpectedly destroyed
gtk.main()
**** GLADE VCP ERROR: X Protocol Error: 3
/usr/bin/linuxcnc: line 550: 4527 Killed $EMCTASK -ini "$INIFILE"
I have tried using a hidden gremlin viewer in my glade file and taking gcode_error to point to a scrip in my python file which works ok and brings up my custom window but it still brings up athe standard AXIS one as well and when I close the standard one it crashes Linuxcnc like before.
Any help on stopping the standard AXIS gcode error window appearing and make it use my new window that would be great.
Thanks for any help, pointers or anything.
William.