Sign in to follow this  
chbfiv

.NET Dataset.Table.Select() unreliable?

Recommended Posts

So I have a Dataset, and use it allot during runtime. Randomly somewhere in the process of selecting DataRows it'll decide that the content isn't there this time, or that the Table itself doesn't exist this time(Exceptioning out), but will work fine on the next Select happening ms' later, 500+/- or more times before or after that problematic Select. I can only assume that the data is corrupted during a read? or the GC is adjusting memory locations? I really am clueless atm as to why. So any ideas on what would cause this are welcome! Bourke Edit: Also as a quick example. I'll select a certain Column with a message value MyTable.Tables["Foo"].Select("Message='TEST'"); works fine, then I'll select more random Messages and then Select the first one again MyTable.Tables["Foo"].Select("Message='TEST'"); but the Select will return a empty DataRow object or, Exception out that the Table isnt ref to an obj. then it'll work again a ton more times, randomly doing the same as above for other messages....

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this