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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Anaristos
Sorcerer


Joined: 17 Jul 2007
Posts: 821
Location: California

PostPosted: Tue Dec 18, 2007 6:37 am   

CMUD 2.18 freezing
 
I've been trying to create a window with #MAKEWINDOW (this will be another topic). After closing the window and deleting the setting I continue using the editor. The editor will suddenly freeze and since CMUD is running on the same task (or vice versa) it also freezes. There is no way to get any data on this as all interaction with the program ceases. Can't close the CMUD window or the editor's. The only thing that can be done is to make the Task Manager force a close on the program and restart. I am really hoping that this is caused by the editor, otherwise it could only mean that the freezing is a random CMUD event which make the situation worse because it would mean the platform itself would not be stable.
Reply with quote
Anaristos
Sorcerer


Joined: 17 Jul 2007
Posts: 821
Location: California

PostPosted: Tue Dec 18, 2007 8:11 am   CMUD 2.18 freezing (continued)
 
OK, the following code will freeze the platform 100% of the time.

I have a stringlist called MissedList and I want to delete its contents while preserving the container.
Code:

#ALIAS delspells {$count = %numitems(@MissedList);
#WHILE ($count > 0) {#DELNITEM MissedList $count;#ADD $count -1}}


The execution of delspell will cause the platform to freeze. Take note that if I enter the #DELNITEM command on the command line, it works fine.
Reply with quote
Rorso
Wizard


Joined: 14 Oct 2000
Posts: 1368

PostPosted: Tue Dec 18, 2007 10:10 am   
 
Seems to work for me. I entered the script, and added a few elements to MissedList and then ran delspells from command line.

Open cMUD and hit escape and test the script in that new clean temporary session. Does that work?

Edit: Another method to clear the list is just to do:
#ALIAS delspells {MissedList = ""}

It'll empty the list, but not remove the variable MissedList.
Reply with quote
Anaristos
Sorcerer


Joined: 17 Jul 2007
Posts: 821
Location: California

PostPosted: Tue Dec 18, 2007 12:45 pm   
 
Well, I just tried it again. It froze the platform just as before. Try it with just one element which has been the case for me each time.
_________________
Sic itur ad astra.
Reply with quote
Rorso
Wizard


Joined: 14 Oct 2000
Posts: 1368

PostPosted: Tue Dec 18, 2007 1:48 pm   
 
Anaristos wrote:
Well, I just tried it again. It froze the platform just as before. Try it with just one element which has been the case for me each time.

The script I used:
<window name="untitled" host="0" usesession="false">
<packages>untitled</packages>
<alias name="delspells" id="1">
<value>$count = %numitems(@MissedList);
#WHILE ($count > 0) {#DELNITEM MissedList $count;#ADD $count -1}</value>
</alias>
<var name="MissedList" type="StringList" id="2">abc</var>
</window>

Then I ran alias delspells from command line. The element 'abc' was removed from the list. No freeze.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion 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