Search found 18 matches

by pcoenen
Fri Oct 04, 2019 6:23 pm
Forum: madExcept
Topic: Why no mbr file?
Replies: 11
Views: 4648

Re: Why no mbr file?

strange-0x0eedfade-exception-in-delphi-multi-thread-program I spoke too soon. It came back but now definitely fixed (we found a way to replicate it on our system). It was a bug in the Pascal Script code. Affected only 64 bit version. Updated to latest svn and it is fixed. Maybe somebody can use this...
by pcoenen
Wed Oct 02, 2019 7:21 pm
Forum: madExcept
Topic: Why no mbr file?
Replies: 11
Views: 4648

Re: Why no mbr file?

Yes it did
by pcoenen
Wed Oct 02, 2019 7:16 pm
Forum: madExcept
Topic: Why no mbr file?
Replies: 11
Views: 4648

Re: Why no mbr file?

Enabled range check and after many many tries... Range check exception in a third party unit. The allocate was not correct handling 64 wparam and lparam.

Resulting mbr file told me where I had to look :D
by pcoenen
Wed Oct 02, 2019 2:16 pm
Forum: madExcept
Topic: Why no mbr file?
Replies: 11
Views: 4648

Re: Why no mbr file?

https://stackoverflow.com/questions/16602756/strange-0x0eedfade-exception-in-delphi-multi-thread-program The above link is the same exception as the one I received from my user (0x0eedfade). Googled a lot for this 0x0eedfade and at the end I found https://www.thedelphigeek.com/2007/04/most-importan...
by pcoenen
Tue Oct 01, 2019 2:59 pm
Forum: madExcept
Topic: Why no mbr file?
Replies: 11
Views: 4648

Re: Why no mbr file?

Can you reliably reproduce the crash on your dev PC? In that case please activate "instantly crash on buffer overrun". This feature consumes a lot of RAM, though, so if you have bad luck, your program will run out of RAM when using that feature. But if it doesn't, this feature should rais...
by pcoenen
Mon Sep 30, 2019 9:18 pm
Forum: madExcept
Topic: Why no mbr file?
Replies: 11
Views: 4648

Why no mbr file?

Using madExcept version 5.0.0, 64bit application (Delphi 10.2.3) Although my application crashes (yes deeply ashamed) and MS windows shows an info popup about the crash, I can't find a mbr file afterwards. I'm sure my setup of madExcept is ok (I've did a test to force an exception which generated a ...
by pcoenen
Sun Dec 09, 2018 12:28 pm
Forum: madSecurity
Topic: Copy File Owner
Replies: 9
Views: 6503

Re: Copy File Owner

FYI

My tool can be used as application or as service. With the service version I don't have to add any Administrator tricks. Even the default Logon As user of the service (= Local System Account) is allowed to change the owner of the copied file. Strange ..
by pcoenen
Sun Dec 09, 2018 12:18 pm
Forum: madSecurity
Topic: Copy File Owner
Replies: 9
Views: 6503

Re: Copy File Owner

Ok added a function called 'SetPrivilege'. I call this function before changing the owner. Application must be started as Administrator'. SetPrivilege('SeRestorePrivilege'); // SE_RESTORE_NAME Function SetPrivilege(Const PrivilegeName: String): Boolean; Var TokenPrivileges, RequestedPrivileges: TTok...
by pcoenen
Sat Dec 08, 2018 5:55 pm
Forum: madSecurity
Topic: Copy File Owner
Replies: 9
Views: 6503

Re: Copy File Owner

Ok thank you. I did a test with the procedure EnableAllPrivileges

When I start my application as Adminstrator then it works. Enough for today:-)
I'll do some more testwork tomorrow (I need to limit this somehow), thanks for helping.

Regards,
Pascal
by pcoenen
Sat Dec 08, 2018 5:23 pm
Forum: madSecurity
Topic: Copy File Owner
Replies: 9
Views: 6503

Re: Copy File Owner

Ok I found https://docs.microsoft.com/en-us/windows/desktop/api/aclapi/nf-aclapi-setnamedsecurityinfow The SecurityInfo parameter must include the OWNER_SECURITY_INFORMATION flag. To set the owner, the caller must have WRITE_OWNER access to the object or have the SE_TAKE_OWNERSHIP_NAME privilege ena...
by pcoenen
Sat Dec 08, 2018 4:58 pm
Forum: madSecurity
Topic: Copy File Owner
Replies: 9
Views: 6503

Re: Copy File Owner

In Function

Code: Select all

function TISecurityObject.SetSecurityInfo
The result of c1 = 5
(FYI: sidGroup, dacl, sacl are all Nil)

Code: Select all


c1 := SetNamedSecurityInfoW(PWideChar(name), type_, c1, sidOwner, sidGroup, dacl, sacl)[/b]

by pcoenen
Sat Dec 08, 2018 4:40 pm
Forum: madSecurity
Topic: Copy File Owner
Replies: 9
Views: 6503

Re: Copy File Owner

ok good ideae. Let me try this ..
by pcoenen
Sat Dec 08, 2018 4:27 pm
Forum: madSecurity
Topic: Copy File Owner
Replies: 9
Views: 6503

Copy File Owner

Hi, After a copy of a file I would like to change the owner of the copied file to the owner of the original file. I've tried many (many) things but I'm getting "access denied" as LastErrorStr. When I start my application As Administrator then I get "This security ID may not be assigne...
by pcoenen
Mon Mar 19, 2018 9:25 pm
Forum: madExcept
Topic: Access violation at address 00000000
Replies: 8
Views: 6009

Re: Access violation at address 00000000

Update ..

I removed the FastMM4 unit from my Service project (GitHub version) so now my Delphi XE7 is using the original version again. Created a new build of the service and it is running at the user without issues at the moment. To be continued ..
by pcoenen
Mon Mar 12, 2018 5:33 pm
Forum: madExcept
Topic: Access violation at address 00000000
Replies: 8
Views: 6009

Re: Access violation at address 00000000

Added Raise Exception.Create('some test'); at different positions and different threads. Each time an mbr file is created. In any case, madExcept is supposed to catch these things, unless there's a try..except block somewhere catching the exception before madExcept "sees" it. I don't think...