I am having a problem. I am running Windows XP, Python 2.5.4.<br><br>I have a custom library which uses python's urllib2 to download data. The import statement inside the call looks like this:<br><br> boost::python::object urllib = boost::python::import("urllib2");<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 'sys' 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>