[fpc-devel] Building trunk on Win32

Sergei Gorelkin sergei_gorelkin at mail.ru
Sat Nov 26 19:50:23 CET 2011


26.11.2011 17:18, Leonardo M. Ramé пишет:

>>>   Runtime error 226 at $0040C776
>>>      $0040C776
>>>      $0040FB59
>>>      $7C81A1C2
>>>      $7C845A7C
>>>      $7C83FE59
>>>      $7C82EB2F
>>>      $7C828355
>>

$0040C776 is systhrd.inc line 125    "if TLSKey=$ffffffff then RunError(226)
$0040FB59 is syswin.inc line 356,    DLL_THREAD_ATTACH branch of exec_tls_callback

This is TLS callback feature showing its dark side.

Something specfic to your system is creating a thread in your ppc2.exe, presumably it happens before 
ppc2.exe is initialized (if it initializes, TLSKey will receive value other than -1).

Check for antivirus software, etc. If you want to get a clue what it is, you may use e.g. 
ProcessExplorer tool (http://technet.microsoft.com/ru-ru/sysinternals/bb896653). Launch any FPC 
binary that launches (it will display help and wait for keypress), find it in process list, 
right-click and select Properties, then "Threads" tab. If I'm correct, you'll see more than one item 
in the thread list.

Regards,
Sergei



More information about the fpc-devel mailing list