c# - Application hangs when calling external constructor -- troubleshooting steps? -


this may long shot i'm out of ideas.

i've got vs c# solution 3 projects in it. there's class library project , 2 application projects depend on class library. class library in turn depends on few other dlls including avalonedit dll sharpdevelop project.

one of applications building , running fine, including use of own control wraps avalonedit control. other application failing run , seems failing @ point when avalonedit control initialised via xaml in wrapping control.

the problem don't see errors in debug output @ all, see dll loaded message , nothing. if step constructor of control step never completes. debugger says app running, apparently spinning somewhere in avalonedit dll when underlying edit control constructed xaml side.

i have assume there's issue difference in environment between 2 projects i'm kind of stumped how proceed in tracking problem down. going have somehow arrange matters can put break in avalonedit source?

edit: if pause/break drops line calling control constructor.

sounds deadlock. take close @ threads, stack traces , synchronization primitives (locks, semaphores, etc.). keep in mind: contended resources may not explicit (for example, when inside static constructor waiting on tries access static field of type being constructed deadlock).

there many ways introduce deadlock no simple advice handle it. enable break on exceptions in visual studio (debug -> exceptions... , tick clr exceptions).

if not provide stack traces here , maybe spot problem.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -