Hi, the issue is the mentioned in the subject of this post.
First I can't share the code since is propietary and don't know how to replicate the code. I can share you only this small subset, and hopefully this can help to understand the problem:
if not Assigned(Promociones) then
exit;
if (not tblRenglones.IsEmpty) and (not Clientes.IsEmpty) then
try
if Assigned(Promociones) and not Promociones.Active then
try
Promociones.Active := True;
except
exit;
end;
Promociones: Promotions in spanish
Clientes: Customers in spanish, basically that is not empty and there is no problem with that
lblRenglones is not empty basically there is no problem with that
Promociones: TBufDataset;
Basically the code goes until this line:
Promociones.Active := True;
And then the exception appears.
My question is why if there is a try..except that does not works and exception it's fired exactly in that line (7 of snippet)?
If you need more details please ask and I will try to provide them.