Hi,
I work under WinXP with VC++9
ROOT version is: 5.27/02, VC++9/MSI/Debug
I am trying to compile a STANDALONE version of $(ROOTSYS)\test\guitext.cxx under VC++9, I got some errors.
- With VC++9, compile and link of this program is success and the .exe file run well, but each time when I click the “Cancel” button (or click the ‘close’ button on the top right corner) of the “TestDialog” Frame (form the menu test->Dialog) the .exe file crashed and give an error as following:
Debug Assertion Failed!
Program: ...\guitest.exe
File: ..\vctools\crt_bld\self_x86\crt\src\dbgdel.cpp
Line:52
Expression: _BLOCK_TYPE_IS_VALID(pHead->nBlockUse)
For information on how your program can cause an assertion failure, see the Visual C++ documentations on asserts.
I tried the “test” code download from http://root.cern.ch/phpBB3//viewtopic.php?t=1242 ,(it is VC7, I choose to convert it to VC++9 automatically) the error is the same. Set Release or Degug in VC++9, the error is the same.
- I tried to compile the $(ROOTSYS)\test\guitext.cxx with ACLiC, I got the following errors:
Error in <TileFrame>: TileFrame inherits from TObject but does not have its own ClassDef
Error in <TestMainFrame>: TestMainFrame inherits from TObject but does not have its own ClassDef
Error in <TestDialog>: TestDialog inherits from TObject but does not have its own ClassDef
Error in <TestMsgBox>: TestMsgBox inherits from TObject but does not have its own ClassDef
Error in <TestSliders>: TestSliders inherits from TObject but does not have its own ClassDef
Error in <TestShutter>: TestShutter inherits from TObject but does not have its own ClassDef
Error in <TestDirList>: TestDirList inherits from TObject but does not have its own ClassDef
Error in <TestFileList>: TestFileList inherits from TObject but does not have its own ClassDef
Error in <TestProgress>: TestProgress inherits from TObject but does not have its own ClassDef
Error in <EntryTestDlg>: EntryTestDlg inherits from TObject but does not have its own ClassDef
Error in <Editor>: Editor inherits from TObject but does not have its own ClassDef
But even with these errors, the program run well without the error which is stated previously.
If I added ‘ClassDef’ to these ‘class’, I get the following errors:
................
C:\root\test\guitest_cpp_ACLiC_dict.cxx(715) : warning C4356: 'TGTransientFrame::fgIsA' : static data member cannot be initialized via derived class
C:\root\test\guitest_cpp_ACLiC_dict.cxx(719) : error C2509: 'Class_Name' : member function notdeclared in 'TestDialog'
C:\\root\\test\\guitest.cpp(255) : see declaration of 'TestDialog'
C:\root\test\guitest_cpp_ACLiC_dict.cxx(725) : error C2509: 'ImplFileName' : member function not declared in 'TestDialog'
C:\\root\\test\\guitest.cpp(255) : see declaration of 'TestDialog'
C:\root\test\guitest_cpp_ACLiC_dict.cxx(731) : error C2509: 'ImplFileLine' : member function not declared in 'TestDialog'
C:\\root\\test\\guitest.cpp(255) : see declaration of 'TestDialog'
C:\root\test\guitest_cpp_ACLiC_dict.cxx(737) : error C2509: 'Dictionary' : member function not declared in 'TestDialog'
C:\\root\\test\\guitest.cpp(255) : see declaration of 'TestDialog'
C:\root\test\guitest_cpp_ACLiC_dict.cxx(743) : error C2509: 'Class' : member function not declared in 'TestDialog'
C:\\root\\test\\guitest.cpp(255) : see declaration of 'TestDialog'
C:\root\test\guitest_cpp_ACLiC_dict.cxx(874) : error C2509: 'Streamer' : member function not declared in 'TestDialog'
C:\\root\\test\\guitest.cpp(255) : see declaration of 'TestDialog'
C:\root\test\guitest_cpp_ACLiC_dict.cxx(886) : error C2509: 'ShowMembers' : member function not declared in 'TestDialog'
C:\\root\\test\\guitest.cpp(255) : see declaration of 'TestDialog'
.......................
I refered to http://root.cern.ch/phpBB3//viewtopic.php?p=10192& , however can not solve this problem.
Any help is appreciated!
Thank you!