Jump to content


Photo

Bug In Default.xbe


  • Please log in to reply
2 replies to this topic

#1 Mad3 Max3

Mad3 Max3

    X-S Enthusiast

  • Members
  • 14 posts
  • Location:Sweden
  • Interests:Bodybuilding,Karate,Aikido,Xbox,Gaming
  • Xbox Version:v1.6

Posted 20 February 2005 - 04:02 PM

Found a bug or a miss in the default/default.xap
In
CODE
function initialize()

there is a
CODE
var IniFile = new Settings;

initation but there is missing a
CODE
IniFile.CloseIniFile();

If you don't close your files you'll get a memoryleak and that may result into errors!

Edited by Mad3 Max3, 20 February 2005 - 04:03 PM.


#2 SpIdErXeN

SpIdErXeN

    X-S Senior Member

  • Members
  • PipPip
  • 270 posts

Posted 20 February 2005 - 04:26 PM

Hi Mad, I searched the default.xap, but there are 5 or 6 references to

var IniFile = new Settings;

can you post the sections of the default.xap that needs editing, because i think i may have 2 section entries that may not have IniFile.CloseIniFile(); in them. Please give us n00bs a helping hand and show us how you fixed it. Thanks!

beerchug.gif

#3 Mad3 Max3

Mad3 Max3

    X-S Enthusiast

  • Members
  • 14 posts
  • Location:Sweden
  • Interests:Bodybuilding,Karate,Aikido,Xbox,Gaming
  • Xbox Version:v1.6

Posted 20 February 2005 - 05:57 PM

QUOTE(SpIdErXeN @ Feb 20 2005, 04:32 PM)
Hi Mad, I searched the default.xap, but there are 5 or 6 references to

var IniFile = new Settings;

can you post the sections of the default.xap that needs editing, because i think i may have 2 section entries that may not have IniFile.CloseIniFile(); in them.  Please give us n00bs a helping hand and show us how you fixed it.  Thanks!

beerchug.gif

View Post



Find this in the default.xap
CODE

function initialize()
{
       musicOnBoot = false;
       currentAlbum = 0;
       currentTrack = 0;
       
       var IniFile = new Settings; //this is the one I mean!
       IniFile.SetIniSection( "Dashboard Settings" );
       dashStyle = IniFile.GetIniValue( "Dash Style" );
       skinName = IniFile.GetIniValue( "Current Skin" );
       theCellWallMesh.url = "A:/skins/" + skinName + "/cellwall.xm";

Put this line
CODE

IniFile.CloseIniFile(); //Closing the INI

below
CODE

theCellWallMesh.url = "A:/skins/" + skinName + "/cellwall.xm";





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users