Author Topic: Beta 2, Slick stack closing tool window  (Read 1018 times)

jporkkahtc

  • Senior Community Member
  • Posts: 1828
  • Hero Points: 177
  • Text
Beta 2, Slick stack closing tool window
« on: September 03, 2014, 08:05:37 pm »

I split the edit window into two.
I dragged the second tab to another monitor.
The new window had a left-hand pane with several tool windows - I started clicking [X] because I just want the edit window.
When I tried closing "Symbols", the following SlickStack ocurred.




---------------------------
Slick-C Error
---------------------------
Invalid object handle


file=tbclass.ex offset=1106
---------------------------
OK   
---------------------------

 
 Invalid object handle tbclass.ex 1106 tbclass:_ClassFocusTimerCallback(221)   p_window_id: 5   p_object: OI_FORM   p_name: 

Rodney

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 742
  • Hero Points: 47
Re: Beta 2, Slick stack closing tool window
« Reply #1 on: September 03, 2014, 09:29:28 pm »
Even though I cannot reproduce it (seems to be a timing thing), I believe the problem is we are not killing a timer before destroying the tool-window. I have a fix checked in for the next beta. If you are comfortable with modifying macro source, then you could try inserting a call to tbclass_maybe_kill_timer() in the on_destroy() in macros/tbclass.e. It would look like this:

Code: [Select]
void _tbclass_form.on_destroy()
{
   tbclass_maybe_kill_Timer();  // <-- HERE
   ...
   gClassFormList._deleteel(p_active_form);
   ...
}

Save and load via Macro>Load Module menu. Let me know if it seems to fix the stack.

++rodney