Troubleshooting - ERROR : 2000 - A procedure couldn't be found in library (Cg Shader)


Problem

You've installed a custom Cg Shader into your workgroup or user folder and you get the error:

   ' ERROR : 2000 - A procedure couldn't be found in library: o:\Client\Workgroup\Application\bin\nt-x86\cgClientShader.dll. The library will not be loaded.

Solution

You need to check which version of the cg DLLs XSI is finding.

If you have Microsoft Visual Studio you can attach to the XSI process. If you connect and disconnect the workgroup you'll see which version gets loaded.

'XSI.exe': Loaded 'O:\Client\Workgroup\Application\bin\nt-x86\cgClientShader.dll', Symbols loaded.
'XSI.exe': Loaded 'C:\Softimage\XSI_6.5\Application\bin\XSI_OGLHelper.dll', Binary was not built with debug information.
'XSI.exe': Loaded 'C:\Program Files\Autodesk\Maya8.5\bin\cg.dll', Binary was not built with debug information.
First-chance exception at 0x7c96478e in XSI.exe: 0xC0000139: Entry Point Not Found.
'XSI.exe': Unloaded 'O:\Client\Workgroup\Application\bin\nt-x86\cgClientShader.dll'
'XSI.exe': Unloaded 'C:\Program Files\Autodesk\Maya8.5\bin\cg.dll'
'XSI.exe': Unloaded 'C:\Softimage\XSI_6.5\Application\bin\XSI_OGLHelper.dll'

Once you detected which version you're finding you just need to change the PATH environment variable to load the correct version e.g.

Wrong:

Path=C:\Program Files\Autodesk\Maya8.5\bin;C:\Python24\.;C:\Perl\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Common Files\Softimage;C:\Program Files\NVIDIA Corporation\Cg\bin;

Right

Path=C:\Program Files\NVIDIA Corporation\Cg\bin;C:\Program Files\Autodesk\Maya8.5\bin;C:\Python24\.;C:\Perl\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Common Files\Softimage;

This page was last modified 16:25, 5 Jun 2008.
This page has been accessed 1743 times.