In the past 4-5 days I have been busy, trying to figure out a VERY strange problem with a PropertyGrid solution we have done in Silverlight. Let me first explain quickly what is the solution about.
This is a PropertyPanel Silverlight control, used to expose the public properties of a bussiness object and allow the user to change them back to the object. Needless to say, the control had to populate these properties via reflection by itself. The tricky part is that we needed to create custom editor controls for each property type.
To make this flexible we added all the property editors as a simple ContentControl and dynamically changed the ControlTemplate of the editor, based on the type of the property.
So far so good. We have implemented the whole mechanism for populating the properties, dynamically creating the ContentControl editors and choosing the ControlTemplate from a list of templates, being predefined.
We have added all those things in a Silverlight Library solution and created another solution (a Silverlight Application, what else ?), where we made a test by passing a custom business object to the control and show it.
Everything went well when we used only the generic build-in controls from the Silverlight SDK for the editors. As soon as I have added a controls from a 3rd Party, or even from System.Windows.Controls, I got the strangest exception on loading:
“An unhandled exception of type ‘System.OutOfMemoryException’ occurred in Unknown Module.”
This was just not enough information. No stack trace, no InnerException, nothing ! I started debugging and pulling out things one by one from the functionality to get to the bottom of the problem. Nothing helped. I spent more than 4 days trying to solve it, but I couldn’t. Finally, while browsing the Google results for the message of the exception, I got to this address: http://slpropertygrid.codeplex.com/
This is a similar solution by some guys, who faced the same problem. What I have noticed is that they had the problem when the referencing DLLs were broken. As I took a look at our solution I found out that we haven’t referenced the 3rd Party DLLs in the sample solution at all ! I have only referenced them in the Library solution. One might think that this is a normal thing to do, because these DLLs should be exposed to the simple solution by the Library one. Well, one is wrong ! Turned out that Silverlight has some issues on that topic. The exception is totally misleading and if I haven’t found that solution, I wouldn’t had had solved the problem.
This is a very old project, being reborn ! A blog, supported by me and my friend Denislaw Vladimiroff. It is a blog about lifestyle, foolishness and criticism. Check it out, it’s fun
www.KlubTupak.com
P.S. The blog’s language is only Bulgarian !
Here I am at Microsoft Days 2009 Conference.
It is already the end of the second day and I am waiting to hear my last session for this year’s MS Days.
My overall satisfaction with the conference is not really as I expected. The location is moved, which in my opinion, is a bad thing. So far the conference was being held in the IEC (International Exhibition Center – [Google Maps]) just at the end of Sofia. Getting there with a car is fairly easy and there is a direct bus transport, stopping at the main entrance of the Center.
This year’s conference is being held in Hotel Kempinski ([Google Maps]), which is in the town’s center. You can imagine that getting there is a nightmare, getting out of there is a nightmare and parking is a new level of nightmare. I must agree that some of the halls are bigger than the one at the IEC, but this is not really the issue the organisation guys are facing.
As it is expected I came here to hear as more Silverlight and WPF sessions as I could. So far I attended three sessions of this kind. Some were good, some were bad. Honestly I expected a storm of Silverlight 3 sessions since it is brand new and being announced about 3-4 weeks ago. Unfortunately there was only one that was regarding Silverlight 3. This is kinda dissapointing.
Another interesting session I saw was “Windows 7 – Deep Dive”. Quite an interesting one, it really got me in to wanting to install that new system. So as soon as I have the chance, I will install it and give it a go.
There was a showroom at the conference where you could check out Microsoft Surface and play around with it. Quite a cool gadget. I hope that I will have the chance to work on such a technology some day.
As a conclusion I can say that Microsoft Days 2009 was nice, but I was expecting much, much more. But this won’t stop me from attending MS Days 2010. I hope it will beat the crap out of this one !
Here is my first blog post made with my new iPhone and the WordPress application.
I am just sitting in my car, at 22:12 on a Friday night, at a car service, waiting for the guys here to put on my summer tires on my Mazda 6.
I am drinking coffee, eating awful soletti and listening to StarFM.
I have to admit that I am very surprised by the easiness and pleasure I get from working with my new iPhone. One of my friends told me that I will fall in love with it and it might just happen
April 3rd, 2009 in
Lifestyle | tags:
iphone,
life |
No Comments
Yes, I am weak !
I thought that I will never buy this thing, but it turned out that I cannot resist. I have been alway quite rebellious against the Apple “Mafia”. I couldn’t make peace with that this Mobile Phone is so LOCKED. You cannot do any of the great things it can, without paying. Yes, you can always jailbreak it, but I was never a fond of such procedures.
Until quite a few weeks ago, you could only use a hacked iPhone in Bulgaria, because there wasn’t any representing mobile operator that managed to get a contract with Apple to sell those gadgets. On 20th of March, Globul has managed to do it. This is the moment when I knew, I am going to snap. As it turned out, as soon as I got my paycheck, I run to the nearest Globul store and bought one.
After I play around with it for few weeks I will write a review. I have been always a Windows Mobile fan, that is why I also have a HTC Diamond. So I will write an article to point out what I like in the iPhone more and what I like about the HTC one, better than the Apple.
I just want to use this song to say “hi” to all of you out there, who sometimes just…sit and think about stuff…about life…
Just find it and listen it. Just a mind-blowing song…
March 18th, 2009 in
Lifestyle | tags:
music |
No Comments
Hello guys !
I haven’t had much time to write here recently, but starting from today I will try to post a new article every day. So add the RSS feed to keep posted
)))
Here is a collection of funny photos I have made with my mobile phone. Many of the photos are made from my car, while driving around the country (mostly in Sofia). I have uploaded them to my Facebook profile.
The link is here !
March 17th, 2009 in
Funny,
Photos | tags:
Funny,
Photos |
No Comments
Yesterday my office computer broke down very suddenly. I just started the computer and after Windows has loaded it just crashed. After repeating this Loaded-Crashed cycle a few times, I took it to the Administrator’s office and left it there. This morning I got it back and I was amazed by the cause of the problem. Here are the photos of my video adapter. I can imagine that only a massive power shock failure might have caused this to happen.
Today is my birthday. I have grown old. 24 year only.
And in the good mood of the day, outside is a lovely sunny day. The birds are singing, kids are running, people singing, cute girls dancing…oh my, I have to stop drinking
Anyway ! I wish everybody long live, happiness and prosperity !
Have a GREAT day !
February 6th, 2009 in
Lifestyle | tags:
birthday,
me |
No Comments
Today, while I was circling around my favourite “morning coffee” RSS feeds, I stumbled upon some of the PDC sessions on Silverlight that were held in the past few days, and I was just stunned by the very interesting session Microsoft Silverlight 2 for Mobile: Developing for Mobile Devices. I was just so fascinated by the session that I literally started laughing and everybody in the office just gazed at me in misunderstanding.
In the session you can see how Visual Studio can be run on Windows Mobile device. Yes it is pretty hard to write code and interact with the environment from the little screen of the mobile device, but still it is very very interesting !
This is not the first session from PDC, that I have watched. In the next days I will post more links and articles about the ones I have seen and what is interesting about them. Also I plan to post some articles about a few problems I stumbled upon my development in the last few month, so stay tuned !