c# - Corrupted heap in Windows Store App -


i have windows store app contains listbox full of items. there option filter these items based on parameters. example:

foreach(var item in itemslistbox.item) {      listboxitem container = itemslistbox.itemcontainergenerator.containerfromitem(item) listboxitem;      itemdc context = (itemdc)container.datacontext;      if(context.shouldbefiltered){           container.visibility = visibility.collapsed;      }      else{           container.visibility = visibility.visible;      } } 

this filtering process triggered radio buttons, 1 radio button enable filtering items property , radio button enable filtering property b.

my issue if go , forth between filtering options (clicking , forth between each radio button testing), app crash information being:

first-chance exception @ 0x776a5624 (ntdll.dll) in myapp.exe: 0xc0000374: heap has been corrupted (parameters: 0x776c1378). unhandled exception @ 0x776a5624 (ntdll.dll) in myapp.exe: 0xc0000374: heap has been corrupted (parameters: 0x776c1378). 

i believe related garbage collection going on go between filters, kind of @ loss how approach this. type of exception doesn't seem caught sort of try/catch nor using unhandledexception events catch either.

is there doing wrong in terms of going , forth between visibility.visible , visility.collapsed rapidly cause garbage collector freak out , try access memory belongs else?

how approach exception when dealing windows store apps?


Comments

Popular posts from this blog

How to provide Authorization & Authentication using Asp.net, C#? -

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

How to use Authorization & Authentication in Asp.net, C#? -