Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Fri Feb 05, 2010 9:58 pm   

"ComPanel has no parent" crash
 
This one is driving me CRAZY!!! I'm literally ready to throw my computer out the window.

This error happens in 3.13 if you have a script that captures text to a window. Then click the X button to close the capture window, then run the script again. When CMUD tries to re-open the closed capture window, the "ComPanel has no parent" error often occurs.

What is driving me crazy on this one is that I am TRAPPING this error, but the Delphi try/except clause doesn't seem to be working. The code looks like this:
Code:

try
  DockWindow(Windowname)
except
end;

The DockWindow is throwing the exception because the ComPanel (the command line) is normally docked to the command line at the bottom of the window. But during the docking process, the toolbar containing the command line doesn't exist yet, so the command line doesn't have any Parent (normally the Parent is the toolbar). So yes, I KNOW that it is going to raise an exception. But why doesn't the above code trap the exception and continue??

It looks like the Window Docking code is doing something kludgy with Window messages during the docking process. And somehow this is bypassing the exception trapping.

This error didn't happen in 3.12. And I can't find any changes to the docking system made since then. I'm going to go bald pulling my hair out!
Reply with quote
Taz
GURU


Joined: 28 Sep 2000
Posts: 1395
Location: United Kingdom

PostPosted: Mon Feb 08, 2010 6:08 pm   
 
Did you resolve it?
_________________
Taz :)
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Mon Feb 08, 2010 7:04 pm   
 
This was resolved by getting rid of the dockable toolbar. With the fixed toolbar in 3.14, none of these kind of weird docking bugs will occur with the command line.

I still never figured out why the try/except wouldn't trap the error though...I just gave up on it.

The change in behavior was definitely related to the latest update of the Developer Express toolbar system though.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net