Search found 24 matches
- Fri Sep 08, 2023 7:33 am
- Forum: madExcept
- Topic: Exceptions not caught
- Replies: 13
- Views: 21052
Re: Exceptions not caught
I've tried, but am unable so far to create a simple test project to demonstrate the problem. The problem occurs when e.g. a public symbols in segment 3 follows one in segment 2 and when as a result the length of a unit in segment 2 is recalculated. In the cases I've encountered the symbol Sysinit::I...
- Wed Sep 06, 2023 8:38 am
- Forum: madExcept
- Topic: Exceptions not caught
- Replies: 13
- Views: 21052
Re: Exceptions not caught
I have no reason to assume it is specific to C++. I'm not very familiar with Delphi executables, but I think they also use both a DATA and a BSS segment? Regarding a possible solution, in madExceptPatcher I have experimented somewhat with replacing the boolean index for FSLastAdded with an integer r...
- Fri Aug 25, 2023 8:00 am
- Forum: madExcept
- Topic: Exceptions not caught
- Replies: 13
- Views: 21052
Re: Exceptions not caught
Hi,
Can you confirm my findings on the issues I found in madExceptPatcher? If needed I can send you our executable, tds and map file and our mad settings file. Then you might be able to investigate further.
Can you confirm my findings on the issues I found in madExceptPatcher? If needed I can send you our executable, tds and map file and our mad settings file. Then you might be able to investigate further.
- Wed Aug 16, 2023 1:08 pm
- Forum: madExcept
- Topic: Exceptions not caught
- Replies: 13
- Views: 21052
Re: Exceptions not caught
I forgot to mention that I also found that the public symbols (e.g. madExcept.BcbInitExceptBlockLDTC) are indeed detected by madExceptPatcher (function FindPublic), but that it thinks that the start address in not in the address range for unit madExcept. I believe this might be a result of the fault...
- Wed Aug 16, 2023 12:30 pm
- Forum: madExcept
- Topic: Exceptions not caught
- Replies: 13
- Views: 21052
Re: Exceptions not caught
I finally had some time to delve deeper into this issue. I added some debug logging to madExceptPatcher in unit madMapFile.pas. From this I noticed that sometimes when the length of a segment is updated after adding a public symbol, the new length is incorrect. This seems to happen when the last add...
- Fri Sep 16, 2022 9:13 am
- Forum: madExcept
- Topic: Exceptions not caught
- Replies: 13
- Views: 21052
Re: Exceptions not caught
If I find the time I might try to dig somewhat deeper into the issue, but in the mean time I think I will just include the madExcept.obj into the project. W.r.t. my earlier suggestion, for a future version it might be useful if the wizard could notify the developer when the patching fails? Thanks fo...
- Fri Sep 16, 2022 7:18 am
- Forum: madExcept
- Topic: Exceptions not caught
- Replies: 13
- Views: 21052
Re: Exceptions not caught
To test, I added a TApplicationEvents component to the main form of the application, and in its onException event I call Madexcept::HandleException(). This compiles and links fine, and when an exception is thrown this event is invoked and the madExcept dialog appears. So madExcept.obj seems to be li...
- Thu Sep 15, 2022 10:11 am
- Forum: madExcept
- Topic: Exceptions not caught
- Replies: 13
- Views: 21052
Re: Exceptions not caught
The madExceptWizard.txt for the not-working version, and the working version where i've added the madExcept.obj to my project show some interesting differences. In the not-working situation the madExcept patch utility can't seem to find it's own hook functions in the executable. E.g.: Not working: m...
- Wed Sep 14, 2022 2:24 pm
- Forum: madExcept
- Topic: Exceptions not caught
- Replies: 13
- Views: 21052
Exceptions not caught
Hi, I've enabled madExcept for one of our projects, and I'm trying to figure out why madExcept does not catch the exceptions in the application. I unfortunately can't reproduce this in a small test project, it seems to be specific for this somewhat larger project. From an old post I remember that ma...
- Fri Nov 13, 2020 10:29 am
- Forum: madExcept
- Topic: Not reporting leaks
- Replies: 8
- Views: 7704
Re: Not reporting leaks
Thanks to your suggestions I've found the issue in my code. After compiling madExcept.pas into my application, I now got an access violation at the startup of my application, which pointed me to a problem in my code. By some coincidence this issue manifested itself before not with an access violatio...
- Thu Nov 12, 2020 3:27 pm
- Forum: madExcept
- Topic: Not reporting leaks
- Replies: 8
- Views: 7704
Re: Not reporting leaks
Thanks, I'll give it a try compiling madExcept.pas into my project.
I'll let you know tomorrow.
I'll let you know tomorrow.
- Thu Nov 12, 2020 12:57 pm
- Forum: madExcept
- Topic: Not reporting leaks
- Replies: 8
- Views: 7704
Re: Not reporting leaks
Yes, also when running outside the IDE, leaks are not reported unless I call Madexcept::StartLeakChecking myself after starting the application.
- Thu Nov 12, 2020 8:56 am
- Forum: madExcept
- Topic: Not reporting leaks
- Replies: 8
- Views: 7704
Re: Not reporting leaks
I cannot find RCDATA\MADEXCEPT , I think you mean RCDATA\TMADEXCEPT (starting with a "T")?
That one says Enabled = True, ReportLeaks = True.
That one says Enabled = True, ReportLeaks = True.
- Tue Nov 10, 2020 9:59 am
- Forum: madExcept
- Topic: Not reporting leaks
- Replies: 8
- Views: 7704
Not reporting leaks
Hi, I'm trying to figure out why my large project does not report memory leaks (C++ Builder Sydney R1; madCollection 2.8.9.1; VCL application (converted from earlier C++ Builder version); legacy compiler; mostly statically linked; dynamic RTL; > 800 units, the resulting exe is 42 Mb, the tds file is...
- Fri Oct 16, 2020 7:14 am
- Forum: madExcept
- Topic: IDE freezes with background compile
- Replies: 4
- Views: 4351
Re: IDE freezes with background compile
FYI, I have updated the Embarcadero ticket RSP-31303 with a sample project, including my IDE settings, desktop settings and madExcept settings.
Edit: Embarcadero was able to reproduce it using this sample project, I'm awaiting further info.
Edit: Embarcadero was able to reproduce it using this sample project, I'm awaiting further info.