<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-2">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Hi all,<br>
    this is just a reminder to what I have just found. All below was
    performed on Win7x64 in VirtualBox.<br>
    <br>
    When you use pyc.py to compile your code into .dll or .exe and your
    code uses some other libraries, make sure you specify target
    platform - i.e. <tt>/platform:x86</tt><br>
    <br>
    My code uses vfpoledb to access .dbf files. When I did not specify
    the platform, <tt>System.Reflection.PortableExecutableKinds.ILOnly</tt>
    was used which produced strange behavior:<br>
    <ul>
      <li>it was slower than interpreted code</li>
      <li>it crashes with 'vfpoledb is not registered error' although
        vfpoledb was registered and the interpreted code run OK</li>
      <li>it runs OK on the second VM<br>
      </li>
    </ul>
    When I specified switch <tt>/platform:x86</tt> for compiling, it
    runs correctly.<br>
    <br>
    --<br>
    -- Lukáš<br>
  </body>
</html>