[C++-sig] Specified procedure could not be found

Niall Douglas s_sourceforge at nedprod.com
Thu Jun 21 14:24:07 CEST 2012


Doesn't matter if you use it, if it's linked then something you're 
using is using it.

If it isn't lazy linked, just one failed symbol import will fail the 
whole DLL dependency tree. No idea what might cause that in your 
case, maybe there's a mixing of different versions of system DLLs by 
various dependencies. Welcome to DLL hell!

I'd suggest you eliminate dependencies until the problem goes away. 
Start by lazy linking anything not absolutely necessary (though this 
pushes the fatal exit into the runtime).

Also, check a fresh install of Windows inside a virtual machine. 
You'll often find the problem isn't there, in which case it's a 
problem on your development machine. Maybe time for a wipe and 
reinstall if that's the case, saves time in the long run.

Niall

On 21 Jun 2012 at 15:39, Nagaraju wrote:

> Hi Niall,
> 
> Thanks a lot for your time.
> 
> I checked all the DLL's. Everything is showing ok. Only one is, IEFrame.DLL
> and in that for one function it is showing red in color. Function name as
> "#270".
> 
> We are not using that function/DLL anways.
> 
> Regards,
> Raju.
> 
> On Thu, Jun 21, 2012 at 3:23 PM, Niall Douglas <s_sourceforge at nedprod.com>wrote:
> 
> > With DW it's not so much that the libraries are present, but to check
> > that there are no failed symbol imports. Your error suggests a failed
> > symbol import.
> >
> > Niall
> >
> > On 21 Jun 2012 at 14:34, Nagaraju wrote:
> >
> > > Hi Niall,
> > >
> > > I have used the DW and all the libraries are present.
> > >
> > > The same code works, if I use LoadLibrary in C++. But when I try to build
> > > the C++ DLL code with extention ".pyd", it is throwing error.
> > >
> > > FYI, the C++ Class names are mangled.
> > >
> > > Regards,
> > > Raju.
> > >
> > > On Thu, Jun 21, 2012 at 2:30 PM, Niall Douglas <
> > s_sourceforge at nedprod.com>wrote:
> > >
> > > > You might find Microsoft's Dependency Walker useful.
> > > >
> > > > http://www.dependencywalker.com/
> > > >
> > > > Niall
> > > >
> > > >
> > > > On 21 Jun 2012 at 10:01, Nagaraju wrote:
> > > >
> > > > > Hi All,
> > > > >
> > > > > I have written a C++ DLL. That DLL depends on some other libraries. I
> > > > have
> > > > > kept all those dependent libraries in the release folder.
> > > > >
> > > > > Now in a seperate project in Visual Studio 2008, I used BOOST Python
> > and
> > > > > called a function from one of the classes in C++ DLL.
> > > > >
> > > > > It is compiling fine (compiling it as .pyd), but when I try to import
> > > > this
> > > > > in python with "import PythonSample", it is throwing following error.
> > > > >
> > > > > Import Error: DLL Load Failed: The specified procedure could not be
> > > > found.
> > > > >
> > > > > Can you tell me, how to find what went wrong? I tried googling it,
> > but
> > > > > could not find suitable solution.
> > > > >
> > > > > I am using Python 2.7 version.
> > > > >
> > > > > Thanks for your time.
> > > > >
> > > > > Regards,
> > > > > Raju.
> > > > >
> > > >
> > > >
> > > > --
> > > > Technology & Consulting Services - ned Productions Limited.
> > > > http://www.nedproductions.biz/. VAT reg: IE 9708311Q.
> > > > Work Portfolio: http://careers.stackoverflow.com/nialldouglas/
> > > > _______________________________________________
> > > > Cplusplus-sig mailing list
> > > > Cplusplus-sig at python.org
> > > > http://mail.python.org/mailman/listinfo/cplusplus-sig
> > > >
> > >
> >
> >
> > --
> > Technology & Consulting Services - ned Productions Limited.
> > http://www.nedproductions.biz/. VAT reg: IE 9708311Q.
> > Work Portfolio: http://careers.stackoverflow.com/nialldouglas/
> > _______________________________________________
> > Cplusplus-sig mailing list
> > Cplusplus-sig at python.org
> > http://mail.python.org/mailman/listinfo/cplusplus-sig
> >
> 


-- 
Technology & Consulting Services - ned Productions Limited.
http://www.nedproductions.biz/. VAT reg: IE 9708311Q.
Work Portfolio: http://careers.stackoverflow.com/nialldouglas/


More information about the Cplusplus-sig mailing list