VirtualBox

Changeset 21299 in vbox for trunk/src/VBox/Main/glue


Ignore:
Timestamp:
Jul 7, 2009 9:32:01 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
49641
Message:

#3953: Workaround for the problem of input arrays being returned as output parameters when early binding is used.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/glue/vboxapi.py

    r21288 r21299  
    8181        'values_as_string': pre-processed values ready for 'print' statement
    8282        """
    83         (values, names_out, objects_out, units, scales, sequence_numbers,
    84             indices, lengths) = self.collector.queryMetricsData(names, objects)
     83        # Get around the problem with input arrays returned in output parameters (see #3953).
     84        if sys.platform == 'win32':
     85            (values, names, objects, names_out, objects_out, units, scales, sequence_numbers,
     86                indices, lengths) = self.collector.queryMetricsData(names, objects)
     87        else:
     88            (values, names_out, objects_out, units, scales, sequence_numbers,
     89                indices, lengths) = self.collector.queryMetricsData(names, objects)
    8590        out = []
    8691        for i in xrange(0, len(names_out)):
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette