Panda & VisualC++ 2010

Hi,

I’m trying to run Panda3d on VisualC++ 2010. I’ve installed it, the samples run ok. The problem is that I can’t run any applications I make.

This is what I’ve done:
Created new general empty project,
Set project to release
Right click on project, went to debuggint, set merge environment to Yes and Environment path to PATH=c:\Panda3D-1.7.0\bin
Went to VC++ Directories and set the directories accordingly.
Did the same with Linker\Input

My problem is the following, I get an unhandled exception and what I see is this:

‘PandaTemplate.exe’: Loaded ‘C:\Documents and Settings\Lucian\My Documents\Visual Studio 2010\Projects\PandaTemplate\Release\PandaTemplate.exe’, Symbols loaded.
‘PandaTemplate.exe’: Loaded ‘C:\WINDOWS\system32\ntdll.dll’, Cannot find or open the PDB file
‘PandaTemplate.exe’: Loaded ‘C:\WINDOWS\system32\kernel32.dll’, Cannot find or open the PDB file
‘PandaTemplate.exe’: Loaded ‘C:\Panda3D-1.7.0\bin\libp3framework.dll’, Cannot find or open the PDB file
‘PandaTemplate.exe’: Loaded ‘C:\Panda3D-1.7.0\bin\libpanda.dll’, Cannot find or open the PDB file
‘PandaTemplate.exe’: Loaded ‘C:\Panda3D-1.7.0\bin\libpandaexpress.dll’, Cannot find or open the PDB file
‘PandaTemplate.exe’: Loaded ‘C:\Panda3D-1.7.0\bin\libp3dtool.dll’, Cannot find or open the PDB file
‘PandaTemplate.exe’: Loaded ‘C:\WINDOWS\system32\shell32.dll’, Cannot find or open the PDB file
‘PandaTemplate.exe’: Loaded ‘C:\WINDOWS\system32\advapi32.dll’, Cannot find or open the PDB file
‘PandaTemplate.exe’: Loaded ‘C:\WINDOWS\system32\rpcrt4.dll’, Cannot find or open the PDB file
‘PandaTemplate.exe’: Loaded ‘C:\WINDOWS\system32\secur32.dll’, Cannot find or open the PDB file
‘PandaTemplate.exe’: Loaded ‘C:\WINDOWS\system32\gdi32.dll’, Cannot find or open the PDB file
‘PandaTemplate.exe’: Loaded ‘C:\WINDOWS\system32\user32.dll’, Cannot find or open the PDB file
‘PandaTemplate.exe’: Loaded ‘C:\WINDOWS\system32\msvcrt.dll’, Cannot find or open the PDB file
‘PandaTemplate.exe’: Loaded ‘C:\WINDOWS\system32\shlwapi.dll’, Cannot find or open the PDB file
‘PandaTemplate.exe’: Loaded ‘C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.4974_x-ww_d889290f\msvcr90.dll’, Cannot find or open the PDB file
‘PandaTemplate.exe’: Loaded ‘C:\Panda3D-1.7.0\bin\python26.dll’, Cannot find or open the PDB file
‘PandaTemplate.exe’: Loaded ‘C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.4974_x-ww_d889290f\msvcp90.dll’, Cannot find or open the PDB file
‘PandaTemplate.exe’: Loaded ‘C:\Panda3D-1.7.0\bin\libp3dtoolconfig.dll’, Cannot find or open the PDB file
‘PandaTemplate.exe’: Loaded ‘C:\WINDOWS\system32\wsock32.dll’, Cannot find or open the PDB file
‘PandaTemplate.exe’: Loaded ‘C:\WINDOWS\system32\ws2_32.dll’, Cannot find or open the PDB file
‘PandaTemplate.exe’: Loaded ‘C:\WINDOWS\system32\ws2help.dll’, Cannot find or open the PDB file
‘PandaTemplate.exe’: Loaded ‘C:\WINDOWS\system32\winmm.dll’, Cannot find or open the PDB file
‘PandaTemplate.exe’: Loaded ‘C:\Panda3D-1.7.0\bin\cg.dll’, Cannot find or open the PDB file
‘PandaTemplate.exe’: Loaded ‘C:\Panda3D-1.7.0\bin\avcodec-51-panda.dll’, Binary was not built with debug information.
‘PandaTemplate.exe’: Loaded ‘C:\Panda3D-1.7.0\bin\avutil-49-panda.dll’, Binary was not built with debug information.
‘PandaTemplate.exe’: Loaded ‘C:\Panda3D-1.7.0\bin\avformat-50-panda.dll’, Binary was not built with debug information.
‘PandaTemplate.exe’: Loaded ‘C:\WINDOWS\system32\msvcp100.dll’, Symbols loaded.
‘PandaTemplate.exe’: Loaded ‘C:\WINDOWS\system32\msvcr100.dll’, Symbols loaded.
‘PandaTemplate.exe’: Loaded ‘C:\WINDOWS\system32\shimeng.dll’, Cannot find or open the PDB file
‘PandaTemplate.exe’: Loaded ‘C:\WINDOWS\system32\imm32.dll’, Cannot find or open the PDB file
‘PandaTemplate.exe’: Loaded ‘C:\WINDOWS\system32\lpk.dll’, Cannot find or open the PDB file
‘PandaTemplate.exe’: Loaded ‘C:\WINDOWS\system32\usp10.dll’, Cannot find or open the PDB file
‘PandaTemplate.exe’: Loaded ‘C:\Program Files\Sophos\Sophos Anti-Virus\sophos_detoured.dll’, Cannot find or open the PDB file
‘PandaTemplate.exe’: Loaded ‘C:\WINDOWS\system32\psapi.dll’, Cannot find or open the PDB file
‘PandaTemplate.exe’: Loaded ‘C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.5512_x-ww_35d4ce83\comctl32.dll’, Cannot find or open the PDB file
‘PandaTemplate.exe’: Loaded ‘C:\WINDOWS\system32\comctl32.dll’, Cannot find or open the PDB file
‘PandaTemplate.exe’: Unloaded ‘C:\WINDOWS\system32\shimeng.dll’
First-chance exception at 0x7855af68 in PandaTemplate.exe: 0xC0000005: Access violation reading location 0x6f57206f.
Unhandled exception at 0x7855af68 in PandaTemplate.exe: 0xC0000005: Access violation reading location 0x6f57206f.
The program ‘[880] PandaTemplate.exe: Native’ has exited with code 0 (0x0).

Please Please Please help

The messages about missing pdb files are not too surprising, since pdb files are not provided for these dll’s. But the segment fault is something else.

It’s impossible to say from here what’s causing the segment fault; you’ll have to use the Visual Studio debugger to see the stack trace at the time of the fault; it might be a problem with your application.

Note, though, that people have reported problems using MSVS 2010 with Panda3D, since the version provided here is compiled with MSVS 2008, and the two compilers are not completely compatible. So you should probably switch to MSVS 2008 instead, or build your own version of Panda3D entirely using MSVS 2010.

David

" You must set your new project to “Release” mode. This is absolutely necessary, because the version of Panda that’s provided for download on this website is also built in “Release” mode, and in MSVS, you can’t mix-and-match Release and Debug projects, especially if both of them are C++. "

i have same problems. i have windows 7. however, the problem gives it to run because the file compiles correctly. there is a solution for it?

You have resurrected an old thread. More recent threads are more explicit on the nature of the compability issues between 2008 and 2010.

The solution is to use MSVS 2008. You cannot use 2010 in conjunction with the Panda build provided on this site; it will compile but fail to run correctly. This is because the ABI between 2008 and 2010 is incompatible, so if you use 2010 to compile some of your program, you must use 2010 to compile all of it (including Panda itself). But the Panda distributed on this site was already compiled with 2008.

It is theoretically possible to build Panda entirely from source using 2010, but you will also have to compile all of the third-party libraries that Panda links with, and no one has yet done this work.

David

I have partially solved this problem by loading the symbols, as explained on this page msdn.microsoft.com/it-it/library/4c8f14c9% 28v = VS.90% 29.aspx (Italino is the explanation) . The current problem is that I open the terminal but do not run the program.

The current problem is when the source code contains templates to be loaded. In this case presents itself to me the error: ‘ProvaConfigurazione.exe’: Loaded ‘C: \ Panda3D-1.7.2 \ bin \ libp3ptloader.dll’, Exports loaded.
‘ProvaConfigurazione.exe’: Loaded ‘C: \ Panda3D-1.7.2 \ bin \ libpandaegg.dll’, Exports loaded.
‘ProvaConfigurazione.exe’: Loaded ‘C: \ Windows \ System32 \ profapi.dll’, Symbols loaded (source information removed).
First chance exception at 0x0130a317 (libpanda.dll) in ProvaConfigurazione.exe: 0xC0000005: Access violation reading location in 0x737265db.
Unhandled exception at 0x76f97094 (ntdll.dll) in ProvaConfigurazione.exe: 0xC0000005: Access violation.
Unhandled exception at 0x76f97094 (ntdll.dll) in ProvaConfigurazione.exe: 0xC0000005: Access violation.

I quote all the debugging
‘ProvaConfigurazione.exe’: caricato ‘C:\Users\Samuele grafica\Documents\Visual Studio 2010\Projects\ProvaConfigurazione\Release\ProvaConfigurazione.exe’, Simboli caricati.
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\ntdll.dll’, Simboli caricati (informazioni di origine rimosse).
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\kernel32.dll’, Simboli caricati (informazioni di origine rimosse).
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\KernelBase.dll’, Simboli caricati (informazioni di origine rimosse).
‘ProvaConfigurazione.exe’: caricato ‘C:\Panda3D-1.7.2\bin\libp3framework.dll’, Esportazioni caricate.
‘ProvaConfigurazione.exe’: caricato ‘C:\Panda3D-1.7.2\bin\libpanda.dll’, Esportazioni caricate.
‘ProvaConfigurazione.exe’: caricato ‘C:\Panda3D-1.7.2\bin\libpandaexpress.dll’, Esportazioni caricate.
‘ProvaConfigurazione.exe’: caricato ‘C:\Panda3D-1.7.2\bin\libp3dtool.dll’, Esportazioni caricate.
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\shell32.dll’, Simboli caricati (informazioni di origine rimosse).
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\msvcrt.dll’, Simboli caricati (informazioni di origine rimosse).
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\shlwapi.dll’, Simboli caricati (informazioni di origine rimosse).
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\gdi32.dll’, Simboli caricati (informazioni di origine rimosse).
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\user32.dll’, Simboli caricati (informazioni di origine rimosse).
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\lpk.dll’, Simboli caricati (informazioni di origine rimosse).
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\usp10.dll’, Simboli caricati (informazioni di origine rimosse).
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57\msvcr90.dll’, Simboli caricati (informazioni di origine rimosse).
‘ProvaConfigurazione.exe’: caricato ‘C:\Panda3D-1.7.2\bin\python26.dll’, Esportazioni caricate.
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\advapi32.dll’, Simboli caricati (informazioni di origine rimosse).
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\sechost.dll’, Simboli caricati (informazioni di origine rimosse).
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\rpcrt4.dll’, Simboli caricati (informazioni di origine rimosse).
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57\msvcp90.dll’, Simboli caricati (informazioni di origine rimosse).
‘ProvaConfigurazione.exe’: caricato ‘C:\Panda3D-1.7.2\bin\libp3dtoolconfig.dll’, Esportazioni caricate.
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\wsock32.dll’, Simboli caricati (informazioni di origine rimosse).
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\ws2_32.dll’, Simboli caricati (informazioni di origine rimosse).
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\nsi.dll’, Simboli caricati (informazioni di origine rimosse).
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\winmm.dll’, Simboli caricati (informazioni di origine rimosse).
‘ProvaConfigurazione.exe’: caricato ‘C:\Panda3D-1.7.2\bin\cg.dll’, Esportazioni caricate.
‘ProvaConfigurazione.exe’: caricato ‘C:\Panda3D-1.7.2\bin\avcodec-51-panda.dll’, Esportazioni caricate.
‘ProvaConfigurazione.exe’: caricato ‘C:\Panda3D-1.7.2\bin\avutil-49-panda.dll’, Esportazioni caricate.
‘ProvaConfigurazione.exe’: caricato ‘C:\Panda3D-1.7.2\bin\avformat-50-panda.dll’, Esportazioni caricate.
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\msvcp100.dll’, Simboli caricati (informazioni di origine rimosse).
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\msvcr100.dll’, Simboli caricati (informazioni di origine rimosse).
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\imm32.dll’, Simboli caricati (informazioni di origine rimosse).
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\msctf.dll’, Simboli caricati (informazioni di origine rimosse).
‘ProvaConfigurazione.exe’: caricato ‘C:\Program Files\Windows Searchqu Toolbar\Datamngr\datamngr.dll’, Impossibile trovare o aprire il file PDB
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\wtsapi32.dll’, Simboli caricati (informazioni di origine rimosse).
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\dbghelp.dll’, Simboli caricati (informazioni di origine rimosse).
‘ProvaConfigurazione.exe’: scaricato ‘C:\Program Files\Windows Searchqu Toolbar\Datamngr\datamngr.dll’
‘ProvaConfigurazione.exe’: scaricato ‘C:\Windows\System32\dbghelp.dll’
‘ProvaConfigurazione.exe’: scaricato ‘C:\Windows\System32\wtsapi32.dll’
‘ProvaConfigurazione.exe’: caricato ‘C:\Program Files\Windows Searchqu Toolbar\Datamngr\IEBHO.dll’, Esportazioni caricate.
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\dbghelp.dll’, Simboli caricati (informazioni di origine rimosse).
‘ProvaConfigurazione.exe’: scaricato ‘C:\Program Files\Windows Searchqu Toolbar\Datamngr\IEBHO.dll’
‘ProvaConfigurazione.exe’: scaricato ‘C:\Windows\System32\dbghelp.dll’
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\version.dll’, Simboli caricati (informazioni di origine rimosse).
‘ProvaConfigurazione.exe’: scaricato ‘C:\Windows\System32\version.dll’
‘ProvaConfigurazione.exe’: caricato ‘C:\Panda3D-1.7.2\bin\libpandagl.dll’, Esportazioni caricate.
‘ProvaConfigurazione.exe’: caricato ‘C:\Panda3D-1.7.2\bin\libp3windisplay.dll’, Esportazioni caricate.
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\opengl32.dll’, Simboli caricati (informazioni di origine rimosse).
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\glu32.dll’, Simboli caricati (informazioni di origine rimosse).
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\ddraw.dll’, Simboli caricati (informazioni di origine rimosse).
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\dciman32.dll’, Simboli caricati (informazioni di origine rimosse).
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\setupapi.dll’, Simboli caricati (informazioni di origine rimosse).
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\cfgmgr32.dll’, Simboli caricati (informazioni di origine rimosse).
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\oleaut32.dll’, Simboli caricati (informazioni di origine rimosse).
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\ole32.dll’, Simboli caricati (informazioni di origine rimosse).
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\devobj.dll’, Simboli caricati (informazioni di origine rimosse).
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\dwmapi.dll’, Simboli caricati (informazioni di origine rimosse).
‘ProvaConfigurazione.exe’: caricato ‘C:\Panda3D-1.7.2\bin\cgGL.dll’, Esportazioni caricate.
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\d3d9.dll’, Simboli caricati (informazioni di origine rimosse).
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\version.dll’, Simboli caricati (informazioni di origine rimosse).
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\d3d8thk.dll’, Simboli caricati (informazioni di origine rimosse).
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\uxtheme.dll’, Simboli caricati (informazioni di origine rimosse).
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\nvd3dum.dll’, Esportazioni caricate.
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\powrprof.dll’, Simboli caricati (informazioni di origine rimosse).
‘ProvaConfigurazione.exe’: scaricato ‘C:\Windows\System32\powrprof.dll’
Il thread ‘Thread Win32’ (0x13d0) è terminato con il codice 0 (0x0).
‘ProvaConfigurazione.exe’: scaricato ‘C:\Windows\System32\nvd3dum.dll’
‘ProvaConfigurazione.exe’: scaricato ‘C:\Windows\System32\d3d9.dll’
‘ProvaConfigurazione.exe’: scaricato ‘C:\Windows\System32\d3d8thk.dll’
‘ProvaConfigurazione.exe’: scaricato ‘C:\Windows\System32\version.dll’
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\powrprof.dll’, Simboli caricati (informazioni di origine rimosse).
Il thread ‘Thread Win32’ (0x1258) è terminato con il codice 0 (0x0).
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\cryptbase.dll’, Simboli caricati (informazioni di origine rimosse).
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\nvoglv32.dll’, Esportazioni caricate.
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\wintrust.dll’, Simboli caricati (informazioni di origine rimosse).
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\crypt32.dll’, Simboli caricati (informazioni di origine rimosse).
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\msasn1.dll’, Simboli caricati (informazioni di origine rimosse).
Il thread ‘Thread Win32’ (0x15c8) è terminato con il codice 0 (0x0).
‘ProvaConfigurazione.exe’: caricato ‘C:\Panda3D-1.7.2\bin\libp3ptloader.dll’, Esportazioni caricate.
‘ProvaConfigurazione.exe’: caricato ‘C:\Panda3D-1.7.2\bin\libpandaegg.dll’, Esportazioni caricate.
‘ProvaConfigurazione.exe’: caricato ‘C:\Windows\System32\profapi.dll’, Simboli caricati (informazioni di origine rimosse).
Eccezione first-chance a 0x00f1a317 (libpanda.dll) in ProvaConfigurazione.exe: 0xC0000005: Violazione di accesso nella lettura del percorso 0x737265db.
Eccezione non gestita a 0x76f97094 (ntdll.dll) in ProvaConfigurazione.exe: 0xC0000005: Access violation.
Il programma ‘[2484] ProvaConfigurazione.exe: Nativo’ è terminato con il codice -1073741819 (0xc0000005).

Yes, as I said, C++ code compiled with MSVS 2008 is not compatible with C++ code compiled with MSVS 2010.

David

The sample code is written panda3d then only for visual studio 2008? I wonder why the official site shows the compatibility of visual studio 2010 with panda3d

The code itself is compatible with MSVS 2010. As I have already explained, the problem is the precompiled DLL’s provided on this site, which are compiled with MSVS 2008 and are therefore incompatible with MSVS 2010. This is Microsoft’s fault, not Panda’s, because they created incompatible compilers. If you are willing to build the DLL’s yourself, you can use MSVS 2010.

But I don’t know what you’re referring to when you say “the official site shows the compatibility of visual studio 2010 with panda3d”. Where did you find this reference?

David

When he talks about how to prepare the project with visual studio refers to the use of visual studio 2010. It does not say that there is this problem. Here is the link: panda3d.org/manual/index.php … tudio_2008.

I have corrected the manual page in question. Thanks for pointing out the misleading paragraph.

David