It looks like you're using the wrong calling convention enum, it's expecting a System.Runtime.InteropServices.CallingConvention, and you're passing it a System.Reflection.CallingConventions.
This is the 2nd calling convention parameter, the 1st one is still a System.Reflection.CallingConventions. (and by the way, this is cool stuff Seo - I won't say any more so you can still surprise some people). -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Jacobs Sent: Tuesday, May 30, 2006 9:12 AM To: Discussion of IronPython Subject: Re: [IronPython] Takes at least 8 arguments (8 given) Tomi Valkeinen wrote: > I didn't read your code, but I got the same error from my code and the > reason was that one of the arguments to the method being called was of > wrong type. The error message didn't help much finding that bug =). > Perhaps you have the same problem. I've run into this a few times too. The exception should be a little more informative about what's wrong with your N arguments (or get a different exception, indicating the issue a little more clearly.) I usually get caught out when I pass a float instead of an integer. I'm wondering whether it is viable for IronPython to check whether converting the parameter(s) to the intended type (eg. float -> int) is something that might work, and if so use that. It could be that I'm just lazy but this is how C# works. -- Jonathan When you meet a master swordsman, show him your sword. When you meet a man who is not a poet, do not show him your poem. -- Rinzai, ninth century Zen master _______________________________________________ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com _______________________________________________ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com