473,396 Members | 1,770 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Unspecified Error

Im getting and Unspecified Error in my VB.Net app and am not sure how to
debug it.

Any pointers

tia

Terry Holland
Nov 21 '05 #1
3 1769
Terry,

Your report seems to me very Unspecified, why can you not debug it?

Cor

"Terry Holland" <nochance>
Im getting and Unspecified Error in my VB.Net app and am not sure how to
debug it.

Any pointers

tia

Terry Holland

Nov 21 '05 #2
"Terry Holland" <nochance> schrieb:
Im getting and Unspecified Error in my VB.Net app and am
not sure how to debug it.


Where and when does this error occur?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #3
The problem is not occuring now and Im not sure what Ive done to solve it.
I was finding it hard to debug because I did not get an option to 'Break'
and step into the code to see where the problem was occuring. After a lot
of trial and error I narrowed it down to a procedure that was being called
every 5 secs (for testing purposes only).

It was failing on the cnn.Open() line after a random number of times ie it
might work fine for 30 times and then fail on the 31st time
I tried wrapping open in a try catch block but the error message still
appeared. Im not on dev machine at moment so I cant bring up the error, but
as I remember it was a JIT debug error if that makes any sense. It didnt
allow be to break & see the line where the error occured


Procedure Code
================================================== =================
Function Load(ByVal lngID As Long) As Boolean

Dim booRetVal As Boolean
Dim cnn As Data.OleDb.OleDbConnection
Dim cmm As Data.OleDb.OleDbCommand '.SqlClient.SqlCommand
Dim dr As Data.OleDb.OleDbDataReader
Dim objStaffAction As clsStaffAction
Dim strSQL As String

cmm = New Data.OleDb.OleDbCommand '.SqlClient.SqlCommand

strSQL = "SELECT tlkStaff_Actions.* " & _
"FROM tlkStaff_Actions LEFT JOIN tlkStaffAction_Vote " & _
"ON tlkStaff_Actions.stac_lng_id =
tlkStaffAction_Vote.stav_stac_lng_id " & _
"WHERE tlkStaffAction_Vote.stav_stac_lng_id Is Null " & _
"and stac_staf_lng_id_to = " & g_objStaffCurrentUser.ID

cnn.ConnectionString = CNN_CONNECT
cnn.Open()
cmm.Connection = g_cnn ' cnn
cmm.CommandType = CommandType.Text
cmm.CommandText = strSQL
dr = cmm.ExecuteReader

While dr.Read
objStaffAction = New clsStaffAction
booRetVal = objStaffAction.Load(dr)
m_colStaffAction.Add(objStaffAction, "K:" & objStaffAction.ID)
End While
dr.Close()

'Tidy Up
cnn = Nothing
cmm = Nothing
dr = Nothing
objStaffAction = Nothing

Load = booRetVal

End Function
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:eC**************@TK2MSFTNGP10.phx.gbl...
"Terry Holland" <nochance> schrieb:
Im getting and Unspecified Error in my VB.Net app and am
not sure how to debug it.


Where and when does this error occur?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 21 '05 #4

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

Similar topics

14
by: Christopher Benson-Manica | last post by:
From FAQ 6.13: int arr; int (*a)=arr; /* legal, but useless */ printf( "%d\n", a ); /* error, bounds of a unspecified */ Are there non-contrived situations where an array of unspecified...
5
by: Dave | last post by:
Hi All C# ADSI samples that I run cause unspecified errors. If I translate them into VB.NET they run fine. Here's an example: public string getEmail(string LDAPPath, string username) {...
4
by: RM | last post by:
Had VS .Net 2002 installed on W2k Server SP3 and supported a number of web sites. Installed VS .Net 2003 on Friday and now all web sites using .Net & MS ACCESS get this strange error upon open. ...
2
by: Jim Lacenski | last post by:
I have a VB class that uses .NET and ADODB to write into an Excel spreadsheet (via Jet) on a server as part of a web application. ADODB is used instead of ADO.NET because it greatly simplifies the...
1
by: T8 | last post by:
I have a asp.net (framework 1.1) site interfacing against SQL 2000. It runs like a charm 99% of the time but once in a while I get the following "unspecified error". Sometimes it would resolve by...
3
by: GotdotNet | last post by:
I get this error once in a while and I normally could fix it by restarting IIS. However, I would like to find out what causes this. Can anyone help? -----------------------------error...
1
by: Siegfried Heintze | last post by:
I'm using a third party hosting service. I presently have a Web Service on this hosting service's server that loads and executes a native mode DLL. This demonstrates that the hosting service has...
7
by: Jim McGivney | last post by:
ASPX page from VS.net-C# on host's computer using oleDataAdaptor to connect to Microsoft Access database. The page loads, but when connection to the database is attempted to fill a datagrid the...
6
by: sowencheung | last post by:
I have the following code in the event onbeforeunload if ( typeof executingPostBack != 'undefined' && !executingPostBack ) event.returnValue = ""Warning: Modified data has not been saved.""; ...
0
by: fniles | last post by:
I am using VB.Net 2003 and MS Access database. Sometimes when I open the database, I got the error "Unspecified error" The application validate users, when it validates users, it reads from a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.