Re: [ROOT] Access violation with LibGraf.dll (in VC++ 6.0)

From: Valeri Fine (fine@bnl.gov)
Date: Tue Feb 05 2002 - 19:33:21 MET


Hello, 

> - pure virtual function call
> 
> But I don't have any virtual function...

I'd like to call your attention the destructor of your class can be  the virtual function.

Please make sure you have provided the implementations for all your methods
Make sure you have provide the implementation for all destructors  first of all.

Check your project is compiled as "Multithreaded with DLL"

  Hope this helps,
                    Cheers,  Valeri

-----
Dr.Valeri Fine
STAR/US Atlas                                    E-mail: fine@bnl.gov
Brookhaven National Lab                Phone: +1 631 344 7806
Upton, NY 11973-5000                       FAX:     +1 631 344 4206
USA



----- Original Message ----- 
From: "Raphael Kindt" <raphael_kindt@hotmail.com>
To: <roottalk@pcroot.cern.ch>
Sent: Tuesday, February 05, 2002 2:13 PM
Subject: [ROOT] Access violation with LibGraf.dll (in VC++ 6.0)


> 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