You are not logged in.
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
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
Do you mean I should comment these?
RedirectCode(GetAddressFromCall(@RecordCopyInvoke),@RecordCopy);
RedirectCode(GetAddressFromCall(@FillCharInvoke),@FillChar);
RedirectCode(GetAddressFromCall(@MoveInvoke),@Move);
Offline