Hello,
Reading the code for another issue I'm facing, I stumbled upon the implementation of MyRaiseExceptProc all in assembly.
I'm surprised that it works for x64 because it never uses the "r" registers as one would expect under x64.
Now, I can see that the RTL itself does not use any x64 specific code, but it looks dubious as well because it stores object pointers in eax where clearly, that is not enough.
Am I missing something here?
MyRaiseExceptProc and TExceptionRecord under x64
Re: MyRaiseExceptProc and TExceptionRecord under x64
Don't know about the RTL code. Haven't looked at that, and don't want to, not my responsibility.
About madExcept: You must have looked at the wrong part of the "{$ifdef _WIN64} {$else} {$endif}" section. The x64 part doesn't have a "MyRaiseExceptProc" at all, there the exception hooking works a bit differently.
About madExcept: You must have looked at the wrong part of the "{$ifdef _WIN64} {$else} {$endif}" section. The x64 part doesn't have a "MyRaiseExceptProc" at all, there the exception hooking works a bit differently.
Re: MyRaiseExceptProc and TExceptionRecord under x64
You are definitely right, I did not expect the ifdef to be that big and did not notice it at first.
Sorry for wasting your time.
Sorry for wasting your time.
Re: MyRaiseExceptProc and TExceptionRecord under x64
No probs, only cost me a minute.