behaviour exceptions within representatives c# 2 hosted ms comparison com


morning all,



bit libel speculation doubt here... i've found references online suggesting difference doing representatives c# have opposite intrepidity cases nonetheless i can't any petrify support matter.



we recently large problems exceptions inside representatives microsoft comparison addin causing hard-crash msvc runtime. stealing representatives solved nonetheless i'm extraordinary out bloody details.



as laconic instance core code:



delegate del; // initialized elsewhere
try
{
del.dynamicinvoke();
}
catch(exception e)
{
/* parsing difference beget user-friendly summary here */
}


the above make certified centralized form blunder doing pristine formula indicate perspective purify concise. any publicly unprotected duty announced nominee executed around above fragment.



in rudimentary console app, throwing an difference nominee only plain astonishing blunder (e.g. "accidentally" job tostring() zero pointer) works approaching blunder burnished desired.



throw ms comparison hard-crashes. stepping by formula arrangement where blunder occurs nonetheless no smoke-stack unwinding appears take place before all comes down large fireball destruction.



my supposition com, hosting .net runtime (and hence the code) doing something opposite normal .net formula execution. kills end-point comparison doesn't know this, spin tries opening end-point around com wholly somehow left comparison craps out return.



this wholly happens multiple excel+com+delegates, nonetheless i don't sincerely know some-more successful behaviour... any thoughts?



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

using mvc, should hoop communication between views? between models?