Re: [IronPython] Problem Closing Application

2010-06-14 Thread Anthony
Hi Michael Sorry for the late reply - only got back to my email this morning :-) I tried to close the form - but when doing that - the whole application closed - I think this was mainly due to the fact that that form was seen as the main form?? Sorry about this real noob question - but I'm just

[IronPython] Expression and lambda functions

2010-06-14 Thread Severin Obertuefer
Hello I have an c# class with a method taking an expression: *Refresh(System.Linq.Expressions.ExpressionFuncT, bool predicate)* in c# I can call it like; *Refresh(a = a.ShopArtikel == true);* is it possible to call the method from python in a similar way? I'm thinking of *Refresh(lambda a:

Re: [IronPython] Problem Closing Application

2010-06-14 Thread Michael Foord
On 14/06/2010 08:53, Anthony wrote: Hi Michael Sorry for the late reply - only got back to my email this morning :-) I tried to close the form - but when doing that - the whole application closed - I think this was mainly due to the fact that that form was seen as the main form?? I thought

Re: [IronPython] Problem Closing Application

2010-06-14 Thread Anthony
Hi No if I run that code - and I am presented with the MainForm form, when I hit the close button on the top of the form - the application is still running in the background. If I try to close the Log_In form programatically, instead of just hiding it, the whole application closes - without

Re: [IronPython] Problem Closing Application

2010-06-14 Thread Lukas Cenovsky
Anthony wrote: Hi Michael Sorry for the late reply - only got back to my email this morning :-) I tried to close the form - but when doing that - the whole application closed - I think this was mainly due to the fact that that form was seen as the main form?? Sorry about this real noob

Re: [IronPython] Convert between python array and .NET Array

2010-06-14 Thread Curt Hagenlocher
Ah, I'm clearly not familiar with how the array type was implemented. The first member of the buffer_info() tuple is an IntPtr, so you probably want the [IntPtr, int, IntPtr, int] overload of Marshal.Copy. In fact, if you use the buffer_info() approach, you may be able to avoid manually specifying

[IronPython] IronPython 2.6 CodePlex Source Update

2010-06-14 Thread merllab
This is an automated email letting you know that sources have recently been pushed out. You can download these newer sources directly from http://ironpython.codeplex.com/SourceControl/changeset/view/68511. MODIFIED SOURCES

Re: [IronPython] Expression and lambda functions

2010-06-14 Thread Jeff Hardy
On Mon, Jun 14, 2010 at 3:12 AM, Severin Obertuefer s...@gmx.ch wrote: how can I convert the lambda function to the expeced expression type? It's not currently possible, as far as I know. You should vote for issue #26044 http://ironpython.codeplex.com/workitem/26044 . - Jeff

Re: [IronPython] IronPython ASP.net MVC

2010-06-14 Thread Jimmy Schementi
To just use the IronPython engine in a ASP.NET application, place the DLLs in the same place you would put other 3rd party DLLs; a bin directory at the root of the app (same dir as your web.config). See http://aspnet.codeplex.com/wikipage?title=Dynamic%20Language%20Support for direct

Re: [IronPython] Debugging IronPython script using IronPython tools for Visual Studio(CP2)

2010-06-14 Thread yngipy hernan
Ok, I need help. Can't find in internet how to enable breaking on import exception. Anyone knows how to do this? Regards, Yngipy On Mon, Jun 14, 2010 at 11:53 AM, yngipy hernan yng...@gmail.com wrote: *RE: Can you enable breaking on the import exception (or all exceptions and continue after

Re: [IronPython] Debugging IronPython script using IronPython tools for Visual Studio(CP2)

2010-06-14 Thread yngipy hernan
Ok, I am sure if what I did was correct. I did Debug | Exceptions..., since I don't know why exceptions, I just checked all. Then this is what I got: 'ipy.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'

Re: [IronPython] Convert between python array and .NET Array

2010-06-14 Thread Marcel
Hi Curt, I did try that overload but I get this quite amusing error message: TypeError: Copy() takes at least 2147483647 arguments (4 given) Without the explicit overload selection, I get: TypeError: expected IntPtr, got int Did the example work for you with the overload you suggested? The