I am having a problem. I am running Windows XP, Python 2.5.4.<br><br>I have a custom library which uses python&#39;s urllib2 to download data. The import statement inside the call looks like this:<br><br>    boost::python::object urllib = boost::python::import(&quot;urllib2&quot;);<br>

<br>This works fine when I use my custom library in an executable application. When I use the library in a dll, while executing, it raises this exception:<br><br>    WindowsError: exception: access violation reading 0x00000008<br>

<br>It is happening exactly at this import statement. I tried importing the &#39;sys&#39; module first, setting library search path and then run, but its failing to import even the sys module, and fails with the same error. Any advice on how I could fix this?<br>

<br><br>--<br>Sahasranaman MS<br>