Patches item #974578, was opened at 2004-06-17 18:30
Message generated for change (Comment added) made by mhammond
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551956&aid=974578&group_id=78018
Category: None
Group: None
>Status: Pending
Resolution: None
Priority: 5
Submitted By: Stefan Schukat (sschukat)
Assigned to: Nobody/Anonymous (nobody)
Summary: Empty Array generate an error if transported via COM
Initial Comment:
The new code for arbitrary SafeArrays wont allow the
transport of empty array. To resolve this problem an
else clause has to be added to oleargs.cpp in
PyCom_CalculatePyObjectDimension
if (!PyBuffer_Check(obItemCheck) &&
PySequence_Length(obItemCheck)) {
...
}
// New Code
else {
// Just an empty list so increase Dimension
lReturnDimension += 1;
}
// End new Code
----------------------------------------------------------------------
>Comment By: Mark Hammond (mhammond)
Date: 2004-07-13 17:30
Message:
Logged In: YES
user_id=14198
Can you please attach a test case that fails with the
current code? eg, I changed testvb.py to add:
# Empty array
_DoTestArray(vbtest, ())
# Empty child array
_DoTestArray(vbtest, ((), ()))
Further, I can't find the code you reference in oleargs.cpp
- if you still believe it must be added, can you supply a
patch (or the entire file if necessary)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551956&aid=974578&group_id=78018
|