Errors and crashes when creator exits after running a script
C
Craig
started a topic Thursday, Nov 17, 2016
Original Post by: chrisell Thu Oct 7 17:42:41 2010
I've got a scripting problem that I'm not sure how to resolve. The script I've written runs cleanly when in use, but whenever I've used it, I get a couple of error dialogs as Creator is closing.
Note the errors never come up when creator is running, only when it's closing down.
The first one is DuumyGLWnd: mgfltx.exe - Application error. When I OK that one, I then get a pure virtual function call error (R6025). When I OK that one I get another DummyGLWnd error. Only when I OK that third error is Creator finally shut down.
The script is designed to parse a model and turn off sections of it based on some of our custom attribution. eg if we have a model with 20 different colour schemes in it, only make one of them visible without having to hunt through the hierarchy and do it manually.
Any ideas ?
#!/usr/local/bin/python
# Set up hex masks for status box
MMBX_OK = 0x00000001
MMBX_OKCANCEL = 0x00000002
MMBX_YESNO = 0x00000004
MMBX_YESNOCANCEL = 0x00000008
MMBX_STATUS = 0x00000100
MMBX_WARNING = 0x00000200
MMBX_ERROR = 0x00000400
MMBX_QUESTION = 0x00000800
# These lines tell the script where to find our custom attributes by byte offset.
Craig
I've got a scripting problem that I'm not sure how to resolve. The script I've written runs cleanly when in use, but whenever I've used it, I get a couple of error dialogs as Creator is closing.
Note the errors never come up when creator is running, only when it's closing down.
The first one is DuumyGLWnd: mgfltx.exe - Application error. When I OK that one, I then get a pure virtual function call error (R6025). When I OK that one I get another DummyGLWnd error. Only when I OK that third error is Creator finally shut down.
The script is designed to parse a model and turn off sections of it based on some of our custom attribution. eg if we have a model with 20 different colour schemes in it, only make one of them visible without having to hunt through the hierarchy and do it manually.
Any ideas ?