Search found 11 matches

by advwang
Sat Sep 18, 2021 6:46 am
Forum: madKernel
Topic: a lot of code that is not safe or cannot be compiled under 64
Replies: 5
Views: 6082

a lot of code that is not safe or cannot be compiled under 64

In madkernel, there is a lot of code that is not safe or cannot be compiled under 64 1. T9xHandleTable = packed record itemCount : integer; items : array [0..maxInt shr 3 - 1] of T9xHandleItem; end; Compile under 64-bit, it will generate the error of data size over 2G 2. function GetHandleTableNt : ...
by advwang
Sun May 17, 2020 5:49 pm
Forum: madCollection
Topic: Madexception reported threadhandle leak in DUI70.dll
Replies: 6
Views: 10451

Re: Madexception reported threadhandle leak in DUI70.dll

I found the problem and sent a post independently

viewtopic.php?f=11&t=28814

With this post modification, hideleak ('| beginthreadex| initgadgets') works
by advwang
Sun May 17, 2020 5:47 pm
Forum: madCollection
Topic: HideLeak(const AStack: UnicodeString) Invalid under 64bits
Replies: 1
Views: 6032

HideLeak(const AStack: UnicodeString) Invalid under 64bits

Hideleak doesn't work with 64 bits. In 32 bits, you use EBP to find the address of the call to return the next instruction. That's right. In 64 bit, you use the undocumented function RtlGetCallerAddress, but you get the wrong argument. The first out pointer of this function is to return the address ...
by advwang
Thu Apr 30, 2020 6:38 pm
Forum: madCollection
Topic: Madexception reported threadhandle leak in DUI70.dll
Replies: 6
Views: 10451

Re: Madexception reported threadhandle leak in DUI70.dll

I Add HideLeak in program begin and end, no effect

begin
HideLeak('_beginthreadex|InitGadgets');
Application.Initialize;
Application.MainFormOnTaskbar := True;
Application.CreateForm(TForm1, Form1);
Application.Run;
HideLeak('_beginthreadex|InitGadgets');
end.
by advwang
Thu Apr 30, 2020 5:20 am
Forum: madCollection
Topic: Madexception reported threadhandle leak in DUI70.dll
Replies: 6
Views: 10451

Re: Madexception reported threadhandle leak in DUI70.dll

DUI70.dll is Windows's dll used by IME, So the thread hanle shuold be released after my app exit.
The question is how not to display this information belong to system control.
by advwang
Sun Apr 19, 2020 5:29 pm
Forum: madCollection
Topic: Madexception reported threadhandle leak in DUI70.dll
Replies: 6
Views: 10451

Madexception reported threadhandle leak in DUI70.dll

Create a form, put a TEdit in form, run and focus to this edit, exit, then mad reported threadhandle leak in DUI70.dll From the call stack point of view, it is the input method (I use the Asian Unicode environment) that loads dui70 I think mad has detected the creation, but the thread handle release...
by advwang
Mon Oct 14, 2019 5:12 am
Forum: madCollection
Topic: madExceptWizard.pas, GetLibraryStr,not include platform path
Replies: 1
Views: 7042

madExceptWizard.pas, GetLibraryStr,not include platform path

madExceptWizard.pas, GetLibraryStr,not include platform path. HKEY_CURRENT_USER\Software\Embarcadero\BDS\20.0\Library\ <--- that's wrong In this way, the relevant environment variables can not be retrieved, resulting in browsing the source files can not open the corresponding source files. HKEY_CURR...
by advwang
Thu Apr 25, 2019 4:11 am
Forum: madCollection
Topic: double-click the error report item can not locate source
Replies: 1
Views: 7137

double-click the error report item can not locate source

Issue: When the error report is displayed, double-click the error report item. If it is a Project item, you can locate it. If it is Delphi's own Source, it can't be positioned, no response. Fix: madExceptWizard.pas Read lib option need add platform param function GetLibraryStr(const CurrentPlatForm:...
by advwang
Tue Apr 02, 2019 3:15 am
Forum: madCollection
Topic: madCollection should detect Atom leaks
Replies: 4
Views: 9825

Re: madCollection should detect Atom leaks

Oh, I am sorry, I am talking about GlobalAddAtom., MSDN is like this: The string associated with the atom is not deleted from memory until its reference count is zero. For more information, see the GlobalDeleteAtom function. Global atoms are not deleted automatically when the application terminates....
by advwang
Sun Mar 31, 2019 12:41 am
Forum: madCollection
Topic: madCollection should detect Atom leaks
Replies: 4
Views: 9825

madCollection should detect Atom leaks

madCollection should detect Atom leaks (AddAtom, DeleteAtom pairs). This kind of leak is very serious. Even if the program exits, Atom will not be released. Many times later, system resources will be exhausted. So after detection, I hope to automatically release the corresponding Atom. Thank you.
by advwang
Fri Mar 15, 2019 4:52 am
Forum: madExcept
Topic: use crosssocket, av and error leak reported
Replies: 1
Views: 3141

use crosssocket, av and error leak reported

use crosssocket, when application exit, 1.an AV error ocurred with stack: :7748058c ntdll.ZwQueryObject + 0xc :671a1c7c ; C:\Dev32\madCollection\madExcept\Dlls\madExcept32.dll :671b4c07 ; C:\Dev32\madCollection\madExcept\Dlls\madExcept32.dll :671b93c0 ; C:\Dev32\madCollection\madExcept\Dlls\madExcep...