var/list/nominations = list()
var/savefile/NOM
world/New()
..()
var/list/tmplist[0]
NOM = new/savefile("NOM.sav")
while(!NOM.Lock(5)) sleep(0)
NOM >> tmplist
NOM.Unlock()
if(!tmplist)
nominations = list()
else
nominations = tmplist
world/Del()
..()
NOM = new/savefile("NOM.sav")
while(!NOM.Lock(5)) sleep(0)
NOM << nominations
NOM.Unlock()
del(NOM)
// Also I use htmllib to process forms.
ProcessForm()
var/nomination/nomObject = new()
nomObject.LoadData(gamename, author, gametype)
if(nomObject.Check())
nominations += nomObject
usr << browse({"Nomination submitted!"})
else
usr << browse({"[gamename] All ready submited to [gametype]."})
// That is where I am adding my nomination object to the nominations list. (ABOVE)
// This is where I display the list of nominations
if("nomlist")
display={"<h3>Current Nominations</h3><br>
<table><tr><td>Name of Nomination</td><td>Author of Nomination</td>
<td>Category of Nomination</td></tr>"}
var/nomination/nomObject
for(nomObject in nominations)
nomObject.FormatDisplay(display)
display+="![nominations.len]!</table>"
Problem description:
When ever I load the page that list the nominations. I just have a blank page, the nominations.len = 0 as well. I don't seem to know what is wrong. Is it my savefile code?
In fact, I can do so with my server. All I have to do is run the Apache benchmark program. I can then send a lot of requests to your server (perhaps 5000 per second?) and lots of DreamDaemon processes would run at the same time. Multiply by a lot and you get a system lockup. :[
So, uh, yeah. Consider using hub://Dantom.DB. For your question, I don't know. Sorry.