Initializing the thread system with a dummy thread as suggested by
http://wiki.freepascal.org/Multithreaded_Application_Tutorial has
(apparently) fixed the problem.
Thanks all for the support.
--
Josue Andrade Gomes
On Fri, Jun 7, 2013 at 10:03 AM, Josue Andrade Gomes
wrote:
> On Thu, Jun 6,
On Thu, Jun 6, 2013 at 11:09 AM, Josue Andrade Gomes
wrote:
I reproduced the problem with a small Lazarus application. The crash
occurs inside fpc_popaddrstack.
0x40b750 jmp0x40b759 mov(%ebx),%eax
> 0x40b754 mov0x4(%eax),%eax
0x40b757 mov
On Thu, Jun 6, 2013 at 9:40 AM, Josue Andrade Gomes
wrote:
> If someone is interested my small test can be found at
> www.josuegomes.com/fp-msvc.zip
The link is now fixed. Sorry.
josue
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http:/
On Wed, Jun 5, 2013 at 5:44 PM, Jonas Maebe wrote:
>
> On 05 Jun 2013, at 15:04, Josue Andrade Gomes wrote:
>
>> Some references (eg (2)) claim that MSVC aligns the stack at 4-byte
>> boundaries while GCC aligns
>> at 16-byte boundaries. I have found no confirmation on those claims.
>
> Stack alig
On 05 Jun 2013, at 15:04, Josue Andrade Gomes wrote:
> Some references (eg (2)) claim that MSVC aligns the stack at 4-byte
> boundaries while GCC aligns
> at 16-byte boundaries. I have found no confirmation on those claims.
Stack alignment is not a compiler property, but a platform property. The
Stack alignmennt in call from C++ to FPC
Hi,
I have recently ported a Delphi application to Lazarus/FPC (Win32/x86).
This application makes use of a DLL implemented in MS Visual C++ 2010.
The calls from FPC code to C++ code work fine. However this DLL also
has a callback
system for notifications