Sunday, December 2, 2018

.net - 'Object reference not set to an instance of an object error'

I keep getting an 'Object reference not set to an instance of an object' error when trying to navigate with Gecko. One of the suggestions is to use the New keyword. But where and why?



Dim wbGecko As New GeckoWebBrowser
Dim i As Integer = 0
For i = 0 To lstPosts.Count - 1
wbGecko.Navigate("http://websta.me" & lstPosts.Item(i))
Do
If Not (wbGecko.IsBusy) Then

MessageBox.Show("Hello World!")
End If
Exit Do
Loop
Exit For
Next

No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...