Greg
18 years ago
The following method (attached to my table) is causing AX to crash and I
can't figure out why...
void UpdateSelect(NoYesId updateValue)
{
;
update_recordset this
setting NYSelect = updateValue;
}
Now, when I use a standard while select and update the records one at a
time, it works fine. The following code works perfectly and doesn't cause AX
to crash:
void UpdateSelect(NoYesId updateValue)
{
;
ttsbegin;
while select forupdate this
{
this.NYSelect = updateValue;
this.update();
}
ttscommit;
}
This is running on Vista, if that makes a difference. Has anyone seen or
heard of the update_recordset command causing AX to crash?
Thanks
-Greg
can't figure out why...
void UpdateSelect(NoYesId updateValue)
{
;
update_recordset this
setting NYSelect = updateValue;
}
Now, when I use a standard while select and update the records one at a
time, it works fine. The following code works perfectly and doesn't cause AX
to crash:
void UpdateSelect(NoYesId updateValue)
{
;
ttsbegin;
while select forupdate this
{
this.NYSelect = updateValue;
this.update();
}
ttscommit;
}
This is running on Vista, if that makes a difference. Has anyone seen or
heard of the update_recordset command causing AX to crash?
Thanks
-Greg