http://bugs.winehq.com/show_bug.cgi?id=1506
Summary: Problem with variant array allocation in Wine Product: Wine Version: unspecified Platform: PC OS/Version: other Status: UNCONFIRMED Severity: critical Priority: P2 Component: wine-binary AssignedTo: wine-bugs@winehq.com ReportedBy: cozzuol@enter-net.com.br
Hi all, I was trying to use a statistical program called PAST under Wine. It use to run OK, but recently (with new Wine versions - wine-20030508, rpm version for Mandrake 9.1) I get some problems related to variant array allocation. Following is the feedback from the program owner, Oyvind Hammer (oyvind.hammer@nhm.uio.no). The Program site is http://folk.uio.no/ohammer/past
-------- quote ---------- To be precise, the problem is as follows. In Delphi, I do a:=VarArrayCreate([1,2,1,3], varDouble); This should allocate a variant array of size 2x3. And as expected, when I query the dimensions of the array in Windows, I get VarArrayHighBound(a, 1) = 2 and VarArrayHighBound(a, 2) = 3 However, under Wine I get the reverse, meaning that Wine has allocated a 3x2 array: VarArrayHighBound(a, 1) = 3 and VarArrayHighBound(a, 2) = 2 This causes "Variant index out of bounds" when I refer to the cell a[1,3] for example. --------- end quote ----------