Thread load New Form = out of memory ???

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!
 
C

Chris

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Why Won't My Thread Abort 5
Threading Question 7
Memory usage in VB.NET program 2
Multithread Stop/Restart 5
Thread question 3
Threading 1
Thread issue 4
invoke problem vith treeview 1

Top