这是什么类型的错误? [英] What type of error is this ?

查看:54
本文介绍了这是什么类型的错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好


感谢所有回复我日期为16/10/2003的问题的人,同样的

主题......


在所有回复中,我得到的每个人都在说我正在使用cint()等。但是我

我没有使用任何转换方法。


我正在使用的是什么。


我在global.asa中定义了一个可用的应用程序,其中包含服务器

地址和我正在使用的变量下面。

src =

"<%=应用程序(" Server")%> / gimages / Media_Temp / Templat3 / images / template3_r19

_c41.jpg"


我在同一页面中使用了这么多次相同的变量。


我试图添加变量

mid。

如果我没有使用此变量并将服务器地址作为硬编码

没有错误。


这件事给我一个真正的大问题......

错误如下。

错误类型:

Microsoft VBScript运行时(0x800A0006)

溢出:''[编号:33362]''

亲切的问候

Fayyaz

---------------------------------上一页

text -------------------------------------------


我敢打赌你一美元。您是否正在使用一个期望整数为

的函数作为参数?如何显示您的相关代码,我们将更容易理解

更容易。


雷在工作


MFA < MFA @ MFA>在留言中写道

新闻:%2 **************** @ TK2MSFTNGP09.phx.gbl ...

谢谢你你的回复。

不,我没有使用该页面中的任何变量进行转换..

" Ray at<%= sLocation%>" < myfirstname at lane34 dot com>在消息中写道
新闻:ut ************** @ TK2MSFTNGP10.phx.gbl ...


" MFA" < MFA @ MFA>在消息中写道
新闻:ec ************** @ TK2MSFTNGP10.phx.gbl ...

我在下面收到此错误。 (它不是整数相关或变量


相关的

错误)



是什么让你这么说?


超过32,767(或低于-32,768)。

Ray at work




错误类型:

Microsoft VBScript运行时(0x800A0006)

溢出:''[编号:33362]''

解决方案

除非您可以显示发生错误的实际行或显示您的代码的所有

否一个人可以帮到你。


我建议你把Application(Server)的值放到

本地字符串变量,如果你不止一次使用它。


-

Mark Schupp

开发主管

诚信在线学习
www.ielearning.com

MFA < MFA @ MFA>在消息中写道

新闻:OT ************** @ tk2msftngp13.phx.gbl ...

大家好
感谢所有回复我日期为16/10/2003的问题的人都有相同的
主题..

在所有回复中我得到的每一个人都在说我正在使用cint()等但是我没有使用任何转换方法。

我在使用什么。

我在global.asa中定义了一个可用的应用程序包含服务器
地址和我正在使用的变量如下。
src =

"<%= Application(" Server")%> / gimages / Media_Temp / templat3 / images / template3_r19 _c41.jpg"

我在同一页面中使用了这么多次相同的变量。

我试图逐个添加变量,错误是来到
mid。
如果我没有使用这个变量,并且服务器地址为硬b $ b编码,则没有错误。

这件事给了我是一个真正的大问题...

错误如下。 Microsoft VBScript运行时(0x800A0006)
溢出:''[编号:33362]''

亲切的问候
Fayyaz

---------------------------------上一页
文字-------- -----------------------------------

我敢打赌你美元。您是否正在使用期望整数
作为参数的函数?如何显示您的相关代码,我们将更容易找到它。

Ray在工作中

MFA < MFA @ MFA>在消息中写道
新闻:%2 **************** @ TK2MSFTNGP09.phx.gbl ...

感谢您的回复。

不,我没有使用该页面中的任何变量进行转换..

" Ray at<%= sLocation%>" < myfirstname at lane34 dot com>在消息中写道
新闻:ut ************** @ TK2MSFTNGP10.phx.gbl ...


" MFA" < MFA @ MFA>在消息中写道
新闻:ec ************** @ TK2MSFTNGP10.phx.gbl ...
>我在下面收到此错误。 (它不是整数相关或变量
相关的
>错误)

是什么让你这么说?

你是否想尝试CInt一个变量的价值是33,362?你


不能

超过32,767(或低于-32,768)。

Ray at work



错误类型:
Microsoft VBScript运行时(0x800A0006)
溢出:''[编号:33362]''



" MFA" < MFA @ MFA>在消息中写道

新闻:OT ************** @ tk2msftngp13.phx.gbl ...

大家好
感谢所有回复我日期为16/10/2003的问题的人都有相同的
主题..

在所有回复中我得到的每一个人都在说我正在使用cint()等但是我没有使用任何转换方法。

我在使用什么。

我在global.asa中定义了一个可用的应用程序包含服务器
地址和我正在使用的变量如下。
src =

"<%= Application(" Server")%> / gimages / Media_Temp / templat3 / images / template3_r19 _c41.jpg"

我在同一页面中使用了这么多次相同的变量。

我试图逐个添加变量,错误是来自
mid的某些地方。
如果我没有使用这个变量并且将服务器地址设置为难以编码的
,则没有错误。




也许您应该尝试使用Response.Write进行调试。例如,用以下代码替换

上面的代码:


<%

如果Len(应用程序(服务器) ))> 0然后

Response.Write("< div> Application("" Server""))= ["& Application(" Server"))

&"]< / div>")

Else

Response.Write("< div> ERROR:Application("""服务器"的长度为&

Len(应用程序(服务器))&"< / div>")

结束如果

%>


请注意上面代码中的换行符。

-Peter Foti


当您尝试为内存空间分配一个数字时会出现溢出

未配置为包含表示

这个数字。例如,您可能有一个定义为Integer的变量。

此变量只能包含一个最大为32,768的数字。如果您尝试

为变量分配一个更大的数字,例如33362,它将生成

溢出错误。


如果添加两个整数,如果

加法结果大于32,768,也会发生这种情况。当vbscript将两个

数字加在一起时,它会在内存中创建一个空间来临时存储结果

。它使用两个数字中最大的数据类型添加到

创建该空间。因此,如果添加两个整数,它将创建一个临时的

空间,该空间配置为存储整数。如果添加的两个整数是21000和22000,结果,43000将太大而无法放入

临时存储位置,导致溢出错误。解决方案是使用CLng将至少一个加数转换为Long,以便将

临时存储位置配置为存储Long结果。 br />

HTH,

Bob Barrows

-

Microsoft MVP - ASP / ASP.NET

请回复新闻组。我的From

标题中列出的电子邮件帐户是我的垃圾邮件陷阱,因此我不经常检查它。通过发布到新闻组,您将获得更快的回复。


Hi All

Thanks to all who replied to my question dated 16/10/2003 with the same
subject..

In all replies I got every one is saying that I am using cint() etc. But i
am not using any convert method.

What I am using.

I have one application veriable defined in global.asa that contain server
address and that variable I am using as below.
src =
"<%=Application("Server")%>/gimages/Media_Temp/Templat3/images/template3_r19
_c41.jpg"

I am using so many times same variable in same page.

I tried to add the variable one by one and error is coming some where in
mid.
If I am not using this variable and giving the server address as hard coded
there is no error.

This thing is giving me a real big problem...
Error is below.
Error Type:
Microsoft VBScript runtime (0x800A0006)
Overflow: ''[number: 33362]''
Kind Regards
Fayyaz
---------------------------------Previous
text-------------------------------------------

I''ll bet you a dollar. Are you using a function that expects an integer as
an argument? How about showing your relevant code and we''ll figure it out
more easily.

Ray at work

"MFA" <MFA@MFA> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...

Thanks for your reply.

No I am not converting using any variable in that page..
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:ut**************@TK2MSFTNGP10.phx.gbl...


"MFA" <MFA@MFA> wrote in message
news:ec**************@TK2MSFTNGP10.phx.gbl...

I am getting this error below. (Its not integer related or variable


related

error)



What makes you say that?

Are you trying to CInt a variable that has a value of 33,362? You can''t


go

over 32,767 (or under -32,768).

Ray at work



Error Type:
Microsoft VBScript runtime (0x800A0006)
Overflow: ''[number: 33362]''

解决方案

Unless you can show the actual line where the error is occurring or show all
of your code no one is going to be able to help you much.

I would recommend that you put the value from Application("Server") into a
local string variable if you are using it more than once.

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"MFA" <MFA@MFA> wrote in message
news:OT**************@tk2msftngp13.phx.gbl...

Hi All

Thanks to all who replied to my question dated 16/10/2003 with the same
subject..

In all replies I got every one is saying that I am using cint() etc. But i
am not using any convert method.

What I am using.

I have one application veriable defined in global.asa that contain server
address and that variable I am using as below.
src =
"<%=Application("Server")%>/gimages/Media_Temp/Templat3/images/template3_r19 _c41.jpg"

I am using so many times same variable in same page.

I tried to add the variable one by one and error is coming some where in
mid.
If I am not using this variable and giving the server address as hard coded there is no error.

This thing is giving me a real big problem...
Error is below.
Error Type:
Microsoft VBScript runtime (0x800A0006)
Overflow: ''[number: 33362]''
Kind Regards
Fayyaz
---------------------------------Previous
text-------------------------------------------

I''ll bet you a dollar. Are you using a function that expects an integer as an argument? How about showing your relevant code and we''ll figure it out
more easily.

Ray at work

"MFA" <MFA@MFA> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...

Thanks for your reply.

No I am not converting using any variable in that page..
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:ut**************@TK2MSFTNGP10.phx.gbl...


"MFA" <MFA@MFA> wrote in message
news:ec**************@TK2MSFTNGP10.phx.gbl...
> I am getting this error below. (Its not integer related or variable
related
> error)

What makes you say that?

Are you trying to CInt a variable that has a value of 33,362? You

can''t go

over 32,767 (or under -32,768).

Ray at work



Error Type:
Microsoft VBScript runtime (0x800A0006)
Overflow: ''[number: 33362]''



"MFA" <MFA@MFA> wrote in message
news:OT**************@tk2msftngp13.phx.gbl...

Hi All

Thanks to all who replied to my question dated 16/10/2003 with the same
subject..

In all replies I got every one is saying that I am using cint() etc. But i
am not using any convert method.

What I am using.

I have one application veriable defined in global.asa that contain server
address and that variable I am using as below.
src =
"<%=Application("Server")%>/gimages/Media_Temp/Templat3/images/template3_r19 _c41.jpg"

I am using so many times same variable in same page.

I tried to add the variable one by one and error is coming some where in
mid.
If I am not using this variable and giving the server address as hard coded there is no error.



Perhaps you should try debugging using Response.Write. For example, replace
the code above with this:

<%
If Len(Application("Server")) > 0 Then
Response.Write( "<div>Application(""Server"")=[" & Application("Server")
& "]</div>" )
Else
Response.Write( "<div>ERROR: Application(""Server"") has a length of " &
Len(Application("Server")) & "</div>" )
End If
%>

Watch for line wraps in the code above.
-Peter Foti


An overflow results when you try to assign a number to a space in memory
that is not configured to contain the number of bytes required to represent
the number. For example, you may have a variable that is defined as Integer.
This variable will only be able to contain a number up to 32,768. If you try
to assign a larger number, such as 33362, to the variable, it will generate
an overflow error.

This can also happen when you are adding two Integers together, if the
result of the addition is greater than 32,768. When vbscript adds two
numbers together, it creates a space in memory to store the result
temporarily. It uses the largest datatype of the two numbers being added to
create that space. So, if you add two Integers, it will create a temporary
space that is configured to store an Integer. If the two integers being
added are 21000 and 22000, the result, 43000 will be too big to put into the
temporary storage location, causing the overflow error. The solution is to
use CLng to convert at least one of the addends to a Long, so that the
temporary storage location will be configured to store a Long result.

HTH,
Bob Barrows
--
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.


这篇关于这是什么类型的错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆