[IronPython] "Merlin" tutorial not working

Jeff Slutter jslutter at reactorzero.com
Mon Oct 13 07:19:44 CEST 2008


I'm going through the IronPython tutorial and I'm at the COM interop
part. I'm trying to get the Merlin example working but I can't get it
past a certain part.

First of all, I had to make some changes to get the example to work, as
it doesn't appear the tuple/out param stuff works the same as it does in
the tutorial.

Here is my code:

	agentServer = AgentServerClass();
	characterId = clr.Reference[int]();
	reqId = clr.Reference[int]();	

	agentServer.Load("Merlin.acs", characterId, reqId);	
	myMerlinCharacter = clr.Reference[object]();

	agentServer.GetCharacter(characterId.Value,myMerlinCharacter);
	merlinCharacter = myMerlinCharacter.Value;

	merlinCharacter.Show(0);

The exception happens when calling .GetCharacter. The error is:
An unhandled exception of type 'System.ArgumentException' occurred in
Microsoft.Scripting.Core.dll

Additional information: Could not convert argument 4294967295 for call
to GetCharacter.


Any ideas?
-Jeff



More information about the Ironpython-users mailing list