469,950 Members | 2,389 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,950 developers. It's quick & easy.

Re: a trappable error (c0000005)

Hi all,

I am getting the following error randomly, I cannot expalin the exact
scenario

Active Server Pages error 'ASP 0115'
Unexpected error
/wmweb/Save.Asp
A trappable error (C0000005) occurred in an external object. The
script cannot continue running.
Appreciated your help on this.

The Code :

<%@ CodePage=65001 Language=JavaScript %>

<%
var url = String(Request.ServerVariables("HTTP_REFERER"));
var orig_url = String(Request.ServerVariables("HTTP_REFERER"));

var session = "<session id='new'></session><errors></errors>";
var requator = Server.CreateObject("Requator.clsDoItAll");

if (requator.Init(session))
{
var retval = requator.OnStart();
if (retval == "OK")
{
if (url.indexOf("action=detail") 0)
{
url = url.replace(/requator.asp/i,"Detail.asp");
url = url.replace(/&action=detail/i,"");
}
if (url.indexOf("action=add") 0)
{
url = url.replace(/requator.asp/i,"Add.asp");
url = url.replace(/&action=add/i,"");
}
if (url.indexOf("action=copy") 0)
{
url = url.replace(/requator.asp/i,"Copy.asp");
url = url.replace(/&action=copy/i,"");
}
if ((url.indexOf("action=Maintenance") 0) ||
(url.indexOf("action=maintenance") 0))
{
url = url.replace(/requator.asp/i,"Maintenance.asp");
url = url.replace(/&action=maintenance/i,"");
}
url += "&save=true";
%>
<script type='text/javascript'>
var orig_url = "<%=orig_url%>";
var url = "<%=url%>";
top.fraBottom.fraRight.location.replace(url);
</script>
<%
}
}
%>
Thanks,San.

Jun 27 '08 #1
1 11010
Active Server Pages error 'ASP 0115'
Unexpected error
/wmweb/Save.Asp
A trappable error (C0000005) occurred in an external object. The
script cannot continue running.
Unfortunately, error number C0000005 is simply the catch-all "memory fault"
error. It means that the program tried to access non-existent or
non-accessible memory, most typically address 0, but any invalid memory
address will give the error.

For example, in C/C++ COM code, it will commonly arise because some pointer
didn't get initialized properly and so is stil zero.

The only clue you have there is the "in an EXTERNAL object" in the message.
So almost surely the error is in that "Requator.clsDoItAll" object. If you
don't have source code for that and/or don't know how to debug it, then I
don't think you are going to find this bug.

Maybe you can report it to the person from whom you got the object and they
can find it.
Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by TNGgroup | last post: by
1 post views Thread by Ryan | last post: by
7 posts views Thread by Dave Mandy | last post: by
11 posts views Thread by Howard Kaikow | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.