...
創(chuàng)新互聯(lián)公司2013年成立,是專業(yè)互聯(lián)網(wǎng)技術(shù)服務(wù)公司,擁有項目成都網(wǎng)站建設(shè)、成都網(wǎng)站設(shè)計網(wǎng)站策劃,項目實施與項目整合能力。我們以讓每一個夢想脫穎而出為使命,1280元中原做網(wǎng)站,已為上家服務(wù),為中原各地企業(yè)和個人服務(wù),聯(lián)系電話:18982081108
'將Try...Catch放在Main中
Try
Begin()
Catch e As Exception
ProcessException(e)
End Try
'在Begin中開始你的程序,就像從Main開始執(zhí)行程序一個道理
Sub Begin()
'
End Sub
'將ProcessException改成你的要處理所有異常的過程名
Sub ProcessException(e As Exception)
'
End Sub
...
The exception that is thrown when one of the arguments provided to a method is not valid.
Message="未將對象引用設(shè)置到對象的實例。"
Source="掃雷"
StackTrace:
在 WindowsApplication1.Form1.Form1_Load(Object sender, EventArgs e) 位置 C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Projects\掃雷\掃雷\Form1.vb:行號 21
在 System.EventHandler.Invoke(Object sender, EventArgs e)
在 System.Windows.Forms.Form.OnLoad(EventArgs e)
在 System.Windows.Forms.Form.OnCreateControl()
在 System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
在 System.Windows.Forms.Control.CreateControl()
在 System.Windows.Forms.Control.WmShowWindow(Message m)
在 System.Windows.Forms.Control.WndProc(Message m)
在 System.Windows.Forms.ScrollableControl.WndProc(Message m)
在 System.Windows.Forms.ContainerControl.WndProc(Message m)
在 System.Windows.Forms.Form.WmShowWindow(Message m)
在 System.Windows.Forms.Form.WndProc(Message m)
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message m)
在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message m)
在 System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
在 System.Windows.Forms.SafeNativeMethods.ShowWindow(HandleRef hWnd, Int32 nCmdShow)
在 System.Windows.Forms.Control.SetVisibleCore(Boolean value)
在 System.Windows.Forms.Form.SetVisibleCore(Boolean value)
在 System.Windows.Forms.Control.set_Visible(Boolean value)
在 System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
在 System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
在 System.Windows.Forms.Application.Run(ApplicationContext context)
在 Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
在 Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
在 Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
在 WindowsApplication1.My.MyApplication.Main(String[] Args) 位置 17d14f5c-a337-4978-8281-53493378c1071.vb:行號 81
在 System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
在 System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
在 Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
在 System.Threading.ThreadHelper.ThreadStart_Context(Object state)
在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
在 System.Threading.ThreadHelper.ThreadStart()
說明沒有讀數(shù)據(jù),AllLine 為空,應(yīng)加一個判斷,空時怎么處理,不空時才是你的正常處理語句
分享題目:vb.net未處理異常 vbs異常處理
標(biāo)題來源:http://chinadenli.net/article12/dodicgc.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供外貿(mào)建站、App開發(fā)、網(wǎng)站收錄、軟件開發(fā)、網(wǎng)站設(shè)計公司、服務(wù)器托管
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)