Framework Lockup on DataSet.AcceptChanges call - Need help

  • Thread starter Thread starter Steve Hiner
  • Start date Start date
S

Steve Hiner

I have a dataset that I create using an XSD file. Ultimately I serialize
it to the file system. Prior to the serialization call I call
AcceptChanges on the DataSet to make sure I only save the current records
and minimize the size of the serialized file.

Every once in a while the framework seems to freeze on the AcceptChanges
call. If I'm running a debug version I can break into the code and look at
the call stack and it seems to be locking up somewhere in the
CurrencyManager code. I'm sorry I don't have the call stack to post here.
Next time it locks up in debug mode I'll be sure to post it here.

Anyone have any ideas? It only happens every once in a while, maybe once
every 20 or 30 times it's called, maybe less.

I want to deliver this to the customer but I can't deliver something that
randomly locks up on them. I'm working with time critical data and the app
has to run during the weekends to gather data. Random lockups will kill
me.

Thanks for any help you can provide (even if it's telling me I'm a moron
for calling AcceptChanges before the serialize).

Steve
 
Hi Steve,

Maybe data consumer is causing problems (your dataset is bound, right?).
You might create a copy of dataset and use it to acceptchange &
serialization...
 
Hi Steve,

Maybe data consumer is causing problems (your dataset is bound, right?).
You might create a copy of dataset and use it to acceptchange &
serialization...

Actually it isn't bound but I will try that technique anyway. It would be
a good excuse to add in asynchronous saves. Thanks for the suggestion.
 
Hi Steve,

"CurrencyManager" stuff in your question indicates that it might be bind...
 
Back
Top