Click here to Skip to main content
15,925,444 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Generalsendkeys.send("{BS}") Pin
vertig073010-Apr-05 2:21
vertig073010-Apr-05 2:21 
GeneralRe: sendkeys.send("{BS}") Pin
Dave Kreskowiak10-Apr-05 4:15
mveDave Kreskowiak10-Apr-05 4:15 
GeneralRe: sendkeys.send("{BS}") Pin
vertig073010-Apr-05 12:41
vertig073010-Apr-05 12:41 
GeneralRe: sendkeys.send("{BS}") Pin
Dave Kreskowiak10-Apr-05 15:10
mveDave Kreskowiak10-Apr-05 15:10 
GeneralRe: sendkeys.send("{BS}") Pin
vertig073010-Apr-05 15:33
vertig073010-Apr-05 15:33 
GeneralVB.NET and Outlook Addin Pin
JSNAGI9-Apr-05 18:29
JSNAGI9-Apr-05 18:29 
GeneralRe: VB.NET and Outlook Addin Pin
Anonymous10-Apr-05 6:21
Anonymous10-Apr-05 6:21 
GeneralObject reference not set to an instance of an object Pin
KAND1239-Apr-05 3:14
KAND1239-Apr-05 3:14 
Confused | :confused: In my code i have called a DLL which exports C++ functions which help me to read and retrieve data from different shapefiles(shapefile is a fileformat to store
non-topological geographic data)

The functions are in a while loop and the values got from the passed parameter are then stored in the sql database in ntext format(CLOBS).

Now this code works most for most ofshapefiles except a few shapfiles.

I get the following error:
An unhandled exception of type 'System.NullReferenceException'
occurred in final GUI.exe

Additional information: Object reference not set to an instance of an object.

I know what the error means but as it doesnt come for all the shapefile inputs i am unable to debug.

here's is my code:

While j < nver
Call vertice(i, j, k, start, x, y, nam)

strSQL = "Declare @ptr varbinary(16)" _
& "select @ptr =textptr(startpart) from " & nam & " where rec_no=" & i _
& "updatetext " & nam & ".startpart @ptr " & cnt0 & " 0 '" & ss & "'"

oCmd = New SqlClient.SqlCommand
With oCmd
.Connection = New SqlClient.SqlConnection(strConn)
.Connection.Open()
.CommandText = strSQL
oDR = .ExecuteReader()
End With

oDR.Close()
oCmd.Connection.Close()

j = j + 1

End While

Thanking in advansed.


PLEASE HELP
GeneralRe: Object reference not set to an instance of an object Pin
Dave Kreskowiak9-Apr-05 5:20
mveDave Kreskowiak9-Apr-05 5:20 
Generalrunning exe after installation Pin
Rizwan Bashir9-Apr-05 2:01
Rizwan Bashir9-Apr-05 2:01 
GeneralRe: running exe after installation Pin
Dave Kreskowiak9-Apr-05 5:13
mveDave Kreskowiak9-Apr-05 5:13 
GeneralRe: running exe after installation Pin
Rizwan Bashir10-Apr-05 0:48
Rizwan Bashir10-Apr-05 0:48 
GeneralRe: running exe after installation Pin
Colin Angus Mackay10-Apr-05 1:52
Colin Angus Mackay10-Apr-05 1:52 
GeneralRe: running exe after installation Pin
Anonymous9-Apr-05 6:23
Anonymous9-Apr-05 6:23 
GeneralPacket Siffer in VB.NET Pin
Abhishek Tiwari8-Apr-05 21:26
Abhishek Tiwari8-Apr-05 21:26 
GeneralRe: Packet Siffer in VB.NET Pin
Dave Kreskowiak9-Apr-05 5:09
mveDave Kreskowiak9-Apr-05 5:09 
GeneralMaking DLL in .Net Pin
nitin_ion8-Apr-05 20:47
nitin_ion8-Apr-05 20:47 
GeneralRe: Making DLL in .Net Pin
Colin Angus Mackay9-Apr-05 0:08
Colin Angus Mackay9-Apr-05 0:08 
GeneralRe: Making DLL in .Net Pin
nitin_ion10-Apr-05 17:27
nitin_ion10-Apr-05 17:27 
GeneralRe: Making DLL in .Net Pin
Colin Angus Mackay10-Apr-05 20:04
Colin Angus Mackay10-Apr-05 20:04 
GeneralRe: Making DLL in .Net Pin
nitin_ion10-Apr-05 20:34
nitin_ion10-Apr-05 20:34 
GeneralRe: Making DLL in .Net Pin
Colin Angus Mackay10-Apr-05 20:50
Colin Angus Mackay10-Apr-05 20:50 
Generaldatagirds and tablestyles Pin
FastFriedMonkey8-Apr-05 15:52
FastFriedMonkey8-Apr-05 15:52 
GeneralRe: datagirds and tablestyles Pin
Dave Kreskowiak9-Apr-05 4:54
mveDave Kreskowiak9-Apr-05 4:54 
GeneralSystem.Reflection Error. Parameter count mismatch. Pin
mcupryk8-Apr-05 13:57
mcupryk8-Apr-05 13:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.