cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Arbortext suddenly crashes!

pzorrilla
1-Newbie

Arbortext suddenly crashes!

Hello everyone!

Ok, so I'm having a big problem and I don't have any idea why is that?
It happens that when I'm testing some ACL scripts that I created
suddenly my Arbortext ends 😞 And I was wondering if there's some log
file where maybe I could see what's happening, because I have not any
idea what's the problem/bug/issue.

Please, if anybody could help me I would really appreciate it!

As always thank you so much for your time and support, since all your
suggestions save me every day 😄

Best Regards.
Paulette Zorrilla
2 REPLIES 2

Hello again! 😃



I've checked my code and I'm pretty sure is because I'm using thewindow_destroy() command, but I don't know why is destroying the main window since the parameter that I send is one corresponding to a customized window created by me. however, does anybody know if I can identify if the window that I'm trying to destroy is not the main window and avoid this error?!



Thank you very much!



Paulette Zorrilla

Hi Paulette--

You can use the window_class() function to check the type of window before calling window_destroy() on it, to prevent your code from completely closing the application, something like this:

...
if (window_class(win)!="edit") {
window_destroy(win);
}
...

When working with custom dialogs, be sure not to get the dialog window confused with the main editor window, and correspondingly, the XUI document for your custom dialog vs. the document currently open in the Editor window.

As for debugging, it can be helpful to insert response() function calls at key points in the function that is failing. That can tell you how far the code is getting before it fails.

--Clay
Announcements

Top Tags