Help - Search - Members - Calendar
Full Version: Bug In Default.xbe
Scenyx Entertainment Community > Xbox1 Forums > Dashboard Forums > Official Team UIX Forums > User.Interface.X (UIX) Code
Mad3 Max3
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!
SpIdErXeN
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
Mad3 Max3
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
*



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";
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.