[Bug 1506] New: Problem with variant array allocation in Wine

Wine Bugs wine-bugs at winehq.com
Mon Jun 2 22:45:13 CDT 2003


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 at winehq.com
        ReportedBy: cozzuol at 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 at 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 ----------

-- 
Configure bugmail: http://bugs.winehq.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the wine-bugs mailing list