View Single Post
  #1  
Old 10-11-2010, 06:25 AM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
Temporary TStaticVars & Classes

Serverside temporary TStaticVars are not being cleared from memory apparently.

Example:
PHP Code:
function myFunc() {
  
temp.= new TStaticVar();
  
temp.v.join("myclass");
  
sleep(0.1);
  return 
temp.v;

After this function is called, the temp.v stays in memory and doesn't appear to get destroyed. This is a big problem for me.

This also shows an example of my other issue. After you join something to a class, you have to sleep to wait for it to load. It would be very very nice if it would stop the stream to let the class load, since I'm sure it loads faster than 0.1 seconds.
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”
Reply With Quote