Problem debugging an OCX control code
-
Hi All, I am debugging an application(MyApp) which uses an OCX control. I need to debug the OCX control too. I am able to compile the OCX in debug mode and have copied the MyOcx.ocx and MyOcx.pdb files to MyApp Debug folder. When I try to debug the MyApp I am not able to debug the OCX code. I checked with the modules window and found that the symbols for the ocx could not be loaded and it shows "" C:\WINDOWS\System.Drawing.pdb: Cannot find or open the PDB file." error I checked with the C: files but the .pdb do not exist. Is it a problem with my m/c that it does not have the System.Drawing.pdb file or I am wrong somewhere else? Please help me. Just a note to add: MyApp is built in VS2005 and MyOcx is built in VS2003. Any help would be highly appreciated. Thanks and Regards, Arti Gujare -- modified at 7:04 Tuesday 28th November, 2006
-
Hi All, I am debugging an application(MyApp) which uses an OCX control. I need to debug the OCX control too. I am able to compile the OCX in debug mode and have copied the MyOcx.ocx and MyOcx.pdb files to MyApp Debug folder. When I try to debug the MyApp I am not able to debug the OCX code. I checked with the modules window and found that the symbols for the ocx could not be loaded and it shows "" C:\WINDOWS\System.Drawing.pdb: Cannot find or open the PDB file." error I checked with the C: files but the .pdb do not exist. Is it a problem with my m/c that it does not have the System.Drawing.pdb file or I am wrong somewhere else? Please help me. Just a note to add: MyApp is built in VS2005 and MyOcx is built in VS2003. Any help would be highly appreciated. Thanks and Regards, Arti Gujare -- modified at 7:04 Tuesday 28th November, 2006
Hi Arti, do you perhaps use the .NET Framework in your OCX? Because "System.Drawing" sounds like the corresponding namespace of the .NET Framework. Perhaps your callstack looks nicer if you use the Microsoft Symbol Server to get the corresponding debug symbols. Then for example "System.Drawing.pdb" will be automatically downloaded from M$. Checkout the following articles on how to configure Visual Studio to connect to the M$ Symbol Server: http://www.codeproject.com/useritems/symbols.asp[^] http://www.codeproject.com/debug/postmortemdebug_standalone1.asp[^]
cheers, mykel
If they give you lined paper, write the other way!