When I open a resultset from a MDX query containing an infinite value (eg, divide by zero), line (1) throws "unexpected internal error".
If I write line (1) into a try/except block, next non-infinite values cannot be read either.
If I write the same MDX query in MDX Sample Application, works fine.

What should I do to display the resultset?

Thanks.
-------

procedure TForm2.CellGrid(DataSource: WideString);
var
i,j: word;
cellSet1: Variant;
s: string
begin
cellSet1:=CreateOleObject('ADOMD.Cellset');
cellSet1.Open(Memo1.Text,DataSource);

...
s:=Cellset1.Item[i-1, j-1].FormattedValue; <<----(1)