----- Original Message -----

> From: Sven Barth <pascaldra...@googlemail.com>
> To: fpc-devel@lists.freepascal.org
> Cc: 
> Sent: Saturday, November 26, 2011 3:40 PM
> Subject: Re: [fpc-devel] Building trunk on Win32
> 
> On 26.11.2011 19:50, Sergei Gorelkin wrote:
>>  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.
> 
> If your assumption should be correct, what can be done against this from 
> FPC side?
> 
> Regards,
> Sven
> 
This machine is running Win2003 32bits as Guest on VirtualBox 4.1.2 on Ubuntu 
11.10 x86_64. On Windows it is not running any antivirus and I enabled only the 
default services, disabled firewall/updates/antivirus/etc.

I did a test with processexplorer as you suggested, by running fpc, then go to 
procexp->ppc386.exe->properties->threads and captured the attached screenshot. 

Hope this help to find the problem.

-- 
Leonardo M. Ramé
http://leonardorame.blogspot.com  

<<attachment: threads.JPG>>

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to