Thread load New Form = out of memory ???

  • Thread starter Thread starter news.microsoft.com
  • Start date Start date
N

news.microsoft.com

I do this

If (th Is Nothing) Then

th = New Threading.Thread(AddressOf NewObject)

Else

th = Nothing 'clear it out

th = New Threading.Thread(AddressOf NewObject)

End If

th.Start()

Everytime require new form instant, I use thread to run create while the
application can focus on something else. I got Out of memory problem.
Please Help!
 
news.microsoft.com said:
I do this

If (th Is Nothing) Then

th = New Threading.Thread(AddressOf NewObject)

Else

th = Nothing 'clear it out

th = New Threading.Thread(AddressOf NewObject)

End If

th.Start()

Everytime require new form instant, I use thread to run create while the
application can focus on something else. I got Out of memory problem.
Please Help!

You probably have some recursive calling going on where it ends up
spawning threads non stop. Need to see more code though.

Chris
 
Back
Top