Macromedia Flash Server - RE: IE crashes with FP8 if you disconnect from

This is Interesting: Free IT Magazines  
Home > Archive > Macromedia Flash Server > November 2005 > RE: IE crashes with FP8 if you disconnect from





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author RE: IE crashes with FP8 if you disconnect from
Edward Chan

2005-11-22, 2:45 am

I tried the following code but couldn't get FP8 to crash:

Client-side:

function onFoo()
{
this.onResult =3D function(msg)
{
trace(msg); // I can see this trace "hello world"
nc.close();
}
}

nc =3D new NetConnection();
nc.onStatus =3D function(info)
{
trace(info.code);
if (info.code =3D=3D "NetConnection.Connect.Success")
{
nc.call("foo", new onFoo(), "hello");
}
}
nc.connect("rtmp://localhost/fp8crash");=20

Server-side:

application.onConnect =3D function(client)
{
client.foo =3D function(msg)
{
return msg + " world";
}
return true;
}

Are you able to consistently reproduce this crash?

Thanks,
Ed

> -----Original Message-----
> From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org=20
> [mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Tom Bray
> Sent: Monday, November 21, 2005 12:14 PM
> To: FlashComm Mailing List
> Subject: [FlashComm] IE crashes with FP8 if you disconnect=20
> from FCSimmediately after making an nc.call
>=20
> I submitted this as a bug, but wanted to post it to the list=20
> in case anyone encounters the problem someday:
>=20
> The following steps cause Internet Explorer 6 to crash:
>=20
> * Create a netconnection to FCS
> * Make a netconnection.call and provide a result object that=20
> handles the onResult event.
> * In the onResult event, immediately disconnect the netconnection.
>=20
> Internet Explorer will crash every time.
>=20
> I worked around the problem by using setInterval to wait one=20
> second before I disconnect the netconnection object.
>=20
> (Note that cs.Connection is just a wrapper class for my=20
> netconnection object, so anywhere you see it pretend it's just an nc)
>=20
> var result_obj =3D new Object();
> result_obj.onResult =3D function()
> {
> //this would cause IE to crash (equivalent to nc.close())=20
> //cs.Connection.closeConnection();
>=20
> //this works around the problem
> this.waitInterval =3D setInterval( this, "wait", 1000 ); }=20
> result_obj.wait =3D function() { clearInterval(=20
> this.waitInterval ); cs.Connection.closeConnection(); }
>=20
> cs.Connection.call( "reloadLocalUser", result_obj );
>=20
> =3D---------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =3D---------------------------------------------------------
>=20
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>=20


=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com