Hi, I use Some library from Root with Visual Studio 6.0 : - LibCint.lib - LibCore.lib - LibHist.lib - LibGraf.lib To integrate these libraries to Visual Studio, I go to the menu Project | settings... Then I open the Link section and add to the Edit box of "Object/Library moduls:" these 4 Libraries. Some methods in my project use certain objects of root. In the file of these methods, I have add the good includes. For example : #include "L:\root\include\TF1.h" #include "L:\root\include\TGraph.h" #include "L:\root\include\TMath.h" And the syntax which use root can be written like this : TGraph grGauche(nbrPtGauche,tmpXGauche,tmpYGauche); TF1 fGauche("fGauche","pol1",tmpXGauche[0],tmpXGauche[nbrPtGauche-1]); grGauche.Fit("fGauche"); The compilation is OK. But the problem occurs when I execute the program in debug mode (not in release mode). The first calls of these libraries load it in memory. We can read in the debug console : Loaded symbols for 'L:\root\bin\libMinuit.dll' Loaded symbols for 'L:\root\bin\libGpad.dll' Loaded symbols for 'L:\root\bin\libWin32.dll' Loaded 'C:\WINNT\system32\COMDLG32.DLL', no matching symbolic information found. Loaded 'C:\WINNT\system32\SHELL32.DLL', no matching symbolic information found. Up to now all is OK. But the second calls does not operate and we can observe in the debug console : First-chance exception in PrjIm.exe (LIBGRAF.DLL): 0xC0000005: Access Violation. First-chance exception in PrjIm.exe (MSVCRT.DLL): 0xC0000005: Access Violation. First-chance exception in PrjIm.exe (LIBGRAF.DLL): 0xC0000005: Access Violation. The progam still work... If we continue to call these libraries, the same comments appear. After some calls, the program stop with this error : Runtime error! Program:L:\PrjIm\Debug\PrjIm.exe R6025 - pure virtual function call But I don't have any virtual function... This virtual function surely comes from the architecture of application of MFC. This problem does not occur in Release mode... Thank you with those which will be able to help me to understand the problem. _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:41 MET