leakview does not find include file of a package.
- Lazarus/FPC Version: 3.99
- Operating System: Windows 10 / 64bit
"Leaks and traces" calls this method to open files from stack-traces.
If a file contains an include path, then an error may occur that it was not found.
In the test data click the line with include/treeview.inc
The call is made as follows
#1 RaiseDirNotAbsolute($parentfp_void_pointer($00000000013FE990)) at directorycacher.pas:939
#2 TCTDirectoryCache.Create(TCTDirectoryCache($0000000023542390), ^$__vtbl_ptr_type($0000000000000001), 'include', TCTDirectoryCachePool($00000000001931B0)) at directorycacher.pas:949
#3 TCTDirectoryCachePool.GetCache(TCTDirectoryCachePool($00000000001931B0), 'include\', True, False) at directorycacher.pas:2629
#4 TCTDirectoryCachePool.FindDiskFilename(TCTDirectoryCachePool($00000000001931B0), 'include\treeview.inc', False) at directorycacher.pas:2872
#5 TFileOpener.OpenEditorFile(TFileOpener($0000000025F40CB0), -1, -1, nil, [ofOnlyIfExists, ofRegularFile]) at sourcefilemanager.pas:1221
#6 OpenEditorFile('include/treeview.inc', -1, -1, nil, [ofOnlyIfExists, ofRegularFile], False) at sourcefilemanager.pas:369
#7 TMainIDE.DoOpenEditorFile(TMainIDE($00000000063CAB70), 'include/treeview.inc', -1, -1, nil, [ofOnlyIfExists, ofRegularFile]) at main.pp:5829
#8 TMainIDE.DoOpenEditorFile(TMainIDE($00000000063CAB70), 'include/treeview.inc', -1, -1, [ofOnlyIfExists, ofRegularFile]) at main.pp:5823
#9 TMainIDE.DoOpenFileAndJumpToPos(TMainIDE($00000000063CAB70), 'include/treeview.inc', TPoint (0; 251), -1, -1, -1, -1, -1, [ofOnlyIfExists, ofRegularFile]) at main.pp:6332
#10 TLazIDEInterface.DoOpenFileAndJumpToPos(TLazIDEInterface($00000000063CAB70), 'include/treeview.inc', TPoint (0; 251), -1, -1, -1, [ofOnlyIfExists, ofRegularFile]) at lazideintf.pas:831
#11 THeapTrcViewForm.LazarusJump(THeapTrcViewForm($0000000010548270), TObject($0000000010548270), 'include/treeview.inc', 251, 0) at heaptrcview.pas:539
Testdata for "Leaks and traces"
Stack trace:
$0000000100013AA5 Free, line 336 of ../inc/objpas.inc
$00000001002CED54 SetSelected, line 821 of include/treeview.inc
$00000001002CD43F CreateChildNodes, line 251 of include/treeview.inc
$0000000100013AA9 Free, line 336 of ../inc/objpas.inc