Post: backgroundWorker Not Dispose?
04-18-2014, 08:47 AM #1
Mango_Knife
In my man cave
(adsbygoogle = window.adsbygoogle || []).push({}); So, i tried to dispose the backgroundWorker by write:
    
[COLOR="#0000FF"]while[/COLOR] ([COLOR="#0000FF"]true[/COLOR])
{
backgroundWorker1.Dispose();
}


But it didnt worked, any idea's how i can dispose the back ground worker?
(adsbygoogle = window.adsbygoogle || []).push({});
05-08-2014, 08:25 PM #2
Originally posted by Knife View Post
So, i tried to dispose the backgroundWorker by write:
    
[COLOR="#0000FF"]while[/COLOR] ([COLOR="#0000FF"]true[/COLOR])
{
backgroundWorker1.Dispose();
}


But it didnt worked, any idea's how i can dispose the back ground worker?


I could be wrong, but aren't you supposed to have something else with the 'true' inside the parenthesis?
Like for example 'while (test == true)'

Or is it the Dispose funtion itself?
05-09-2014, 10:59 AM #3
Mango_Knife
In my man cave
Originally posted by YouViolateMe View Post
I could be wrong, but aren't you supposed to have something else with the 'true' inside the parenthesis?
Like for example 'while (test == true)'

Or is it the Dispose funtion itself?


Not work, il just use threads Smile
05-12-2014, 07:15 PM #4
Originally posted by Knife View Post
So, i tried to dispose the backgroundWorker by write:
    
[COLOR="#0000FF"]while[/COLOR] ([COLOR="#0000FF"]true[/COLOR])
{
backgroundWorker1.Dispose();
}


But it didnt worked, any idea's how i can dispose the back ground worker?


dispose just deletes the object in memory, and the error is probably with your infinite loop

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo