Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Object variable not set

Status
Not open for further replies.

programmer1111

IS-IT--Management
Aug 5, 2002
1
IN
when i invoke the my COM dll(VB) i am getting the error Object variable or With block variable not set.Follwing libraries have been included..
MTS library
COM+ service library
Microsoft Active Server Page Objeect Libray
plus ordinay refrences


The Actual code is

On Error GoTo ErrHandler

Dim ErrorMsgs As ErrObject

Dim objMtsCtx As ObjectContext
Dim oSession1 As Session

Set objMtsCtx = GetObjectContext()

If objMtsCtx Is Nothing Then
OutputDebugString vbCrLf & "failed............ "
End If

OutputDebugString vbCrLf & "not failed............ "

oSession1("New") = "Praveen"

Exit Function

ErrHandler:
OutputDebugString (ErrorMsgs.Description)

can any one tell me what could be the problem....treat this as very urgert.pls reply me ASAP

regards
Praveen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top