Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-17-2007, 04:41 PM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
Removing objects

Some example code below

PHP Code:
public function load(pl,id)
{
  
obj.(@pl@"_"@id) = new TStaticVar();
  
obj.(@pl@"_"@id).loadvars(some file);
}

public function 
save(pl,id)
{
  
obj.(@pl@"_"@id).savevars(some file0);
  
obj.(@pl@"_"@id).destroy();

It seemingly worked well until i noticed that obj retained dynamic vars. When I used my getinfo command on it, I found this
PHP Code:
Object Typeobj.Twinny_1 0
Static Vars0
Dynamic Vars

compared to an active one
PHP Code:
Object Typeobj.Twinny_1 TStaticVar
Static Varsinitialized,joinedclasses,name,scriptlogmissingfunctions,timeout
Dynamic Vars
somethingsecret
Any reason why the first object should retain the name of the destroyed var? I tried doing obj.clearvars(); and obj = ""; as well as the destroy. Doing obj = ""; is bad since it seems to create a TGraalVar object.

Any hints?
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:36 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.