A
Andreas van de Sand
Hi everyone,
I'm developing a simple c# app (.net 1.1, vs2003sp1, winxp) which gets data
from an access database.
My problem at the moment is a concurrencyViolation Exception, being thrown
in an update of two simple rows in one table. No joins or anything like
that, just two tiny little changes.
looks somewhat like this:
As soon as the update is executed I get this exception. I'm the only user,
there can't be any collisions with others.
And, another funny thing, I start my application, do some stuff and get this
error, restart the application and it all works fine!? I really don't
understand this... anyone any suggestions?
Much apreciated...
many thanks, Andy
I'm developing a simple c# app (.net 1.1, vs2003sp1, winxp) which gets data
from an access database.
My problem at the moment is a concurrencyViolation Exception, being thrown
in an update of two simple rows in one table. No joins or anything like
that, just two tiny little changes.
looks somewhat like this:
Code:
dseData.tblBusinessAreaRow thisRow =
tblBusinessArea.FindByBusinessAreaID(intSomeID);
dseData.tblBusinessAreaRow lastRow =
tblBusinessArea.FindByBusinessAreaID(intSomeOtherID);
lastRow.BeginEdit();
lastRow.Priority = intSomeNewPriority;
lastRow.EndEdit();
thisRow.BeginEdit();
thisRow.Priority = intSomeOtherNewPriority;
thisRow.EndEdit();
DataAdapter.Update(dseData1);
As soon as the update is executed I get this exception. I'm the only user,
there can't be any collisions with others.
And, another funny thing, I start my application, do some stuff and get this
error, restart the application and it all works fine!? I really don't
understand this... anyone any suggestions?
Much apreciated...
many thanks, Andy