Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Bug in DbResourceDataManager

$
0
0
Bug in DbResourceDataManager
West Wind Web Toolkit for ASP.NET
Bug in DbResourceDataManager
Jan. 21, 2013
09:19 am
3P40JZUEIShow this entire thread in new window
Gratar Image based on email address
From:Adam
To:All
Found a pretty nasty (IMHO) bug in DbResourceDataManager.cs, GetResourceSet @ line 120.

There's an insert into a dictionary that is within a try/catch block, but if an error is caught, there's no logging or handling.

My resource list is over a thousand items and didn't realize I had some duplicate ID's. Spent several hours trying to figure out what I was doing wrong before I finally ended up decompiling and debugging through the source only to see the dictionary insert throw an exception because there was a duplicate ID.

Not sure I see the point of adding a try/catch block if there's no code to process the error.

Adam



Viewing all articles
Browse latest Browse all 10393

Trending Articles