Hello

I have a problem when using ActiveX and HeapTrace -gh.

I've imported a type libary using the Lazarus tool:

C:\Windows\System32\Speech\Common\sapi.dll -> SpeechLib_5_4_TLB.pas

From these imported controls, I'm using TAxcSpVoice with this code (testing):

--------------------------------------------------
uses SpeechLib_5_4_TLB;
....
var vc:TAxcSpVoice;
begin
  vc:=TAxcSpVoice.Create(nil);
  ...
  vc.free;
end;
--------------------------------------------------

Everything is fine so far. It works (and speaks) without error messages.

However, when I use HeapTrace (-gh) it crashes at vc.free

External SIGSEGV
fpc_intf_assign
.....
000000000040C125 488b00                   mov    (%rax),%rax
000000000040C128 ff5010                   callq  *0x10(%rax)
000000000040C12B 488b442420               mov    0x20(%rsp),%rax
000000000040C130 488903                   mov    %rax,(%rbx)
000000000040C133 488b5c2428               mov    0x28(%rsp),%rbx
000000000040C138 4883c438                 add    $0x38,%rsp
000000000040C13C c3                       retq
000000000040C13D 0000                     add    %al,(%rax)
000000000040C13F 00                       add    %cl,-0x7d(%rax)
fpc_intf_as
000000000040C140 4883ec38                 sub    $0x38,%rsp
000000000040C144 48895c2430               mov    %rbx,0x30(%rsp)


What can it be?
Can I ignore it? it works fine without heaptrace.
I'm using FPC and Lazarus from SVN (updated today) on Win7, everything 64 bit.

Thank you
Theo

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

Reply via email to