locked
Application.LoadComponent fails silently RRS feed

  • Question

  • I've been working with Application.LoadComponent quite a bit recently, and it has a very annoying behavior of failing sielntly on bad input. I've observed this both for uri's pointing to something that doesn't exist, but it may also occur for bad xaml, since I have no way to know if it doesn't find the item, or if it finds it but fails during loading. Either way the LoadComponent call appears to succeed.

    Silent failures are bugs IMHO, so I'm reporting this here.

    Thanks,

    -Dan

    Wednesday, April 15, 2009 6:48 PM

Answers

  •  Are you calling LoadComponent on another thread?  LoadComponent is designed to fail with bad resourceUri's. As far as I can remember it fails every time, accept if on another thread that doesn't have a mechanism for reporting exceptions.

    Monday, April 20, 2009 6:22 PM