I'm working in a simple WPF 4 application, where I must get a property of an object that is stored in a COM object and put it into a textblock. This object is already referenced in the project.
Here is the code snipet. (very simple):
comObject rectangular = new comObject();
textBlock1.Text = rectangular.Version + "|" + rectangular.ComputerID;
catch (Exception ex)
textBlock1.Text = ex.Message;
When I run this code (from a simple button click for instance) the code runs OK (no exceptions). However, when I click on the textBloc, I get an StackOverflowException on the WindowsBase.dll assembly.
I don´t know how to debug this issue nor what might be causing it in a such simple program. I isolated this issue in a brand new WPF application and it is still occuring...
I would apreciate any help.
Igor.Software Developer and AI Enthusiast. www.twitter.com/ikondrasovas
View Complete Post