Thanks Dino, the ctypes.memmove does work!
I wasn't aware that ctypes could be used in IronPython. Do they
marshal to unmanaged code under the hood?
Let me know if you want me to file a bug against the Marshal.Copy
overload behavior.
Thanks,
-- Marcel
On Jun 15, 11:42 am, Dino Viehland di
Ok, it's clear now. Thanks for the great support!
-- Marcel
On Jun 15, 9:21 pm, Dino Viehland di...@microsoft.com wrote:
Marcel wrote:
Thanks Dino, the ctypes.memmove does work!
I wasn't aware that ctypes could be used in IronPython. Do they
marshal to unmanaged code under the hood
?
The reason I chose array('B') was twofold. The pixel generation is
done in a pure Python library and I sometimes need to swap the byes
(depending on the endianness of the system), which the Python array
conveniently provides.
Thanks,
-- Marcel
On Jun 14, 7:05 am, Curt Hagenlocher c...@hagenlocher.org
pb.Parent = self
self.Size = Size(bitmap.Width + 20, bitmap.Height + 45)
self.CenterToScreen()
Application.Run(IForm())
Using bitmap.SetPixel works, but I cannot find how to make it work
using the LockBits and Marshal.Copy.
Thanks,
-- Marcel
On Jun 12, 10:27 pm, Curt
getting is:
TypeError: expected IntPtr, got array
Casting the bytes array to IntPtr changed the error into:
TypeError: expected int, got array
I'm using IronPython 2.6 (2.6.10920.0) on .NET 2.0.50727.4927
Any idea?
Thanks,
-- Marcel
On Jun 11, 11:27 pm, David Escobar davidesco...@ieee.org wrote
('a')
bytes.append('b')
bytes.append('c')
Marshal.Copy(bytes, dest, 0, 3)
Is there a way to make this work without copying the data? If not, how
do I convert the data in the Python array to the .NET array?
Thanks,
-- Marcel
___
Users mailing list
Users
Hi there,
I have a problem with my application. It's written in C# and embeds
IronPython. In C#, I have a class that looks like this:
public class foo
{
public foo()
{
...
}
...
}
I put this into the ScriptScope I use by doing:
scope.SetVariable(fooclass, typeof(foo));
no public constructors. Code:
class bar(fooclass):
def __init__(self):
Name = Unused
...
barobject = bar()
Well, I can't really say what this is about. Is it a Bug in IP or anything
like a limitation?
Greetings, Marcel
___
Users mailing
into that same issue or something else.
So the problem is with the UI Automation? Is there a way to verify
this comes from the same root cause?
Should I submit the issue in the codeplex issue tracker?
TIA,
-- Marcel
___
Users mailing list
Users@lists.ironpython.com