Hallo Leute,
ich erstelle in einer FOR-Schleife einen ganzen Haufen Instanzen einer Klasse. Da das so seine Zeit dauert mache ich das ganze in einem eigenen Thread, den ich folgendermaßen aufrufe:
Das ganze scheint auch wunderbar zu funktionieren. Bis auf die Ausnahme, dass es nur selten oder gar nicht dazu kommt, dass bestimmte Delegate Methoden der besagten Klasse aufgerufen werden. Meine Vermutung ist, dass der Thread einfach schon abgeschlossen ist, wenn die Delegate Methoden normalerweise aufgerufen werden.
Frage: Was kann ich tuen, dass dieser Theras etwas länger existiert? 5 Sekunden würden schon völlig reichen.
Hat jemand eine Idee?
Vielen Dank und Gruß
Daniel
ich erstelle in einer FOR-Schleife einen ganzen Haufen Instanzen einer Klasse. Da das so seine Zeit dauert mache ich das ganze in einem eigenen Thread, den ich folgendermaßen aufrufe:
Das ganze scheint auch wunderbar zu funktionieren. Bis auf die Ausnahme, dass es nur selten oder gar nicht dazu kommt, dass bestimmte Delegate Methoden der besagten Klasse aufgerufen werden. Meine Vermutung ist, dass der Thread einfach schon abgeschlossen ist, wenn die Delegate Methoden normalerweise aufgerufen werden.
Frage: Was kann ich tuen, dass dieser Theras etwas länger existiert? 5 Sekunden würden schon völlig reichen.
Hat jemand eine Idee?
Vielen Dank und Gruß
Daniel
“I want to see an elephant hunt down a man for the sole purpose of collecting his teeth, while a chorus of typewriters sings songs that praises the bananas for their wisdom, leadership, and their high levels of potassium.” ― Jarod Kintz, I Want