Recent

Author Topic: [SOLVED] Problem compiling  (Read 11802 times)

wp

  • Hero Member
  • *****
  • Posts: 13645
Re: Problem compiling
« Reply #15 on: October 05, 2014, 03:36:17 pm »
If you comment the "if (length(msg) div (length(msg) div 1000))=0 then" in "RaiseGDBException" of LCLProc the program compiles. Just a quickfix to keep you going. Strange instruction, no idea why a GDB Exception should be raised if a message is shorter than 10000 characters...

Be aware that as long as the root cause of your issue is not found you have to comment this line again whenver you update Lazarus.

Mike.Cornflake

  • Hero Member
  • *****
  • Posts: 1306
Re: Problem compiling
« Reply #16 on: October 05, 2014, 03:46:57 pm »
And of course, be aware that without anything in Mantis,  only pure luck will see this resolved in future releases  :)
Lazarus Trunk/FPC latest fixes on Windows 11
  How to use the forum:  https://wiki.lazarus.freepascal.org/Forum

Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
Re: Problem compiling
« Reply #17 on: October 05, 2014, 03:53:26 pm »
From debugger:
Code: [Select]
...
TControl.DoSetBounds tsCorrelation:TTabSheet Old=0,0,0,0 New=0,0,115712,58112
ERROR in LCL: TControl.DoSetBounds tsCorrelation:TTabSheet Invalid bounds
Creating gdb catchable error:
...
There's attempt to set width > 100000 and therefore is raised exception.

I guess there's is some wrong combination of autosizing and anchoring.

It is the case of tsCorrelation, tsStatistics and others.

Just open mainform.lfm and search for string "ClientWidth". Repair all occurrences, like:
Code: [Select]
ClientHeight = 58112
ClientWidth = 115712
and others, where are values around 80000, those are surely incorrect.
After this, I was able to switch to form with F12 and project compiled and ran.
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

wp

  • Hero Member
  • *****
  • Posts: 13645
Re: Problem compiling
« Reply #18 on: October 05, 2014, 04:04:02 pm »
Yes, I can confirm Blaazen's observation: setting all "astronomic" values of TabSheet.ClientHeight to 454 and .ClientWidth to 904 (values used in other tabs) fixes the issue. No idea how this could happen. Maybe because you have the PageControl's Visible at false at design-time? Leave everything at visible=true while designing and switch ON in the FormCreate what you don't want to see initially.
« Last Edit: October 05, 2014, 04:09:44 pm by wp »

madepabloh

  • Full Member
  • ***
  • Posts: 160
Re: Problem compiling
« Reply #19 on: October 05, 2014, 04:33:10 pm »
Yes, i use other components: CSVDocuments and Thumbnails. Those are the links:

CSVDocuments: http://wiki.freepascal.org/CsvDocument
Thumbnails viewer: https://github.com/theo222/lazarus-thumbviewer

OH!, i see now all your replies... Thanks so much guys... i didn´t see that astronomic values for the tabs... I don´t know how could this happend.

I will repair all of them and try to have it working again.
I really appreciate all your efforts to help me.
Let me try to made the modifications.

madepabloh

  • Full Member
  • ***
  • Posts: 160
Re: Problem compiling
« Reply #20 on: October 05, 2014, 05:06:57 pm »
Thanks guys,

I really appreciate your ideas and comments. I made the changes of tabs sizes, and now i am able to see the form in design time, and it compiles and works correctly!!

You are my heroes!! I was so focussed and on the elements i deleted the last time, and i didn´t see the issue with the size of the tabs, what i didn´t modified.

Thanks to all of you for your help!
« Last Edit: October 05, 2014, 05:10:19 pm by madepabloh »

 

TinyPortal © 2005-2018