Problems with ListObjects function using VB
I have a VB 6 program that is using the ListObjects function to pull out all of the Documents in a Livelink Folder. I works fine when I run it once but when I run it again (without restarting the VB), it hangs on the ListObjects call. It does not return an error it just hangs and after about 10 seconds it kills my VB program. Any ideas on what I might be doing wrong? Here is a chunk of my code. I am just testing this out so it just pulls out all the doc names and puts them in a text box.status = LL_ValueAlloc(resultset)If (status <> LL_OK) Then MsgBox "Could not declare resultset"End If status = LL_Initialize(LL_HEADER_VERSION)status = LL_SessionAlloc(session, "localhost", 2901, "Livelink1", "admin", "lladmin") If (status = LL_OK) Then status = LL_ListObjects(session, -2000, 6504, vbNullString, vbNullString, LL_PERM_SEECONTENTS, resultset) If (status = LL_OK) Then status = LL_ValueGetLength(resultset, length) ' get length of the recarray textList = "" For i = 0 To length - 1 docName = "" docComment = "" status = LL_TableGetString(resultset, i, "Name", docName, 255, outSize1) status = LL_TableGetString(resultset, i, "Comment", docComment, 255, outSize2) textList = textList & "- " & Left(docName, outSize1) & " ---- " & Left(docComment, outSize2) & vbCrLf Next Text1.Text = textList Else Text1.Text = "Was not able to Retreive any Documents." End IfElse Text1.Text = "No Session Established"End If LL_ValueFree (resultset)LL_SessionFree (session)LL_Uninitialize