Hello Udo,

Wednesday, May 9, 2007, 10:14:48 AM, you wrote:
UG> I see attachInterface() is called each time I open* a file and thus
UG> Gnash is quickly eating up all my memory...

I attached a simple testcase that shows the problem.

Add some printf() to attachInterface() so you can see when it gets
called.

ActionScript code in frame 3 (1-based):


--------------------------8<------------------------------------
function loadfile(fname) {
        
        file = new FileIO();
        
        if (!file.fopen(fname, "r")) 
                return null;
        
        var txt = file.fread();
        
        file.fclose();
        
        return txt;
        
}

uptime = loadfile("/proc/uptime"); // "Uptime:" text field
if (!cycles) cycles=0;
cycles++;    // "Cycles:" text field

gotoAndPlay(2);
--------------------------8<------------------------------------

Udo

Attachment: fread_test.swf
Description: application/shockwave-flash

_______________________________________________
Gnash-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnash-dev

Reply via email to