![]() |
Re: Code läuft in VCL aber nicht in Console (GetThreadContex
Wenn der Speicher 8-Byte-Alligned vorliegt, dann paßt da nicht nur 8-Byte, sondern auch alle kleineren Zweierpotenzen aligned dort rein. :roll:
Aber vielleicht sollte man nicht nur den Zugriffsfehler beim Speicher, sondern beim Kontext suchen? ![]() Zitat:
|
Re: Code läuft in VCL aber nicht in Console (GetThreadContex
Zitat:
Edith meinte noch, dass es nicht am Alignment liegt, da in der Subfunktion der Speicher auch passend Aligned ist. |
AW: Code läuft in VCL aber nicht in Console (GetThreadContext)
Please look back to Dezipaitor's answer on page 1, I agree with him that the error is likely to be caused because you are specifying a constant value and CreateProcess writes to it.
I wrote a while back about this on the Jedi Blog: ![]() It also explains why it works well in Delphi 2007 and not in 2010 (because 2010 uses CreateProcessW and 2007 will use CreateProcessA). |
AW: Code läuft in VCL aber nicht in Console (GetThreadContext)
I think it could be one of the problems, but not all of them. I tried to call CreateProcessW with a variable parameter and without. Both calls were successfully completed, but GetThreadContext() still fails.
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 22:36 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz