473,569 Members | 2,759 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error while including a new include file in ASP

I am working with an application using ASP, getting below error when i am
trying to include new asp include file.
_______________ _______________ _______________ _______________ _________
Microsoft VBScript runtime error '800a0006'
Overflow: '[number: 33994]'
_______________ _______________ _______________ _______________ ________

I am sure that there is no error in the new asp file as if i delete any
existing include file then no issues.

This is dynamic include and currently we are loading around 800 include files.

Is there any maximum limit for number of include files limitation in ASP?

Thanks in advance.

Sarath kumar

Jul 22 '05 #1
9 2989
Sarath wrote:
I am working with an application using ASP, getting below error when
i am trying to include new asp include file.
_______________ _______________ _______________ _______________ _________
Microsoft VBScript runtime error '800a0006'
Overflow: '[number: 33994]'
_______________ _______________ _______________ _______________ ________

I am sure that there is no error in the new asp file as if i delete
any existing include file then no issues.

This is dynamic include and currently we are loading around 800
include files.

Is there any maximum limit for number of include files limitation in
ASP?

No, the problem is more likely an attempt in your include file to use an
Integer when you should be using a Long. Go through the code, especially
where any multiplication or addition occurs, and explicitly cast the
variables involved in the calculations as Longs using the CLng function.

Remember, the result of the addition or multiplication of two Integers is
required to be an Integer (max 32678). If the result of the operation is
greater than 32678, you get an overflow. For example:
dim x, y, z
x=2
y=16997
'these are stored as Integer by default
on error resume next
response.write "Without CLng():<BR>"
z=x*y
if err<>0 then
response.write err.description
err.clear
else
response.write z
end if
response.write "<BR>Using CLng():<BR>"
z=clng(x) * clng(y)
if err<>0 then
response.write err.description
err.clear
else
response.write z
end if

In order to guarantee that vbscript reserves enough space for the result of
the calculation, you need to cast the operands as Longs before performing
the operation. This forces vbscript to reserve space in memory for a Long
value instead of an Integer.

HTH,
Bob Barrows

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 22 '05 #2
"Sarath" wrote in message
news:66******** *************** ***********@mic rosoft.com...
:I am working with an application using ASP, getting below error when i am
: trying to include new asp include file.
: _______________ _______________ _______________ _______________ _________
: Microsoft VBScript runtime error '800a0006'
: Overflow: '[number: 33994]'
: _______________ _______________ _______________ _______________ ________
:
: I am sure that there is no error in the new asp file as if i delete any
: existing include file then no issues.
:
: This is dynamic include and currently we are loading around 800 include
files.
:
: Is there any maximum limit for number of include files limitation in ASP?

Did it report a line number? See if this helps:

http://support.jodohost.com/showthread.php?t=1694

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
Jul 22 '05 #3
Thanks for quick response.
I am sure that there is no error in the new asp file as if i delete
any existing include file then no issues.

More over there are no arithmetic operations in the include files.

Thanks,
Sarath

"Bob Barrows [MVP]" wrote:
Sarath wrote:
I am working with an application using ASP, getting below error when
i am trying to include new asp include file.
_______________ _______________ _______________ _______________ _________
Microsoft VBScript runtime error '800a0006'
Overflow: '[number: 33994]'
_______________ _______________ _______________ _______________ ________

I am sure that there is no error in the new asp file as if i delete
any existing include file then no issues.

This is dynamic include and currently we are loading around 800
include files.

Is there any maximum limit for number of include files limitation in
ASP?

No, the problem is more likely an attempt in your include file to use an
Integer when you should be using a Long. Go through the code, especially
where any multiplication or addition occurs, and explicitly cast the
variables involved in the calculations as Longs using the CLng function.

Remember, the result of the addition or multiplication of two Integers is
required to be an Integer (max 32678). If the result of the operation is
greater than 32678, you get an overflow. For example:
dim x, y, z
x=2
y=16997
'these are stored as Integer by default
on error resume next
response.write "Without CLng():<BR>"
z=x*y
if err<>0 then
response.write err.description
err.clear
else
response.write z
end if
response.write "<BR>Using CLng():<BR>"
z=clng(x) * clng(y)
if err<>0 then
response.write err.description
err.clear
else
response.write z
end if

In order to guarantee that vbscript reserves enough space for the result of
the calculation, you need to cast the operands as Longs before performing
the operation. This forces vbscript to reserve space in memory for a Long
value instead of an Integer.

HTH,
Bob Barrows

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

Jul 22 '05 #4
"Bob Barrows [MVP]" wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
: Remember, the result of the addition or multiplication of two Integers is
: required to be an Integer (max 32678).

I thought a 16-bit integer signed value was between the range of -32768 and
+32767, unsigned 0-65535.
Jes' sayin'... (O:=

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
Jul 22 '05 #5
Did I say 32678 ...? My bad.

Roland Hall wrote:
"Bob Barrows [MVP]" wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Remember, the result of the addition or multiplication of two
Integers is required to be an Integer (max 32678).


I thought a 16-bit integer signed value was between the range of
-32768 and +32767, unsigned 0-65535.
Jes' sayin'... (O:=

--
Roland Hall
/* This information is distributed in the hope that it will be
useful, but without any warranty; without even the implied warranty
of merchantability or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation -
http://msdn.microsoft.com/downloads/list/webdev.asp MSDN Library -
http://msdn.microsoft.com/library/default.asp


--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 22 '05 #6
I don't think vbscript can supply an unsigned 16-bit integer ...

Roland Hall wrote:
"Bob Barrows [MVP]" wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Remember, the result of the addition or multiplication of two
Integers is required to be an Integer (max 32678).


I thought a 16-bit integer signed value was between the range of
-32768 and +32767, unsigned 0-65535.
Jes' sayin'... (O:=

--
Roland Hall
/* This information is distributed in the hope that it will be
useful, but without any warranty; without even the implied warranty
of merchantability or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation -
http://msdn.microsoft.com/downloads/list/webdev.asp MSDN Library -
http://msdn.microsoft.com/library/default.asp


--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 22 '05 #7
Yes, you already said erasing all the include files allows the new asp page
to run without error. That only means that there is no error in the new asp
file. That does not mean that the data from the new asp file is not causing
an overflow in one of the include files that is using its data.

You need to do some intensive debugging: First, find out which include file
causes the error. This means commenting out all calls to procedures in the
include files in the new asp file (allowing you to add all the include files
and run the new asp file without error). Then, uncomment the calls to the
included procedures until you find the one that causes the error.

Unfortunately, there are no shortcuts.

Bob Barrows
Sarath wrote:
Thanks for quick response.
I am sure that there is no error in the new asp file as if i delete
any existing include file then no issues.

More over there are no arithmetic operations in the include files.

Thanks,
Sarath

"Bob Barrows [MVP]" wrote:
Sarath wrote:
I am working with an application using ASP, getting below error when
i am trying to include new asp include file.
_______________ _______________ _______________ _______________ _________
Microsoft VBScript runtime error '800a0006'
Overflow: '[number: 33994]'
_______________ _______________ _______________ _______________ ________

I am sure that there is no error in the new asp file as if i delete
any existing include file then no issues.

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 22 '05 #8
"Bob Barrows [MVP]" wrote in message
news:ue******** ******@TK2MSFTN GP09.phx.gbl...
:I don't think vbscript can supply an unsigned 16-bit integer ...

I have no need for one anyway. (O:=

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
Jul 22 '05 #9
"Bob Barrows [MVP]" wrote in message
news:eo******** ******@TK2MSFTN GP10.phx.gbl...
: Did I say 32678 ...? My bad.

Don't worry about it. I read it as 32768 and didn't realize it until now.
I guess I was transposing. <plug>I spent an extra hour this morning working
out a solution for FF because it's easier than IE which was already
working.</plug> I also found what appears to be another 'standards' oops
but don't say anything.

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
Jul 22 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

67
4198
by: Steven T. Hatton | last post by:
Some people have suggested the desire for code completion and refined edit-time error detection are an indication of incompetence on the part of the programmer who wants such features. Unfortunately these ad hominem rhetorts are frequently introduced into purely technical discussions on the feasibility of supporting such functionality in C++....
6
4726
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much appreciated. Thanks in advance
2
4966
by: Vittal | last post by:
Hello All, I am trying to compile my application on Red Hat Linux 8 against gcc 3.2.2. Very first file in application is failing to compile. I tried compiling my application on Linux 7.2 against gcc 3.1 and it got build without any problems. However on against gcc 3.2.2 I hitting this error:
20
7881
by: TTroy | last post by:
Hello, I have found some peculiar behaviour in the fgets runtime library function for my compiler/OS/platform (Dev C++/XP/P4) - making a C console program (which runs in a CMD.exe shell). The standard says about fgets: synopsis #include <stdio.h> char *fgets(char *s, int n, FILE *stream);
10
9495
by: Gary Hughes | last post by:
I'm getting the following error when attempting to link a managed C++ dll. I can't find any reference to these errors with google. Can anyone help? I've included the class definition causing the errors below. Everything compiles fine and all the types are defined, it appears that the template type itga::order_collection::iterator is...
13
2460
by: a.zeevi | last post by:
free() multiple allocation error in C ==================================== Hi! I have written a program in C on PC with Windows 2000 in a Visual C environment. I have an error in freeing multiple allocation as follows: 1. I allocated an array of pointer. 2. I Read line by line from a text file. 3. I allocated memory for the read line.
7
1876
by: Alden Pierre | last post by:
Hello, I'm trying to create my own user define container, but I'm having a little hard time figuring out why is my class considered undefined by my compiler. Here is the following code. // file pos_neg_array.h #ifndef FILE_POS_NEG_ARRAY #define FILE_POS_NEG_ARRAY
4
1756
by: Miroslaw Makowiecki | last post by:
I have yourself c++ compiler about version of 4.3 it installed in a catalog:/usr/lib/gcc-snapshot in system Debian. libc6 version 2.6-5 For compilation of file about conntent,this below it appear following error: katusis@localhost:~$ /usr/lib/gcc-snapshot/bin/c++ -Wall tytan.cpp In file included from tytan.cpp:10:...
10
6944
by: happyse27 | last post by:
Hi All, I got this apache errors(see section A1 and A2 below) when I used a html(see section b below) to activate acctman.pl(see section c below). Section D below is part of the configuration of section c. Not sure where went wrong as the web page displayed internal server error. Also, what is the error 543? and error 2114....
0
7698
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7924
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7673
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7970
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5513
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
937
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.