471,887 Members | 1,268 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,887 software developers and data experts.

can't execute code from a freed script..

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
2 5847
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
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.

Similar topics

7 posts views Thread by lawrence | last post: by
5 posts views Thread by Thor W Hammer | last post: by
16 posts views Thread by Pedro Graca | last post: by
2 posts views Thread by LayneMitch via WebmasterKB.com | last post: by
reply views Thread by zermasroor | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.