Delphi 10.4

delphi package - automated exception handling

Re: Delphi 10.4

Postby madshi » Wed Jul 08, 2020 4:52 pm

I've just rechecked with 2.8.8.0, and the same crash occurs for me. :sceptic:

Are you compiling via IDE or via command line or automated build or something else?
madshi
Site Admin
 
Posts: 10274
Joined: Sun Mar 21, 2004 5:25 pm

Re: Delphi 10.4

Postby DanielT » Wed Jul 08, 2020 6:09 pm

Ok, this is strange .. I double checked it againl, but it doesn't crash with 2.8.8.0 for me.

I'm compiling via IDE right now. The only difference in between the tests is the installed madExcept version.
I can offer to share my screen with you if you want to take a closer look at the build environment (please just send me a mail if you want to schedule a call).
DanielT
 
Posts: 9
Joined: Wed May 17, 2017 8:39 am

Re: Delphi 10.4

Postby madshi » Wed Jul 08, 2020 8:49 pm

Have you tried what I suggested before?

Code: Select all
{$ifdef LeakChecking}
  StartLeakChecking(False);
{$endif}
madshi
Site Admin
 
Posts: 10274
Joined: Sun Mar 21, 2004 5:25 pm

Re: Delphi 10.4

Postby DanielT » Thu Jul 09, 2020 8:40 am

Yes I did, but it either disables the leak checking completely (as expected) or keeps on crashing if I specify LeakChecking for the specific build target.

I also searched to forum a little and found this topic: viewtopic.php?f=4&t=28554&start=15

I guess this explains why it seemed to work for us with 2.8.8.0 and stopped working with 2.8.8.99, and why it didn't work with 2.8.8.0 for you. It seems like the checks simply haven't been taking effect in the 64bit builds (up until 2.8.8.2).
This would at least give us a workaround for now (keeping the current but erroneous behavior by deactivating the checks).

It also brings up the question why these checks work with 32bit builds as expected. Wouldn't the general problems you described apply here as well?
DanielT
 
Posts: 9
Joined: Wed May 17, 2017 8:39 am

Re: Delphi 10.4

Postby madshi » Thu Jul 09, 2020 12:38 pm

Yes, I guess that would explain why it didn't crash for you. And yes, in theory the same problem applies to win32, as well. Maybe I'll spend some time to figure out why/where it crashes in x64 and try to avoid it, but it's really tricky when 2 different memory managers are active at the same time, and some allocations were made with one, while others were made with the other.

I'm not sure I understand your first sentence about build targets.
madshi
Site Admin
 
Posts: 10274
Joined: Sun Mar 21, 2004 5:25 pm

Re: Delphi 10.4

Postby DanielT » Fri Jul 10, 2020 9:30 am

Would be great, thank you very much.

Yes I did, but it either disables the leak checking completely (as expected) or keeps on crashing if I specify LeakChecking for the specific build target.


Using {$ifdef LeakChecking}, there are two dimensions/four scenarios:

Deactivating Leak Checking with the MES Settings AND not defining LeakChecking wth the build target options -> No error, but also no leak checking
Activating Leak Checking with the MES Settings AND not defining LeakChecking wth the build target options -> No error, but leak checking for all targets
Deactivating Leak Checking with the MES Settings AND defining LeakChecking wth the build target options -> Error occurrs.
Activating Leak Checking with the MES Settings AND defining LeakChecking wth the build target options -> No error, but leak checking for all targets
DanielT
 
Posts: 9
Joined: Wed May 17, 2017 8:39 am

Re: Delphi 10.4

Postby madshi » Fri Jul 10, 2020 9:36 am

Is there a reason for not simply always activating leak checking in the madExcept options? Leak checking will not actually become active unless your EXE finds madExcept32/64.dll, so you can decide whether leak checking should be used simply by making the dlls available or not available. Maybe that would work for you?
madshi
Site Admin
 
Posts: 10274
Joined: Sun Mar 21, 2004 5:25 pm

Re: Delphi 10.4

Postby oliver9 » Tue Jul 14, 2020 11:51 am

Looks like it has been about a month since the last update. Any news of when a 10.4 compatible version will be available? I'm using C++ Builder 10.4.
oliver9
 
Posts: 1
Joined: Tue Jul 14, 2020 11:48 am

Re: Delphi 10.4

Postby madshi » Thu Jul 16, 2020 9:01 pm

New official build out now:

http://madshi.net/madCollection.exe  (installer 2.8.9.0, madExcept 5.1.0)
madshi
Site Admin
 
Posts: 10274
Joined: Sun Mar 21, 2004 5:25 pm

Re: Delphi 10.4

Postby fabio.esquivel » Mon Jul 20, 2020 6:43 pm

I just installed the official 5.1.0 build from the link above and tried to compile some programs with no success...

[dcc64 Fatal Error] Cypher.dpr(13): F2063 Could not compile used unit 'madExcept'

Note that I had just updated Delphi 10.4 with the first and second patches from Embarcadero... I don't know if they are causing this.
fabio.esquivel
 
Posts: 1
Joined: Mon Jul 20, 2020 6:35 pm

Re: Delphi 10.4

Postby madshi » Tue Jul 21, 2020 11:30 pm

It sounds like there's some old madExcept.dcu floating around on your harddisk somewhere. I'd suggest a cleanup like this:

1) Uninstall madCollection.
2) Search harddisk for mad*.* and delete all files that belong to madCollection.
3) Reinstall madCollection.

Hopefully that fixes the problem?
madshi
Site Admin
 
Posts: 10274
Joined: Sun Mar 21, 2004 5:25 pm

Re: Delphi 10.4

Postby PatHeuvel » Sun Jul 26, 2020 1:56 pm

Trying to build a C++Builder application, Win64, RAD Studio 10.4 (w/all patches). Fails with a link error. Win32 builds fine.

Win64 link fails whether or MadExcept is enabled or disabled.

I've also checked for old mad*.* stuff, none found.

I created a simple C++ FMX application - just a window, no other controls. Same failure.

If I uninstall MadExcept ( :( ), all link successfully.

Is C++ not supported?

Thanks and regards,
Pat
PatHeuvel
 
Posts: 2
Joined: Sun Jul 26, 2020 1:48 pm

Re: Delphi 10.4

Postby ZSL » Tue Jul 28, 2020 8:28 am

I just downloaded 5.1 to install into D 10.4 but the 5.1.0 panel is greyed out with the message "Singe developer, 2 days left" and does not install.

How do I get it to install?
ZSL
 
Posts: 54
Joined: Thu Mar 31, 2016 11:23 pm

Re: Delphi 10.4

Postby madshi » Tue Jul 28, 2020 2:11 pm

@Pat, 64bit is currently only supported for Delphi, but not for C++, which is also mentioned on the website:

http://www.madshi.net/madExceptDescription.htm

@ZSL, please let's discuss this via email. You can write to madshi (at) gmail (dot) com.
madshi
Site Admin
 
Posts: 10274
Joined: Sun Mar 21, 2004 5:25 pm

Re: Delphi 10.4

Postby PatHeuvel » Wed Jul 29, 2020 2:06 pm

Oops, I must've skipped that paragraph ;)

Thanks mate! Lifesaver of a package too!
PatHeuvel
 
Posts: 2
Joined: Sun Jul 26, 2020 1:48 pm

Previous

Return to madExcept

Who is online

Users browsing this forum: Google [Bot] and 18 guests