VC 2005 Beta 2 - Initialization failure

A

Adriano Coser

Hello.

I've just finished the compilation of my application with VC 2005 Beta 2
(Express edition) and I'm getting the following initialization error loading
one of my DLLs:

LDR: LdrpWalkImportDescriptor() failed to probe
c:\Fontes\QiCad.NET\QIVRebar.dll for its manifest, ntstatus 0xc0150002

The same program runs fine when compiled with VS 2003.
Bellow is the initialization log. Does anyone have an idea of what is
causing the problem?

Thanks in advance.

Regards,

Adriano.

'QiCad.NET.exe': Loaded 'C:\Fontes\QiCad.NET\QiCad.NET.exe', Symbols loaded.

'QiCad.NET.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', Exports loaded.

'QiCad.NET.exe': Loaded 'C:\WINDOWS\system32\mscoree.dll', Exports loaded.

'QiCad.NET.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', Exports loaded.

'QiCad.NET.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', Exports loaded.

'QiCad.NET.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', Exports loaded.

'QiCad.NET.exe': Loaded 'C:\Fontes\QiCad.NET\QIVLibrary.dll', Symbols
loaded.

'QiCad.NET.exe': Loaded 'C:\WINDOWS\system32\lz32.dll', Binary was not built
with debug information.

'QiCad.NET.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', Exports loaded.

'QiCad.NET.exe': Loaded 'C:\WINDOWS\system32\user32.dll', Exports loaded.

'QiCad.NET.exe': Loaded 'C:\WINDOWS\system32\shell32.dll', Exports loaded.

'QiCad.NET.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', Exports loaded.

'QiCad.NET.exe': Loaded 'C:\WINDOWS\system32\shlwapi.dll', Exports loaded.

'QiCad.NET.exe': Loaded 'C:\WINDOWS\system32\winspool.drv', Exports loaded.

'QiCad.NET.exe': Loaded 'C:\WINDOWS\system32\comdlg32.dll', Exports loaded.

'QiCad.NET.exe': Loaded 'C:\WINDOWS\system32\comctl32.dll', Exports loaded.

'QiCad.NET.exe': Loaded
'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50215.4652_x-ww_a12cf373\msvcr80d.dll',
Exports loaded.

'QiCad.NET.exe': Loaded
'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50215.4652_x-ww_a12cf373\msvcp80d.dll',
Exports loaded.

'QiCad.NET.exe': Loaded 'C:\Fontes\QiCad.NET\QIVPersistence.dll', Symbols
loaded.

'QiCad.NET.exe': Loaded 'C:\Fontes\QiCad.NET\QIVRebar.dll', Symbols loaded.

LDR: LdrpWalkImportDescriptor() failed to probe
c:\Fontes\QiCad.NET\QIVRebar.dll for its manifest, ntstatus 0xc0150002
 
A

Adriano Coser

I've changed the 'Embed manifest' property to 'No' on my DLL projects and
the problem gone away.

Adriano.

AltoQi - Tecnologia Aplicada à Engenharia Adriano Coser Departamento de
Desenvolvimento Tel.: (48) 239-7000 ramal: 7069 e-mail: (e-mail address removed)
website: www.altoqi.com.br
 
G

Guest

Adriano Coser said:
Hello.

I've just finished the compilation of my application with VC 2005 Beta 2
(Express edition) and I'm getting the following initialization error loading
one of my DLLs:

LDR: LdrpWalkImportDescriptor() failed to probe
c:\Fontes\QiCad.NET\QIVRebar.dll for its manifest, ntstatus 0xc0150002

The same program runs fine when compiled with VS 2003.
Bellow is the initialization log. Does anyone have an idea of what is
causing the problem?

Thanks in advance.

Regards,

Adriano.

'QiCad.NET.exe': Loaded 'C:\Fontes\QiCad.NET\QiCad.NET.exe', Symbols loaded.

'QiCad.NET.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', Exports loaded.

'QiCad.NET.exe': Loaded 'C:\WINDOWS\system32\mscoree.dll', Exports loaded.

'QiCad.NET.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', Exports loaded.

'QiCad.NET.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', Exports loaded.

'QiCad.NET.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', Exports loaded.

'QiCad.NET.exe': Loaded 'C:\Fontes\QiCad.NET\QIVLibrary.dll', Symbols
loaded.

'QiCad.NET.exe': Loaded 'C:\WINDOWS\system32\lz32.dll', Binary was not built
with debug information.

'QiCad.NET.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', Exports loaded.

'QiCad.NET.exe': Loaded 'C:\WINDOWS\system32\user32.dll', Exports loaded.

'QiCad.NET.exe': Loaded 'C:\WINDOWS\system32\shell32.dll', Exports loaded.

'QiCad.NET.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', Exports loaded.

'QiCad.NET.exe': Loaded 'C:\WINDOWS\system32\shlwapi.dll', Exports loaded.

'QiCad.NET.exe': Loaded 'C:\WINDOWS\system32\winspool.drv', Exports loaded.

'QiCad.NET.exe': Loaded 'C:\WINDOWS\system32\comdlg32.dll', Exports loaded.

'QiCad.NET.exe': Loaded 'C:\WINDOWS\system32\comctl32.dll', Exports loaded.

'QiCad.NET.exe': Loaded
'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50215.4652_x-ww_a12cf373\msvcr80d.dll',
Exports loaded.

'QiCad.NET.exe': Loaded
'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50215.4652_x-ww_a12cf373\msvcp80d.dll',
Exports loaded.

'QiCad.NET.exe': Loaded 'C:\Fontes\QiCad.NET\QIVPersistence.dll', Symbols
loaded.

'QiCad.NET.exe': Loaded 'C:\Fontes\QiCad.NET\QIVRebar.dll', Symbols loaded.

LDR: LdrpWalkImportDescriptor() failed to probe
c:\Fontes\QiCad.NET\QIVRebar.dll for its manifest, ntstatus 0xc0150002

Hi Adriano,
In order to understand the problem better, I would need the following
information.
1. Which compiler did you build QIVRebar.dll with, looks like it was not
beta2 but just making sure.
2. What are the dependencies of that dll ?
Do a dumpbin /dependents QIVRebar.dll to figure that out.
3. If there are any of your dll's which itQIVRebar.dll depends on, what were
they build with.

It looks to me that one of the dll's are not build with beta2 and that could
be part of the problem. Also check out this link and see if it helps.
http://msdn.microsoft.com/msdnmag/issues/02/03/Loader/

Thanks,
Kapil
 
G

Guest

Adriano Coser said:
I've changed the 'Embed manifest' property to 'No' on my DLL projects and
the problem gone away.

That is a little weird. My understanding is that you cannot load dll's
without an embedded manifest. Did you recompile the dll with beta2 or was it
precompiled from everett or beta1?

Thanks.
Kapil
 
A

Adriano Coser

Kapil, thanks for your answer.

I believe I built all DLLs with Beta-2, but I'll check again. QIVRebar.dll
has a number of dependencies and maybe I forgot something.

I'll give you a feedback soon.

Thanks,
Adriano.

AltoQi - Tecnologia Aplicada à Engenharia Adriano Coser Departamento de
Desenvolvimento Tel.: (48) 239-7000 ramal: 7069 e-mail: (e-mail address removed)
website: www.altoqi.com.br
 
A

Adriano Coser

Kapil.

I you're right. I forgot an external dependence that was compiled with
Beta-1. I rebuilt all my DLLs with Beta-2 and the 'manifest' problem
desapeared.

Thanks for you help.
Adriano.

AltoQi - Tecnologia Aplicada à Engenharia Adriano Coser Departamento de
Desenvolvimento Tel.: (48) 239-7000 ramal: 7069 e-mail: (e-mail address removed)
website: www.altoqi.com.br
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top