static public void Process() { DelayedObjectMan pDelayMan = DelayedObjectMan.PrivGetInstance(); ColObserver pNode = pDelayMan.head; while (pNode != null) { // Fire off listener pNode.Execute(); pNode = (ColObserver)pNode.pNext; } // remove pNode = pDelayMan.head; ColObserver pTmp = null; while (pNode != null) { pTmp = pNode; pNode = (ColObserver)pNode.pNext; // remove pDelayMan.PrivDetach(pTmp, ref pDelayMan.head); } }
static public void Process() { DelayedObjectMan pDelayMan = DelayedObjectMan.PrivGetInstance(); ColObserver pNode = pDelayMan.head; while (pNode != null) { pNode.Execute(); pNode = (ColObserver)pNode.pNext; } pNode = pDelayMan.head; ColObserver pTemp = null; while (pNode != null) { pTemp = pNode; pNode = (ColObserver)pNode.pNext; //this might have been my issue with my timermanager references pDelayMan.PrivDetach(pTemp, ref pDelayMan.head); } }