<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/3661" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2003-02-14T12:05:09-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/3661</id>

		<entry>
		<author><name><![CDATA[Zsac]]></name></author>
		<updated>2003-02-14T12:05:09-04:00</updated>

		<published>2003-02-14T12:05:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16597#p16597</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16597#p16597"/>
		<title type="html"><![CDATA[inidb.tcl memory hog?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16597#p16597"><![CDATA[
oh yea i get ya. i did misunderstand pap in regards to the code and quote tags. i stand by what i said to pp :^/ this is a dead horse though.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2209">Zsac</a> — Fri Feb 14, 2003 12:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-02-14T05:11:53-04:00</updated>

		<published>2003-02-14T05:11:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16573#p16573</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16573#p16573"/>
		<title type="html"><![CDATA[inidb.tcl memory hog?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16573#p16573"><![CDATA[
hehe well I remembered correctly then at least <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Fri Feb 14, 2003 5:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-02-13T17:58:53-04:00</updated>

		<published>2003-02-13T17:58:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16557#p16557</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16557#p16557"/>
		<title type="html"><![CDATA[inidb.tcl memory hog?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16557#p16557"><![CDATA[
Zsac I think you misunderstood ppslim AND Papillon. In your original post, you put your code inside [ quote ] and [ /quote ]. But there is another tag, called [ code ], that lets you paste code and preserve formatting. It has nothing to do with quoting or sinking low. :)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Thu Feb 13, 2003 5:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Zsac]]></name></author>
		<updated>2003-02-13T15:31:21-04:00</updated>

		<published>2003-02-13T15:31:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16554#p16554</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16554#p16554"/>
		<title type="html"><![CDATA[inidb.tcl memory hog?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16554#p16554"><![CDATA[
oh i know how to quote properly <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">  i just don't want to sink that low. hehe. anyways. i think i fixed my troubles. the script returns out before closing its file sometimes.<br><br>thanks for offering to look at my script bit though pap<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2209">Zsac</a> — Thu Feb 13, 2003 3:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-02-13T15:20:19-04:00</updated>

		<published>2003-02-13T15:20:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16553#p16553</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16553#p16553"/>
		<title type="html"><![CDATA[inidb.tcl memory hog?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16553#p16553"><![CDATA[
hehe cool down boys <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> ... no need to continue this argument/discussion<br><br>I used that script for a while, and I had the same experience as you Zsac. When it's beeing used heavily, it makes the memoryusage go balistic... I gave up on that script ahortly after <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink">.. but I seem to remember that it was some problem with files not beeing closed properly, or not beeing losed at all.. <br>I dont have the time to look through it now (I'm on my way to the airport)... I just had to check in <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink">.. but I'll look at it when I get back<br><blockquote class="uncited"><div>i hate it when people quote on forums. excuse me for doing it.</div></blockquote>what he meant is that you can change the [ quote ] and [ /quote ] tags with [ code ] and [ /code ], this will show the tabs <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Thu Feb 13, 2003 3:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Zsac]]></name></author>
		<updated>2003-02-13T14:48:25-04:00</updated>

		<published>2003-02-13T14:48:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16550#p16550</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16550#p16550"/>
		<title type="html"><![CDATA[inidb.tcl memory hog?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16550#p16550"><![CDATA[
:^/ my smiley was supposed to put my comment in context... playfull. and you did more than point the time in your post. <br><br>"If you expect instant help, pay a support person. This isn't a IRC cvhat room, and doesn't take place in real time."<br><br>thats on the edge of flame... if you don't think thats a mild insult you need to throw some smileys in so its not taken wrong. cause to me, it looks like your telling me to stfu after i posted my little "where is everyone comment?". <br><br>and from there i didn't try to get out of hand. i just said i was suprised that i had gotten such a negative comment on this forum and that i thought you should relax. i mean... you didn't have to reply to my second post to begin with eh?<br><br>i hate it when people quote on forums. excuse me for doing it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2209">Zsac</a> — Thu Feb 13, 2003 2:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-02-13T05:58:24-04:00</updated>

		<published>2003-02-13T05:58:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16526#p16526</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16526#p16526"/>
		<title type="html"><![CDATA[inidb.tcl memory hog?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16526#p16526"><![CDATA[
I believe you have a very loose idea of life.<br><br>It my post was taken as a flame, then either you have a problem, or I am going insane (Again).<br><br>Flames go on, are usualy caused by going off topic, are 99.9% of the time are in anger and try to insult.<br><br>If I insulted you, I am sorry, however, you may need to cool it yourself, as it seems you have a short fuse.<br><br>I stated the facts. You posted, waited 6 1/2 hours, and then told us we where lame for not replying.<br><br>While I don't point the finger at you, as many people worse than this have passed through. Lame is when you expect everything for nothing.<br><br>When registering for the forum, and on the FAQ's on egghelp.org, it does state not to expect a answer, that we provide help in our spare time and are free to do as we choose. The forums software forced you to agree to this.<br><br>Enough said for now, before I do end up turning it into a flame.<br><br>FYI: The forums provides a small tags, designed for forummating posts. Just like the [ QUOTE ] tags you used to paste your code, there are also [ CODE ] tags, which will preserve the formatting.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu Feb 13, 2003 5:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Zsac]]></name></author>
		<updated>2003-02-12T19:49:20-04:00</updated>

		<published>2003-02-12T19:49:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16512#p16512</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16512#p16512"/>
		<title type="html"><![CDATA[inidb.tcl memory hog?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16512#p16512"><![CDATA[
wow. i didn't expect flames here. take a shower or something slim.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2209">Zsac</a> — Wed Feb 12, 2003 7:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-02-12T19:39:36-04:00</updated>

		<published>2003-02-12T19:39:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16511#p16511</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16511#p16511"/>
		<title type="html"><![CDATA[inidb.tcl memory hog?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16511#p16511"><![CDATA[
WHat do you expect when it's only been 6 hours 26 min.<br><br>There are loads of posts without replies, and thousands with.<br><br>Just because a question is asked, it doesn't mean we have to answer it. If we feel we want to contribute, we will, if we don't, then the post either remains unanswered, or you get replies like this.<br><br>If you expect instant help, pay a support person. This isn't a IRC cvhat room, and doesn't take place in real time.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Feb 12, 2003 7:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Zsac]]></name></author>
		<updated>2003-02-12T19:02:02-04:00</updated>

		<published>2003-02-12T19:02:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16510#p16510</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16510#p16510"/>
		<title type="html"><![CDATA[inidb.tcl memory hog?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16510#p16510"><![CDATA[
the lack of replies coupled with the amount of views.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2209">Zsac</a> — Wed Feb 12, 2003 7:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-02-12T18:12:39-04:00</updated>

		<published>2003-02-12T18:12:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16508#p16508</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16508#p16508"/>
		<title type="html"><![CDATA[inidb.tcl memory hog?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16508#p16508"><![CDATA[
Can I ask what possesed you to send that reply?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Feb 12, 2003 6:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Zsac]]></name></author>
		<updated>2003-02-12T17:37:34-04:00</updated>

		<published>2003-02-12T17:37:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16505#p16505</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16505#p16505"/>
		<title type="html"><![CDATA[inidb.tcl memory hog?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16505#p16505"><![CDATA[
lame fellas. lame. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2209">Zsac</a> — Wed Feb 12, 2003 5:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Zsac]]></name></author>
		<updated>2003-02-12T12:11:22-04:00</updated>

		<published>2003-02-12T12:11:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16484#p16484</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16484#p16484"/>
		<title type="html"><![CDATA[inidb.tcl memory hog?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16484#p16484"><![CDATA[
i realize its an old script, but i use the inidb.tcl script cause it makes file io quick and easy. anyways i have some scripts that use the inidb.tcl proc very aggressively and i find that my eggies memory usage skyrockets. i've done my best to look through the inidb.tcl script to try to help minimize its memory hogging... and the only thing i could come up with was to unset the array it uses to read and write from the file when its done. i also found that it is a horribly inneficient script... but hey.. whatever <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> i'm just ganna paste the script rather than link it.<br><br>here are the two main functions:<blockquote class="uncited"><div>proc ini_read {inifile section item} {<br>  set item [lindex $item 0]<br>  if {[lindex $inifile 0] == "" || [lindex $section 0] == "" || [lindex $item 0] == ""} { return "\;" }<br>  if {![file exists $inifile]} { return "\;" }<br>  set fileo [open $inifile r]<br>  set sect ""<br>  while {![eof $fileo]} {<br>    set rline [gets $fileo]<br>    set rline [string trim $rline]<br>    if {$rline != "" || [string index $rline 0] != "\;"} {<br>      if {[string index $rline 0] == "\[" &amp;&amp; [string index $rline [expr [string length $rline] - 1]] == "\]"} {<br>        set sect [string range $rline 1 [expr [string length $rline] - 2]]<br>      } elseif {[string tolower $sect] == [string tolower $section]} {<br>        set im [string tolower [string range $rline 0 [expr [string first = $rline] - 1]]]<br>        set va [string range $rline [expr [string first = $rline] + 1] end]<br>        set itm(${im}) $va<br>      }<br>    }<br>  }<br>  if {[array names itm [string tolower $item]] == ""} { return "\;" }<br>  set rtrn [set itm([string tolower $item])]<br>  array unset itm<br>  close $fileo<br>  return $rtrn<br>}<br><br>proc ini_write {inifile section item value} {<br>  set section [lindex [string tolower $section] 0]<br>  if {[lindex $inifile 0] == "" || [lindex $section 0] == "" || [lindex $item 0] == ""} { return 0 }<br>  if {![file exists $inifile] || [file size $inifile] == 0} {<br>    set filew [open $inifile w]<br>    puts $filew "\[$section\]"<br>    puts $filew "[string tolower $item]=$value"<br>    close $filew; return 1<br>  }<br>  set fileo [open $inifile r]<br>  set cursect ""; set sect ""<br>  while {![eof $fileo]} {<br>    set rline [string trim [gets $fileo]]<br>    if {$rline != "" || [string index $rline 0] != "\;"} {<br>      if {[string index $rline 0] == "\[" &amp;&amp; [string index $rline [expr [string length $rline] - 1]] == "\]"} {<br>        set cursect [string tolower [string range $rline 1 [expr [string length $rline] - 2]]]<br>        lappend sect $cursect<br>      } {<br>        set im [string tolower [string range $rline 0 [expr [string first = $rline] - 1]]]<br>        set vl [string range $rline [expr [string first = $rline] + 1] end]<br>        lappend [join "ini $cursect" ""]($im) $vl<br>      }<br>    }<br>  }<br>  close $fileo; unset fileo<br>  if {[lsearch $sect $section] == -1} { lappend sect $section }<br>  set [join "ini $section" ""]([string tolower $item]) $value<br>  set fileo [open $inifile w]<br>  foreach sct $sect {<br>    puts $fileo "\[$sct\]"<br>    foreach ite [array names [join "ini $sct" ""]] {<br>      set ite [lindex $ite 0]<br>      set valu [set [join "ini $sct" ""]($ite)]<br>      if {$ite != ""} {<br>        puts $fileo "$ite=[join $valu]"<br>      }<br>    }<br>    puts $fileo ""<br>  }<br>  close $fileo<br>  return 1<br>}</div></blockquote>you can see in the ini_read proc where i unset itm. any thoughts on this?<br><br>looks like the tabs aren't showing. here's the link: <br><a href="http://www.egghelp.org/files/tcl/inidb042.tgz" class="postlink">http://www.egghelp.org/files/tcl/inidb042.tgz</a><br><br>thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2209">Zsac</a> — Wed Feb 12, 2003 12:11 pm</p><hr />
]]></content>
	</entry>
	</feed>
