#1 2013-02-12 14:40:06

tikskit
Member
Registered: 2013-02-12
Posts: 2

Why I get to SynCommons.Move during debugging?

Hello!

Since I use SynPdf.pas I have to include SynCommons.pas in my project. But it seems I've got more than I wanted. Sometimes when I debug in IDE and try to dig into some routine I get to Move procedure from SynCommons.pas instead of my proc where I want to come!

procedure Move(const Source; var Dest; Count: Integer);
asm // eax=source edx=dest ecx=count
         // original code by john o'harrow - included since delphi 2007
        cmp     ecx,32


what's going on? And how to switch it off? I only need to export my reports to PDF! not logging or something else!

P.S. I apologize if questions like this are exists (despite of the fact that I've tried to find them)

P.P.S I use Delphi 7 and  'version 1.15' is written in all synopse files.

Thanks!

Offline

#2 2013-02-12 19:38:23

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: Why I get to SynCommons.Move during debugging?

FastCode move and fillchar are included within SynCommons.pas.
You can get rid of it, by commenting the corresponding lines in the initialization block of this unit.
Under new versions of the framework, you have a conditional setting to disable it.

SynPDF was not tied to SynCommons.pas at the beginning, but a lot of duplicated code did appear between the two units.
Since SynCommons.pas is optimized for speed, and unit tested, we rather rely on it.
SmartLinking won't make it big in your exe: logging and all the other won't be part of it.

Offline

#3 2013-02-13 01:08:37

tikskit
Member
Registered: 2013-02-12
Posts: 2

Re: Why I get to SynCommons.Move during debugging?

Do you mean I should comment these?
RedirectCode(GetAddressFromCall(@RecordCopyInvoke),@RecordCopy);
RedirectCode(GetAddressFromCall(@FillCharInvoke),@FillChar);
RedirectCode(GetAddressFromCall(@MoveInvoke),@Move);

Offline

#4 2013-02-13 05:31:09

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: Why I get to SynCommons.Move during debugging?

Yes that is pretty much it!

smile

Offline

Board footer

Powered by FluxBB