![]() |
Delphi Tip of the Day - Who's up First?
I'm working on updating my
![]() initialization begin ShowMessage('Inside [Unit Name Here]'); end; Adding this code to each and every unit was a pain in the butt. And it still didn't help me track down where the file was getting deleted. There had to be an easier way to figure out the order in which each unit was being created. I turned to the SO community asking for an easy way to ![]() ![]() My first two questions were, "What's a map file? And how do you create one?" Information on what a *.map file is can be found here. ![]() To create a .map file from inside the IDE click Project > Options > Delphi Compiler > Linking Set Map file := Detailed Click Save Then build your project and you will have a *.map file. The reason I was having such a hard time tracking down where the file deletion was happening was because it took place within a "dll" file. Line 47 of the map file shows the first unit of my project is Zglobals (yes the dreaded global unit). Lines 58-60 show the next three units from my project. Line 59 StdDlls is a precompiled dll unit that I am unable to modify the source code for because it uses "Quick Reports". I do not have Quick Reports installed on my new dev computer. Therefore I cannot actually modify the source code for this unit. It turns out that the file delete was happening inside the dll. I just thought that ![]() Cheers! Semper Fi, Gunny Mike ![]() |
Alle Zeitangaben in WEZ +1. Es ist jetzt 16:29 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz