When I got it, it was because I had created an object with methods defined
on one page, then stored the object on another frame and switched pages.
The member methods of that object had gone out of scope.
For instance if you have two frames and in the bottom of the two you have
something like:
//page 1
function myPage1Object() {
this.myMemberFunction=Page1MemberFunction;
}
function Page1MemberFunction() {
}
objectInstance=new myPage1Object();
topFrame.storedObject=objectInstance;
and then you switch pages to page 2, which has something like:
//page 2
page2Object=topFrame.objectInstance;
page2Object.myMemberFunction();
you will get that error because the definition of myMemberFunction has gone
out of scope.
-Roy
-----Original Message-----
From: Alex Talbott [mailto:talbott@l...]
Sent: Tuesday, December 10, 2002 2:23 PM
To: javascript
Subject: [javascript] Re: Can't execute code from a freed script
I am getting the same error. Did you ever find out what causes it or how
to fix it?
> Hello,
>
> I'm intermittently getting the above error message. Does anyone know how
> this can occur and any steps to rectify the problem?
> Thanks