I've got a project with several *.E files.
To try to a avoid getting into a weird state, I've written 2 commands and placed them into a separate FOO.e file._command void SymTagUnload() name_info(',')
{
unload("m1.ex");
unload("m2.ex");
unload("m3.ex");
}
_command void SymTagload() name_info(',')
{
load("C:\\Users\\joe\\Documents\\Slickedit\\macros\\m3.e");
load("C:\\Users\\joe\\Documents\\Slickedit\\macros\\m2.e");
load("C:\\Users\\joe\\Documents\\Slickedit\\macros\\m1.e");
}
Now, sometimes after unloading Slick gets into a state where it gets a slick-stack everytime slick gets focus - so then I have to kill Slick with the taskman. The stack
stack[2017-01-15T21:25:18Z] Slick-C STACK TRACE ******************************
stack[2017-01-15T21:25:18Z] Created on 1/15/2017 at 21:25:18 (776 ms)
stack[2017-01-15T21:25:18Z] SlickEdit Pro Version 21.0.1.0 Copyright 1988-2016 SlickEdit Inc.
stack[2017-01-15T21:25:18Z] Edit module and type "st -f <offset>" to get the
stack[2017-01-15T21:25:18Z] run-time error position
stack[2017-01-15T21:25:18Z]
stack[2017-01-15T21:25:18Z] error code=-3015
stack[2017-01-15T21:25:18Z] Invalid argument
stack[2017-01-15T21:25:18Z]
stack[2017-01-15T21:25:18Z]files.ex 12164 call_list(_switchbuf_,,W,<empty>,-1) p_window_id: 246 p_object: OI_EDITOR p_name: edit1
stack[2017-01-15T21:25:18Z]stdprocs.ex 13633 switch_buffer(,W,<empty>,-1) p_window_id: 246 p_object: OI_EDITOR p_name: edit1
stack[2017-01-15T21:25:18Z]stdprocs.ex 13381 _on_got_focus() p_window_id: 246 p_object: OI_EDITOR p_name: edit1
In m1,m2 and m3, there are a couple of call_list() event handlers, like:
void _switchbuf_m2(_str oldbuffname, _str flag)
{
}
An apparently, call_list doesn't seem to get the memo that this macro file was unloaded.
What is the best way to got about loading and unloading *.E files during development?
Slick seems to be pretty flaky about it - I imagine there is some trick to it?