Welcome, Guest
Username: Password: Remember me
General discussions, feature requests for CodeTyphon Project and discussions that don't fit in any of the other specific CodeTyphon forum categories.
  • Page:
  • 1
  • 2

TOPIC:

CT560 first impression 9 years 4 days ago #8754

  • Dinko
  • Dinko's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 91
  • Thank you received: 5
I want to share my first impression with CT560. I can tell only things that I can test in my projects.
My application use Indy library, that I have my visual components based on BGRA and customdrown. I use very muct VirtualTree component (which is updated to new version in this version).
I also use Postgres, Mysql, utf8 encoding, https connections, report generation with bitmaps and pistures (printing to thermal printers), xml, json and lot of other stuff. I think this is pretty much everything what you need to build database driven projects.

So.

1. It seems that Postgres and WIN64 now works correctly. I reported error when fetching big float number from database. If you make query like this.
SELECT CODE_DATABASE, CAST(1.401 as NUMERIC(8,4)) as NUM1, CAST(1.401 as NUMERIC(78, 8)) as NUM2 FROM CONF_DATABASE
and you are using win64 and you try to get NUM2 with
MyNum2 := MyQuery.FieldByName('NUM2').AsFloat;
you will get 10000 times bigger number, so you have to devide this number with 10000 to get the result. Problem is that such big numeric are formated
ans BCD and this does not works correctly. So I had function which fix this.
Now the problem is I dont know how to distinguish CT540 from CT560 with some compiler directive, especially because both compilers are fpc 3.1.1 with some different SVN number.
The question is: How can I distinguish CT 540 , CT550, CT560 or even better fpc in CT540, CT550 or CT560, so I can write code without parameters which are needed to detect should I devide number with 10000 or not?

2. Indy library still have gzip bug which CT 560 you correctly fix like in previous version. Thanks to fixing this.
3. Somebody is playing again with TZOffset and DateUtils.inc LocalTimeToUniversalTime and UniversalTimeToLocalTime. Now it works but only because when function is called it change sign of TZOffset with -. That can work, but maybe something else depends on it also. Can not tell what.
4. I like Multi-Project Editor. It is good and it will save lots of time for me because I have many applications in one project. This does not works exactly like in Delphi but thanks for that extension, it is great. Of cource bugs will be reported :-)

Applications are in production and I just recompiled and make some first tests. Following days I will put to test environment and if something is not OK I will report an error so we or I can fix this.
Thanks again for this great release.

Regards, Dinko

Please Log in or Create an account to join the conversation.

CT560 first impression 9 years 4 days ago #8755

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4540
  • Thank you received: 1117
Thanks Sir
we put a lot of programming days (months) to this release
For CT more release information you can use codetyphon\fpcsrc\packages\fcl-base\src\ctutils.pp unit
have fun
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

CT560 first impression - second 9 years 2 days ago #8767

  • Dinko
  • Dinko's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 91
  • Thank you received: 5
Hello again.

Bad news I'm afraid. I just recompiled 12 of my applications with CT560 (prior version was CT540). Some of them are gui application, some are services with gui components on it, and some are just server.
All applications use cmem memory manager, and bunch of other stuff. All works in windows environment and all works 24x7.
After 2 days I get report that memory on server is eaten - all CT560 applications still memory from system. I have similar servers with similar configuration but with old CT540 versions of application.
All is OK with CT540, so I assume that CT560 use maybe unstable enough fpc version.
Be carefull with CT560. I did not yet found what is the real cause for unexpected memory consumption

BTW. Mulity'Project is great. After 3 days of using that I can not leave without it :-)

Regards, Dinko

Please Log in or Create an account to join the conversation.

CT560 first impression - second 9 years 2 days ago #8768

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4540
  • Thank you received: 1117
Sir
we want more info to help you
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

CT560 first impression - second 9 years 2 days ago #8769

  • Dinko
  • Dinko's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 91
  • Thank you received: 5
I will try to write simple program which will run 24x7 in order to produce memory leak error.
Program will not be finished soon because of holidays

Regards, Dinko.

Please Log in or Create an account to join the conversation.

CT560 first impression - second 9 years 2 days ago #8770

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4540
  • Thank you received: 1117
Thanks Sir
Yes Merry Christmas to all

I must go to my family... :blush:
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

CT560 MemoryLeak - ProjectExample 8 years 11 months ago #8788

  • Dinko
  • Dinko's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 91
  • Thank you received: 5
Hello
I wrote program which can reproduce memory leak in CT560.
Good thing is that memory leak is connected to database application and not to plain fpc applications.
Program first test creation and destruction of 1000 plain objects. This part is OK.
Second part is query SQLLite database - this part produce memory leak in CT560, but CT540 is OK.
I put heaptrace.trc files so you can see.
I also checks sqldb.pp and found some changes, but I do not think this is problem.
Problem is probably somewhere in TFields components of sqldb system.
Project is compiled for Win32. I use Win32 CodeTyphon.

Regards, Dinko

Please Log in or Create an account to join the conversation.

Last edit: by Dinko.

CT560 MemoryLeak - ProjectExample 8 years 11 months ago #8789

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4540
  • Thank you received: 1117
Sir, we will test and report
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

CT560 MemoryLeak - ProjectExample 8 years 11 months ago #8790

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4540
  • Thank you received: 1117
Sir
we test your project and I think all are OK

Test a) Lab CT 5.70, Typhon32, Windows 10 Pro 64bits
but we use sqlite3.dll from CodeOcean
C:\codetyphon\CodeOcean\0_libraries\i386-win32\sqlite3.dll

Test b) Lab CT 5.70, Typhon64, Windows 10 Pro 64bits
C:\codetyphon\CodeOcean\0_libraries\x86_64-win64\sqlite3.dll
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

CT560 MemoryLeak - ProjectExample 8 years 11 months ago #8791

  • Dinko
  • Dinko's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 91
  • Thank you received: 5
Problem is not sqllite3.dll. I can reproduce this with any database (postgres, mysql).
I just send you sqlite3.dll because it is easy to install (no installation).
Maybe fpc you used in CT570 fixed the problem with db components.
Is there any chance that you incorporate db components or even better - latest fpc to CT560,
or you think that CT570 is stable enough and I can switch immediately to this version?

Did you check heaptrc.trc file. It should write not freed blocks of memory?

Regards, Dinko

Please Log in or Create an account to join the conversation.

Last edit: by Dinko.

CT560 MemoryLeak - ProjectExample 8 years 11 months ago #8792

  • Dinko
  • Dinko's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 91
  • Thank you received: 5
Can you give me the link where I can download CT570, so I can test for myself.
Is it possible to update 560 to 570 via CodeTyphon64 UpdateManager?

Please Log in or Create an account to join the conversation.

CT560 MemoryLeak - ProjectExample 8 years 11 months ago #8793

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4540
  • Thank you received: 1117
Give us 1-2 hours to pack and upload Lab CT 5.70
has many FreePascal fixes...
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

CT560 MemoryLeak - ProjectExample 8 years 11 months ago #8794

  • Dinko
  • Dinko's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 91
  • Thank you received: 5
Thanks. I will check this fixes as soon as possible. Please put link to CT570 when available.

Regards, Dinko

Please Log in or Create an account to join the conversation.

CT560 MemoryLeak - ProjectExample 8 years 11 months ago #8795

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4540
  • Thank you received: 1117
We must solve a small QT5 bug now
no other problems, I hope

We will release Lab CT 5.70 revision 005610,
CTCenter => UpdateManager => Lab Version
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

CT560 MemoryLeak - ProjectExample 8 years 11 months ago #8796

  • Dinko
  • Dinko's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 91
  • Thank you received: 5
This is not yet available, or?

Please Log in or Create an account to join the conversation.

CT560 MemoryLeak - ProjectExample 8 years 11 months ago #8799

  • Dinko
  • Dinko's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 91
  • Thank you received: 5
I installed update for CT570. Installed succesfully *** CT LAB 5.7.0 Revision 005610 Actions ***
Unfortunately leak still exists.
I compiled with typhon32 to win32 and win64. Same error exists like in CT560 build 005600
Check out attached picture.
Also I updated query in test program so it use query params (so I can check params leaks)

To find leak use heap trace after program regularly finish (dont check memory print on standard output)

Regards, Dinko

Please Log in or Create an account to join the conversation.

Last edit: by Dinko.

CT560 MemoryLeak - ProjectExample 8 years 11 months ago #8800

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4540
  • Thank you received: 1117
Sir
please go to Lab CT 5.70
C:\codetyphon\CodeOcean\Database\samples\sqlite3TestMemoryLeak\
and open-run-test TestMemoryLeak.lpi project
and report
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

CT560 MemoryLeak - ProjectExample 8 years 11 months ago #8801

  • Dinko
  • Dinko's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 91
  • Thank you received: 5
Checked! Same error.

Note: This is not only sqlite memory leak. You can put any database connection.


Regards, Dinko

Please Log in or Create an account to join the conversation.

CT560 MemoryLeak - ProjectExample 8 years 11 months ago #8802

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4540
  • Thank you received: 1117
Sir, here in our lab we have the same result as my review post
I can't give more help
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

CT560 MemoryLeak - ProjectExample 8 years 11 months ago #8803

  • Dinko
  • Dinko's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 91
  • Thank you received: 5
Application must finish regulary (press some key at the end). After that heaptrc.trc file will be written.
Then you check heaptrc.trc file and see if there is some memory unreleased.
Can you, please, do that again and attach screenshot of heaptrc.trc file

Regards, Dinko

Please Log in or Create an account to join the conversation.

Last edit: by Dinko.
  • Page:
  • 1
  • 2