Welcome, Guest
Username: Password: Remember me
Lab CT Version, news, test results, new features request and suggestions
  • Page:
  • 1
  • 2

TOPIC:

CT LAB ver 6.30 6 years 4 months ago #11089

  • Sternas Stefanos
  • Sternas Stefanos's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4506
  • Thank you received: 1100

Alex wrote: Hello. I have a question. I tried to build cross element armel-linux, but got an error

what i can do with this?

Thank you in advance.


Please Sir give us more info
your Hosts OS etc...

if you have Windows please use FPC32 for cross-build

PilotLogic Architect and Core Programmer

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

Last edit: by Sternas Stefanos.

CT LAB ver 6.30 6 years 4 months ago #11096

  • fredvs
  • fredvs's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 205
  • Thank you received: 1

Sternas Stefanos wrote:

fredvs wrote: Hello Sternas.

I have problem to install last version 6.3 in Linux Mint 17.

Fre;D


Sir, please try to install p7zip
sudo apt-get install p7zip
or
sudo apt-get install 7zip

CT6.30 has the latest p7zip, this version of p7zip works only with the new Linux Kernels (>4.2)
CT will use the local copy of p7zip if exists.

LinuxMint 17.x use old Linux Kernel

Screen Lab from LinuxMint 18.2 Sonya (now) with OpenGL 4.6 Tests...


Hello Sternas.

OK, I get it.

This does the trick:

$ cd /the/directory/of/CodeTyphonIns (---> this was needed)

$ sudo /the/directory/of/CodeTyphonIns/install.sh

I know that normally "sudo" must not be used.
But if I do not use "sudo" ---> "Error, sudo is not installed". (???)

When using sudo /the/directory/of/CodeTyphonIns/install.sh --->

0) Install CodeTyphon Studio + 8) Remove and Build ALL --->

All compiles and install ok.

After some test, very good impression ;-)

About fpc 3.1.1, a litle bemol: for every project, if you choose optimisation -O2 -->

Error: /usr/local/codetyphon/fpc/fpc64/bin/x86_64-linux/ppcx64 can't be executed, error message: Failed to execute "/usr/local/codetyphon/fpc/fpc64/bin/x86_64-linux/ppcx64", error code: -11

But with optimisation -O3 --> OK.

Other thing.

About installing CT-Windows on a Linux system.

Perfect, you have added the missing ".bat" extensions in all the Windows-scripts.

Now ---> wine x_CodeTyphon_Remove_Make_ALL.bat --> install CT-Windows on my Linux mint system perfectly. ---> Wow and many thanks.

Huh, fpc 3.1.1 is not fully compatible with fpc 3.0.x. But this is a other story.

Thanks Sternas.

Fre;D

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

CT LAB ver 6.30 6 years 4 months ago #11097

  • Sternas Stefanos
  • Sternas Stefanos's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4506
  • Thank you received: 1100
Thanks Sir
and have fun
PilotLogic Architect and Core Programmer

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

CT LAB ver 6.30 6 years 3 months ago #11124

  • Klaus Riesterer
  • Klaus Riesterer's Avatar
  • Visitor
  • Visitor
Big problem with 6.30 !

My project was developed with CT6.00 and all works fine. Yesterday I updated to CT6.30. My system is linux mint 18.3.

What happens:
After starting the PC I can open and compile my application - it runs.
When I close the application I get an exception and I can't restart it until I restart my system:

TApplication.HandleException Access violation
Stack trace:
$0000000000468D66 FORMCREATE, line 30 of INCLUDES/ctrmenhaupt.inc
$000000000044F475 DOCREATE, line 939 of include/customform.inc
$000000000044D39A AFTERCONSTRUCTION, line 149 of include/customform.inc
$0000000000455547 CREATE, line 3156 of include/customform.inc
$000000000045ECE1 CREATEFORM, line 2223 of include/application.inc
$00000000004201BF main, line 68 of ctrboss.ppr
Heap dump by heaptrc unit
45402 memory blocks allocated : 7110519/7218584
45393 memory blocks freed : 7110052/7218104
9 unfreed memory blocks : 467
True heap size : 1474560
True free heap : 1472640
Should be : 1472928

There where no problems with CT6.00, all blocks where freed on exit.

Any idea where and how I can find the reason for that?

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

CT LAB ver 6.30 6 years 3 months ago #11125

  • Sternas Stefanos
  • Sternas Stefanos's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4506
  • Thank you received: 1100
Sir more info ?
PilotLogic Architect and Core Programmer

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

CT LAB ver 6.30 6 years 3 months ago #11127

  • Klaus Riesterer
  • Klaus Riesterer's Avatar
  • Visitor
  • Visitor
See later posts

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

Last edit: by Klaus Riesterer.

CT LAB ver 6.30 6 years 3 months ago #11128

  • Sternas Stefanos
  • Sternas Stefanos's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4506
  • Thank you received: 1100
My sugestion:

1)Copy ZEOS from CT6.00
2)Convert old ZEOS files with CTCenter=>CodeTyphon=>Convert OLd ....

3) Replace ZEOS in CT6.3 with OLD ZEOS
4)Test CT 6.3 with OLD ZEOS...

..
PilotLogic Architect and Core Programmer

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

CT LAB ver 6.30 6 years 3 months ago #11130

  • Klaus Riesterer
  • Klaus Riesterer's Avatar
  • Visitor
  • Visitor
Hi Sternas,

I installed again 6.30 (complete reinstall, not update) and walk through my program step by step. What I got in Debug-Console is now different from last time:

(ctrboss:3924): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

(ctrboss:3924): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

(ctrboss:3924): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

(ctrboss:3924): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

(ctrboss:3924): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

(ctrboss:3924): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

(ctrboss:3924): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

(ctrboss:3924): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

(ctrboss:3924): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

(ctrboss:3924): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

(ctrboss:3924): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

(ctrboss:3924): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

(ctrboss:3924): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

(ctrboss:3924): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
[FORMS.PP] ExceptionOccurred
Sender=EAccessViolation
Exception=Access violation
Stack trace:
$00007FFFF693B7ED
$000000000063BB87 NEWDEVICECONTEXT, line 766 of gtk2/gtk2def.pp
$00000000004991D2 NEWDC, line 5471 of gtk2/gtk2widgetset.inc
$00000000004A93A5 SAVEDC, line 7493 of gtk2/gtk2winapi.inc
$0000000000585B10 SAVEDC, line 830 of include/winapi.inc
$00000000005A5BCA SAVESTATE, line 1772 of include/canvas.inc
$00000000005A5AD6 TEXTEXTENT, line 1790 of include/canvas.inc
$00000000005A5C08 TEXTWIDTH, line 1809 of include/canvas.inc
$0000000000E7077E TEXTBOUNDS, line 911 of source/rlutils.pas
$0000000000E48070 CALCSIZE, line 7801 of source/rlreport.pas
$0000000000E43CC6 ADJUSTBOUNDS, line 6479 of source/rlreport.pas
$0000000000E4652C SETAUTOSIZE, line 7354 of source/rlreport.pas
$0000000000E47A1C CREATE, line 7717 of source/rlreport.pas
$0000000000E49085 CREATE, line 8016 of source/rlreport.pas
$00000000004D2BA9
$00000000004D3205
$00000000004D2E74
TApplication.HandleException Access violation
Stack trace:
$00007FFFF693B7ED
$000000000063BB87 NEWDEVICECONTEXT, line 766 of gtk2/gtk2def.pp
$00000000004991D2 NEWDC, line 5471 of gtk2/gtk2widgetset.inc
$00000000004A93A5 SAVEDC, line 7493 of gtk2/gtk2winapi.inc
$0000000000585B10 SAVEDC, line 830 of include/winapi.inc
$00000000005A5BCA SAVESTATE, line 1772 of include/canvas.inc
$00000000005A5AD6 TEXTEXTENT, line 1790 of include/canvas.inc
$00000000005A5C08 TEXTWIDTH, line 1809 of include/canvas.inc
$0000000000E7077E TEXTBOUNDS, line 911 of source/rlutils.pas
$0000000000E48070 CALCSIZE, line 7801 of source/rlreport.pas
$0000000000E43CC6 ADJUSTBOUNDS, line 6479 of source/rlreport.pas
$0000000000E4652C SETAUTOSIZE, line 7354 of source/rlreport.pas
$0000000000E47A1C CREATE, line 7717 of source/rlreport.pas
$0000000000E49085 CREATE, line 8016 of source/rlreport.pas
$00000000004D2BA9
$00000000004D3205
$00000000004D2E74

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

Last edit: by Klaus Riesterer.

CT LAB ver 6.30 6 years 3 months ago #11131

  • Klaus Riesterer
  • Klaus Riesterer's Avatar
  • Visitor
  • Visitor
Next Step:

I located a form with FortesReport generating the g_object_unref: assertions.

I commented this page and now the program starts - but on close i get unfreed memory block with luirest.pas

Heap dump by heaptrc unit
691290 memory blocks allocated : 139941829/142027976
691286 memory blocks freed : 139941717/142027864
4 unfreed memory blocks : 112
True heap size : 3276800
True free heap : 3276032
Should be : 3276176
Call trace for block $00007FFFEE8D4200 size 32
$0000000000D67A59 LUIRESTFASTCGI_$$_init$, line 49 of source/luirest/luirestfastcgi.pas
$000000000043616C
Call trace for block $00007FFFEE8D4140 size 24
$0000000000D67A59 LUIRESTFASTCGI_$$_init$, line 49 of source/luirest/luirestfastcgi.pas
$000000000043616C
Call trace for block $00007FFFEE8D4080 size 32
$0000000000DEFC98
$0000000000D629A9 LUIRESTCGI_$$_init$, line 105 of source/luirest/luirestcgi.pas
$000000000043616C
Call trace for block $00007FFFEE8D3FC0 size 24
$0000000000DEFC98
$0000000000D629A9 LUIRESTCGI_$$_init$, line 105 of source/luirest/luirestcgi.pas
$000000000043616C

This also appears after removing pl_luicontrols from installed packages !
I did not use any luirest* in my project. All I used (before I removed the luicontrols) was uniqueinstance.

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

Last edit: by Klaus Riesterer.

CT LAB ver 6.30 6 years 3 months ago #11132

  • Klaus Riesterer
  • Klaus Riesterer's Avatar
  • Visitor
  • Visitor
I removed the link for pl_luicontrols in Package-Links and it works. All I missed now was TUninqueInstance ...

So I opened the package and compiled it, then I placed TUniqueInstance back on my form and after compiling the project now works and the HeapStack is OK.
(Not Fortes but I will use freereport in future, because Fortes makes often problems in my project)

Conclusion:
1. Fortes Report makes problems (Access Violation with my report)
2. It was not zeos as mentioned in the earlier post
3. Its better to remove CT and reinstall it completely new instead of doing an update
4. I like CT again ;-) - Great work - Thank you Sir!

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

Last edit: by Klaus Riesterer.

CT LAB ver 6.30 6 years 3 months ago #11133

  • Sternas Stefanos
  • Sternas Stefanos's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4506
  • Thank you received: 1100
Thanks Sir

3. <<Its better to remove CT and reinstall it completely new instead of doing an update>>

YES YES
update is only for LAB Team.
We remove and rebuild Typhon and FPC, many many times per day, in ALL LAB PC's (total 35) :)
CodeTyphon has the proper "Architecture" for this and it's a normal CT Action...

and have fun...
PilotLogic Architect and Core Programmer

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

Last edit: by Sternas Stefanos.

CT LAB ver 6.30 6 years 3 months ago #11160

  • Klaus Riesterer
  • Klaus Riesterer's Avatar
  • Visitor
  • Visitor
Found another error in 6.30:

DBLookUpCombobox unfunctional:

Can select value, but it will not be saved !

Same code works with 6.00

(on mint 18.3)

If no solution will be found: Is there a way to convert back to 6.00

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

Last edit: by Klaus Riesterer.

CT LAB ver 6.30 6 years 3 months ago #11161

  • xcod
  • xcod's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 45
  • Thank you received: 2
hi
i have same problem :(

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

CT LAB ver 6.30 6 years 3 months ago #11162

  • Sternas Stefanos
  • Sternas Stefanos's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4506
  • Thank you received: 1100
Please guys a sample for testing...
PilotLogic Architect and Core Programmer

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

Last edit: by Sternas Stefanos.

CT LAB ver 6.30 6 years 3 months ago #11166

  • Theo Kamphuis
  • Theo Kamphuis's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 10
  • Thank you received: 0
I have the same problem and I use a workaround. The workarount is to force the query object in the edit mode on the click event.

frmDM.qryItems.Edit;

The same problem for the object TDBDateEdit field

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

Last edit: by Theo Kamphuis.

CT LAB ver 6.30 6 years 3 months ago #11167

  • Klaus Riesterer
  • Klaus Riesterer's Avatar
  • Visitor
  • Visitor
A workaround is a good thing in the moment, but not a solution. There is an error outside which should be found and fixed.
I lived with workarounds over 15 years, using MS Visual Studio. :-( FPC is even better!

As I switched back to CT 6.00 I can't do any more tests or samples yet. Sorry, but I'm in need of time ...

pm: I switched the query to edit before I selected in the combo - no luck

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

Last edit: by Klaus Riesterer.
  • Page:
  • 1
  • 2