Re: [IronPython] poplib.POP3_SSL OutOfMemory Issue

2009-11-17 Thread matan keret
Toni and Tony, thank you for the suggestions :-) it seems for now that i can manage to do what i want with the Imap lib. so I'm gonna leave this bug for now. cheers, Matan On Tue, Nov 17, 2009 at 9:39 AM, Tony Meyer wrote: > > What was the prob with py 2.5 poplib with ip 2.6? Might be something

Re: [IronPython] Using a struct from OpenMetaverse assembly

2009-11-16 Thread matan keret
seTypes.dll. > > > > 2009/11/16 matan keret > > Michael Wrote: >>> Out of interest, why not: >>> >>> clr.AddReference('OpenMetaverse') >>> >>> > true.. no reason really, i changed it now to use AddReference. What is >>

Re: [IronPython] Using a struct from OpenMetaverse assembly

2009-11-16 Thread matan keret
> > > Browing the source for this project, it looks like the UUID struct is > actually in a different dll - OpenMetaverseTypes.dll. > True!! I didn't notice that... :-S This DLL is located in the same place as OpenMetaverse.dll. So I tried: clr.AddReference(*'OpenMetaverseTypes'*) from OpenMetave

Re: [IronPython] Using a struct from OpenMetaverse assembly

2009-11-16 Thread matan keret
> > Michael Wrote: > Out of interest, why not: > > clr.AddReference('OpenMetaverse') > > > true.. no reason really, i changed it now to use AddReference. What is > the difference by the way? > > OpenMeta = asm2.OpenMetaverse >> >> dir(OpenMeta) >> >> > wasn't familier with that. it gave me

[IronPython] Using a struct from OpenMetaverse assembly

2009-11-16 Thread matan keret
Hi everyone, I'm trying to use the UUID struct from OpenMetaverse assembly (this is C# code) from IronPy 2.0.3. I'm using: asm2 = clr.LoadAssemblyByName(*'OpenMetaverse'*) OpenJPEG = asm2.OpenMetaverse.Imaging.OpenJPEG in order to use OpenJPEG class. this works fine, but when i try to do: UUID

Re: [IronPython] poplib.POP3_SSL OutOfMemory Issue

2009-11-15 Thread matan keret
I tried that as well :-) you are right, the _ssl module is a problem and I don't know how to work around that (don't know that much about py). also tried to use it in IP 2.0.3 but the implementation is different and I'll need to dig much more in that to make it work. Which is not my main goal right

Re: [IronPython] poplib.POP3_SSL OutOfMemory Issue

2009-11-15 Thread matan keret
Hi again, > Just a warning: you included your username and password with your code > you should probably immediately change your password. It's OK this is a mail box for testing only so nothing to worry about, there is nothing there :-) > If you start up an IP shell and just do this (and 'import

[IronPython] poplib.POP3_SSL OutOfMemory Issue

2009-11-15 Thread matan keret
Hi everyone! i wrote the next code which suppose to go to my hotmail account, fetch the last email's image attachment and save it to a file: import email, poplib, os, string def get_messages_id(message_list): items = [] for message in message_list[1]: message_parts = string.split

Re: [IronPython] DLR Hosting, IronPython Engine shutdown issues

2009-11-13 Thread matan keret
but it’s logging and some > cleanup which will happen on its own. So there’s no need to really call a > Dispose type method. > > > > *From:* users-boun...@lists.ironpython.com [mailto: > users-boun...@lists.ironpython.com] *On Behalf Of *matan keret > *Sent:* Friday

[IronPython] DLR Hosting, IronPython Engine shutdown issues

2009-11-13 Thread matan keret
Hi everyone, In the old IronPython hosting API there used to be a simple pyEngine.Shutdown() command. And then for cleanup we used: pyEngine.Dispose() What is the equivalent in the new hosting API's? (am using IronPython 2.0.3) I found that there is something like: pyEngine.Runtime.Shutdown(); D

Re: [IronPython] How to convert a 'str' type to byteArray

2009-11-12 Thread matan keret
Thank you all for your help! i tried the buffer idea, but it gave me a 'buffer' type and not a byteArray. so i tried Michael's idea, which gave me some error. but then I found this post: http://www.smallshire.org.uk/sufficientlysmall/tag/ironpython/ I fixed the code to: from System import Array,

[IronPython] How to convert a 'str' type to byteArray

2009-11-11 Thread matan keret
hi, I have the following code which gets an image from an email. after getting it i need to pass it as a byteArray (byte[] in C#) to a C# function. i tried all sorts of things but no luck. I'm using ironPython 2.0.3 the important parts of the code are: # getting the image from the e-mail image =