Search found 10343 matches

by madshi
Fri Mar 05, 2021 5:57 pm
Forum: madCodeHook
Topic: Correct way to unhook APIs
Replies: 2
Views: 4

Re: Correct way to unhook APIs

It's not really good to have API hooks in dlls which you load and unload manually, because that makes unhooking very tricky. If you call UninjectLibrary(), madCodeHook will do some internal "magic". Basically it will unhook all APIs automatically for you, and it will do that *outside* of D...
by madshi
Fri Mar 05, 2021 5:48 pm
Forum: madCodeHook
Topic: Do you have any plans to support ARM Processor?
Replies: 1
Views: 15

Re: Do you have any plans to support ARM Processor?

Hi there,

I'm sorry to say, but unfortunately atm I don't have plans to support ARM, because it would require a major rewrite and I'm currently busy with other projects.
by madshi
Tue Mar 02, 2021 10:11 am
Forum: madExcept
Topic: Delphi 10.4.1
Replies: 4
Views: 1326

Re: Delphi 10.4.1

Please double check that "report resource leaks" and "instantly crash on buffer ..." are unchecked here:

http://help.madshi.net/madExceptSettings1.htm
by madshi
Mon Feb 15, 2021 6:20 pm
Forum: madExcept
Topic: Thread Description
Replies: 3
Views: 78

Re: Thread Description

There's already an API exported by madExcept.pas called "NameThread()":

Code: Select all

// to make the bug report more readable, you can name your secondardy threads
procedure NameThread (threadId: dword; const threadName: UnicodeString);
Internally it calls "SetThreadInfo".
by madshi
Mon Feb 08, 2021 6:48 pm
Forum: madExcept
Topic: Custom proxy missing null termination
Replies: 2
Views: 73

Re: Custom proxy missing null termination

Thanks, I've fixed the missing null termination in my source code, as suggested by you guys.
by madshi
Mon Feb 08, 2021 6:46 pm
Forum: madExcept
Topic: Displaying first exception message
Replies: 2
Views: 48

Re: Displaying first exception message

Unfortunately there's no easy way to access the "inner exception" information. You could wait for the completion of the bug report and then use a text parser to check the callstacks, but that seems very ugly, to be honest. Maybe it would make sense to add a try..except block to catch the &...
by madshi
Sun Jan 31, 2021 7:49 am
Forum: madExcept
Topic: ignoring memory leaks using HideLeak
Replies: 2
Views: 54

Re: ignoring memory leaks using HideLeak

You need to add madExcept to your uses class to be able to call HideLeak. Hope that helps?

If ignoring the leak this way doesn't work, you can instead hide it by using the HideLeak overload with a callstack.
by madshi
Wed Jan 27, 2021 4:13 pm
Forum: madExcept
Topic: Dialog font size and madExceptPatch.exe
Replies: 4
Views: 74

Re: Dialog font size and madExceptPatch.exe

It's a complicated topic. Basically the calculation of the stack traces can take some time. But for the user it looks weird if the application doesn't do anything for several seconds. So the exception box is opened right away, even before the stack traces are calculated, and then the stack traces ar...
by madshi
Wed Jan 27, 2021 9:00 am
Forum: madExcept
Topic: Dialog font size and madExceptPatch.exe
Replies: 4
Views: 74

Re: Dialog font size and madExceptPatch.exe

The "Please wait a moment" box only appears in rare/specific circumstances. When exactly do you get it? For example, it appears if one of your exception handlers accesses "exceptIntf.BugReport" before it's fully composed. Maybe instead of tweaking the font sizes, it would be easi...
by madshi
Tue Jan 26, 2021 9:04 pm
Forum: madExcept
Topic: UPX completely messes up leak report
Replies: 10
Views: 191

Re: UPX completely messes up leak report

Well, at least exception stack traces are working ok. I guess you'll have to disable UPX for leak checking, sadly...
by madshi
Tue Jan 26, 2021 4:29 pm
Forum: madExcept
Topic: UPX completely messes up leak report
Replies: 10
Views: 191

Re: UPX completely messes up leak report

Not really, madExcept hooks deep into the RTL and replaces much of the RTL's internal exception handling. Some things unfortunately get broken this way. TThread.FatalException is one of those things.
by madshi
Mon Jan 25, 2021 8:39 pm
Forum: madExcept
Topic: MadExcept StartLeakChecking is causing random access violations
Replies: 12
Views: 220

Re: MadExcept StartLeakChecking is causing random access violations

Could this be UPX related? Does this also happen without UPX?
by madshi
Mon Jan 25, 2021 8:38 pm
Forum: madExcept
Topic: UPX completely messes up leak report
Replies: 10
Views: 191

Re: UPX completely messes up leak report

Not sure why it doesn't work. Does the callstack work for exceptions, though?

FWIW, leak reporting is considered to be a feature that is used on the development PC, not on the end user PC. So it should be no problem doing leak checking with UPX disabled.