奇怪的问题/ DB错误/不显示错误消息 [英] Strange Issue / DB Error / Not Showing Error Message

查看:140
本文介绍了奇怪的问题/ DB错误/不显示错误消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

早上好,


我正在尝试访问访问数据库,以便在登录我的应用程序时对用户进行身份验证。


有些东西正在抛出一个例外。我的错误处理代码应该是

在msgbox中显示此消息。但是,消息框总是空白。


这是我的错误处理代码。


Catch ex As例外

MsgBox(ex.Message,MsgBoxStyle.OKOnly)

最后

oleConn.Close()

结束试试


返回bolTemp

结束功能


我错过了什么?我是否必须包含任何用于

错误处理的系统库?非常混乱.....


提前致谢!


-Ivan


* **通过开发人员指南 http://www.developersdex.com 发送***

解决方案

如果你单步执行代码,当进入Catch块时,如果你输入了ide'的
异常帮助器将鼠标悬停在赶上前往

例外线。看看是否提供了任何其他信息。如果那个

没有帮助解决问题那么什么代码导致错误?


谢谢,


Seth Rowe

Ivan Weiss写道:


早上好,


我是尝试访问一个访问数据库,以便在登录我的应用程序时对用户进行身份验证。


有些东西正在抛出异常。我的错误处理代码应该是

在msgbox中显示此消息。但是,消息框总是空白。


这是我的错误处理代码。


Catch ex As例外

MsgBox(ex.Message,MsgBoxStyle.OKOnly)

最后

oleConn.Close()

结束试试


返回bolTemp

结束功能


我错过了什么?我是否必须包含任何用于

错误处理的系统库?非常混乱.....


提前致谢!


-Ivan


* **通过Developersdex发送 http://www.developersdex.com ***


Ivan Weiss写道:


早上好,


我正在尝试访问一个访问数据库,以便在登录我的应用程序时对用户进行身份验证。


有些东西正在抛出异常。我的错误处理代码应该是

在msgbox中显示此消息。但是,消息框始终是空的。



您是否偶然运行McAfee Virus Scanner?这可能导致

消息框为空。他们已经发布补丁来解决

问题。


如果你搜索这些群组,你应该找到更多关于它的信息

它会偶尔弹出。


Chris


Chris,


我碰巧安装了Mcafee Virus Scan。我无法找到

。你碰巧知道我可以在哪里获得补丁吗?我也试图在Mcafee网站上搜索
...


-Ivan


***已发送通过开发人员指南 http://www.developersdex.com ***

Good morning all,

I am trying to access an access database to authenticate users upon
logging into my application.

Something is throwing an excecption. My error handling code should
display this message in a msgbox. However, the messagebox is always
empty.

Here is my error handling code.

Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.OKOnly)
Finally
oleConn.Close()
End Try

Return bolTemp
End Function

Am I missing something? Do I have to include any system libraries for
error handling? Very confusing.....

Thanks in advance!

-Ivan

*** Sent via Developersdex http://www.developersdex.com ***

解决方案

If you step through the code, when entering the Catch block the ide''s
exception helper should pop up if you hover over "catch ex as
exception" line. See if that gives any additional information. If that
doesn''t help solve the problem then what code is causing the error?

Thanks,

Seth Rowe
Ivan Weiss wrote:

Good morning all,

I am trying to access an access database to authenticate users upon
logging into my application.

Something is throwing an excecption. My error handling code should
display this message in a msgbox. However, the messagebox is always
empty.

Here is my error handling code.

Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.OKOnly)
Finally
oleConn.Close()
End Try

Return bolTemp
End Function

Am I missing something? Do I have to include any system libraries for
error handling? Very confusing.....

Thanks in advance!

-Ivan

*** Sent via Developersdex http://www.developersdex.com ***


Ivan Weiss wrote:

Good morning all,

I am trying to access an access database to authenticate users upon
logging into my application.

Something is throwing an excecption. My error handling code should
display this message in a msgbox. However, the messagebox is always
empty.

Do you, by chance, run McAfee Virus Scanner? That can cause the
message box to be blank. They have released a patch to fix the
problem.

If you search these groups, you should find more information on it as
it pops up occaisionally.

Chris


Chris,

I do happen to have Mcafee Virus Scan installed. I could not find
anything on that. Do you happen to know where I can get the patch. I
tried searching on Mcafee web site as well...

-Ivan

*** Sent via Developersdex http://www.developersdex.com ***


这篇关于奇怪的问题/ DB错误/不显示错误消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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