<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Thanks for the suggestion, unfortunately, again, no dice. It seems
there is no way to serialize an IP object that derives from a .NET base
class. Even though the base class is marked as serializable, I still
get an error about the derived class not being marked as serializable
when I use the fepy pickle.<br>
<br>
I'd be interested to trying using the DLR hosting mechanism...does
anybody know of any docs about upgrading from IP 1.x to IP 2 script
hosting?<br>
<br>
Thanks, Paul<br>
<br>
Sanghyeon Seo wrote:
<blockquote
 cite="mid:5b0248170803261025i35ae47c6x6131dfb16db9541d@mail.gmail.com"
 type="cite">
  <pre wrap="">2008/3/26, Paul Turbett <a class="moz-txt-link-rfc2396E" href="mailto:sls@iinet.net.au">&lt;sls@iinet.net.au&gt;</a>:
  </pre>
  <blockquote type="cite">
    <pre wrap=""> It seems that whilst serializing .NET classes is trivial, and serializing
python classes is trivial, serializing something that touches both is
proving quite difficult.

 Any further suggestions gratefully received!
    </pre>
  </blockquote>
  <pre wrap=""><!---->
I suggest using copy_reg to register .NET class to Python pickle mechanism.
See: <a class="moz-txt-link-freetext" href="http://docs.python.org/lib/module-copyreg.html">http://docs.python.org/lib/module-copyreg.html</a>

I actually implemented this back in the last year.
<a class="moz-txt-link-freetext" href="http://lists.ironpython.com/pipermail/users-ironpython.com/2007-February/004509.html">http://lists.ironpython.com/pipermail/users-ironpython.com/2007-February/004509.html</a>
<a class="moz-txt-link-freetext" href="http://fepy.svn.sourceforge.net/svnroot/fepy/trunk/fepy/pickle.py">http://fepy.svn.sourceforge.net/svnroot/fepy/trunk/fepy/pickle.py</a>

  </pre>
</blockquote>
<br>
</body>
</html>