pasensyoso_manigbas
Well-known member
- Joined
- May 19, 2006
- Messages
- 64
- Programming Experience
- Beginner
hi mods,
i have tried to insert a query inside a Function which i invoke using a thread. the problem is when i execute the Function it prompts an error like this:
Additional information: COM object that has been separated from its underlying RCW can not be used.
my code is something like
Function myFunction(lst as listview) as String
'some codes here
for i as integer=0 to lst.Items.Count-1
dim cmd as new OledbCommand("Exec SaveRecord '" & lst.Items(x).Subitems(4).ToString & "'",connection)
cmd.ExecuteNonQuery()
Next
End Function
any help is appreciated....
i have tried to insert a query inside a Function which i invoke using a thread. the problem is when i execute the Function it prompts an error like this:
Additional information: COM object that has been separated from its underlying RCW can not be used.
my code is something like
Function myFunction(lst as listview) as String
'some codes here
for i as integer=0 to lst.Items.Count-1
dim cmd as new OledbCommand("Exec SaveRecord '" & lst.Items(x).Subitems(4).ToString & "'",connection)
cmd.ExecuteNonQuery()
Next
End Function
any help is appreciated....