| Tom Bray 2005-11-23, 5:45 pm |
| OK, here's the test app for reproducing this IE crash. We use a
LocalConnection object to log our traces while our apps are running in the
browser and the combination of using that LocalConnection object and
disconnecting the NetConnection after the onResult of an nc.call causes IE
to crash.
FCS is running on the same machine as the client SWF, but I'm using my
actual domain name instead of localhost to get the crash to happen.
You might have to reload the page containing the SWF five times or so to
make IE crash. In our actual app, this is not the case -- it crashes every
time.
Be sure to change the connection parameters below (don't use localhost)
//CLIENT SIDE
_global.localConn =3D new LocalConnection();
_global.log =3D function( _str )
{
_root.out_txt.text +=3D _str + "\n";
localConn.send( "aaaaaaaaaaaaaaaa", "logMessage", "foo" );
}
this._nc =3D new NetConnection();
this._nc.owner =3D this;
this._nc.onStatus =3D function( info )
{
log( info.code );
var result_obj =3D new Object();
result_obj.owner =3D this;
result_obj.onResult =3D function()
{
log( "result" );
this.owner.close();
}
this.call( "foo", result_obj, "test" );
}
this._nc.connect( "rtmp://www.doNotUserLocalHostToTest.com/fp8crash" );
//SERVER SIDE
application.onConnect =3D function(client)
{
application.acceptConnection( client );
}
Client.prototype.foo =3D function(msg)
{
trace( msg );
return true;
}
//HTML
<html>
<head>
</head>
<body bgcolor=3D"#ffffff">
<object classid=3D"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=3D"
http://fpdownload.macromedia.com/pu...lash.cab#versi=
on=3D6,0,0,0"
width=3D"550" height=3D"400" id=3D"test" align=3D"middle">
<param name=3D"allowScriptAccess" value=3D"sameDomain" />
<param name=3D"movie" value=3D"test.swf" /><param name=3D"quality" value=3D=
"high"
/><param name=3D"bgcolor" value=3D"#ffffff" /><embed src=3D"test.swf"
quality=3D"high" bgcolor=3D"#ffffff" width=3D"550" height=3D"400" name=3D"t=
est"
align=3D"middle" allowScriptAccess=3D"sameDomain"
type=3D"application/x-shockwave-flash" pluginspage=3D"
http://www.macromedia.com/go/getflashplayer" />
</object>
</body>
</html>
=-----------------------------------------------------------
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
|