By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,677 Members | 1,069 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,677 IT Pros & Developers. It's quick & easy.

can't execute code from a freed script..

P: n/a
hi,

I keep getting this error, "can't execute code from a freed script" when
I go to another page (i.e., upon UNLOAD..)

this error occurs only in IE, not FF (what a surprise.....;)

what is this error, pls.. it's for a site I've been working on for a
few weeks now, started getting this error just a few days ago.. (I
looked this up, saw that often this error has to do with frames, but my
site uses no frames..)

thank you very much...
Jan 31 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
VK
On Jan 31, 7:35 pm, maya <maya778...@yahoo.comwrote:
hi,

I keep getting this error, "can't execute code from a freed script" when
I go to another page (i.e., upon UNLOAD..)

this error occurs only in IE, not FF (what a surprise.....;)

what is this error, pls.. it's for a site I've been working on for a
few weeks now, started getting this error just a few days ago.. (I
looked this up, saw that often this error has to do with frames, but my
site uses no frames..)
If you are not using frames then you are using iframes or popups. My
best guess would be small window popup where you are creating new
objects using constructors on the main page - or vice versa. At some
point you are reloading either window and voila.

Basically "Cannot execute freed script" means that because of a
programming mistake some object holds a valid reference to invalidated
(freed to garbage collect) object. In your case it is valid .prototype
and .constructor data in object instance referring to invalid objects
in another window which are not there any more. On a bigger scale it
is a particular case of "orphaned script" phenomenon.

I am still not 100% sure how does Gecko handles this problem. AFAICT
it somehow counts all references across all Globals so doesn't release
objects for GC until the last gone everywhere.
Jan 31 '08 #2

P: n/a
On Jan 31, 11:56*am, VK <schools_r...@yahoo.comwrote:
On Jan 31, 7:35 pm, maya <maya778...@yahoo.comwrote:
hi,
I keep getting this error, "can't execute code from afreedscript" when
I go to another page (i.e., upon UNLOAD..)
this error occurs only in IE, not FF (what a surprise.....;)
what is this error, pls.. *it's for a site I've been working on for a
few weeks now, started getting this error just a few days ago.. (I
looked this up, saw that often this error has to do with frames, but my
site uses no frames..)

If you are not using frames then you are using iframes or popups. My
best guess would be small window popup where you are creating new
objects using constructors on the main page - or vice versa. At some
point you are reloading either window and voila.

Basically "Cannot executefreedscript" means that because of a
programming mistake some object holds a valid reference to invalidated
(freedto garbage collect) object. In your case it is valid .prototype
and .constructor data in object instance referring to invalid objects
in another window which are not there any more. On a bigger scale it
is a particular case of "orphanedscript" phenomenon.

I am still not 100% sure how does Gecko handles this problem. AFAICT
it somehow counts all references across all Globals so doesn't release
objects for GC until the last gone everywhere.
no pop-ups... no iframes.. am stumped here..... :(
(again, this error occurs only in IE, not FF..)

thank you....


Feb 25 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.