c# - Null reference exception on PriorityQueue.RemoveItem -


a single instance of error occurred, , haven't been able reproduce it, , unfortunately logs don't offer helpful information. last operation on thread seemed finish fine, , unhandled exception pops up:

system.nullreferenceexception: object reference not set instance of object. @ system.windows.threading.priorityqueue`1.removeitem(priorityitem`1 item) @ system.windows.threading.dispatcher.processqueue() @ system.windows.threading.dispatcher.wndprochook(intptr hwnd, int32 msg, intptr wparam, intptr lparam, boolean& handled) @ ms.win32.hwndwrapper.wndproc(intptr hwnd, int32 msg, intptr wparam, intptr lparam, boolean& handled) @ ms.win32.hwndsubclass.dispatchercallbackoperation(object o) @ system.windows.threading.exceptionwrapper.internalrealcall(delegate callback, object args, int32 numargs) @ ms.internal.threading.exceptionfilterhelper.trycatchwhen(object source, delegate method, object args, int32 numargs, delegate catchhandler) 

i tried internet searching priorityqueue.removeitem(item) call in stack trace, couldn't find having similar issue. there nothing in application event long hint @ memory leak or else funky. anyway, curious if has seen similar, or has educated guess cause this.

also, here's code priorityqueue.removeitem(item) method (code priorityqueue class can found here):

public void removeitem(priorityitem<t> item) {     prioritychain<t> chain = item.chain;      // step 1: remove item priority chain.     removeitemfromprioritychain(item);      // step 2: remove item sequential chain.     removeitemfromsequentialchain(item);      // note: not clean empty chains on purpose reduce churn. } 

i suppose null reference exception happening because item null? anyway, ideas or guesses appreciated.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -