473,396 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 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 6005
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: lawrence | last post by:
Given a bunch of mixes variables, I'm in a situation where I can't know what type they are. Can I use unset to kill an object? unset($object); Can I use unset to kill a pointer to an open...
7
by: Bo Peng | last post by:
Dear Python group: I am planning on an application that involves several complicated C++ classes. Basically, there will be one or two big data objects and some "action" objects that can act on...
4
by: paul dallaire | last post by:
HI! I want to execute a link witch is in JavaScript, How do we execute this in asp server side if possible? Basically I don't want anyone to see this link in the code view. this is the link...
26
by: Dave Hammond | last post by:
In document "A.html" I have defined a function and within the document body have included an IFRAME element who's source is document "B.html". In document "B.html" I am trying to call the function...
5
by: Thor W Hammer | last post by:
Hello all, Is it possible to find out if a script is freed? This is actual when having a pointer to a function and should determine if it is freed so we don't call it and get error.. TWH
16
by: Pedro Graca | last post by:
I have a file with different ways to write numbers ---- 8< (cut) -------- 0: zero, zilch,, nada, ,,,, empty , void, oh 1: one 7: seven 2: two, too ---- >8 -------------- ...
9
by: sohan | last post by:
Hi, I want to know how to connect and execute a db2 query from inside a UNIX shell script. Details: We have a unix shell script. We need to execute multiple db2 sql queries from this shell...
8
by: M.L. | last post by:
Hello. I created a form using JS validation with the form tag as follows: <form name="form1" action="dynaform.php" method="post" onsubmit="return pvg_sub();"> The js validation script sends...
2
by: LayneMitch via WebmasterKB.com | last post by:
Hello. I posted this earlier with the full code of the JavaScript file I'm trying to open. I'm posting this again, because the file is not the problem. I seem to be having a 'windows' problem...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.