Recent

Author Topic: New Versions of Lazarus breaking old code TSQLQuery  (Read 4633 times)

lefti2003

  • New Member
  • *
  • Posts: 22
New Versions of Lazarus breaking old code TSQLQuery
« on: March 19, 2012, 11:17:58 pm »
Hi All,
 I had a version of lazarus 0.9.24 where my code was working on Redhat 4. We updated lazarus then began having issues. Now we have a clean install of RedHat 5 with lazarus 0.9.26 and fpc version 2.2.2. I keep getting these error messages attached and do not know how to resolve. Your help is much appreciated.

Thanks,

Lefti

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4719
  • I like bugs.
Re: New Versions of Lazarus breaking old code TSQLQuery
« Reply #1 on: March 20, 2012, 12:22:12 am »
Lazarus 0.9.26 is not really a "New Version".
I joined the development ~ 3 years ago and then 0.9.28 was already published.
You should try a more recent version. The development happens with good speed although there are releases only seldom.
You would be positively surprised...

Juha
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

lefti2003

  • New Member
  • *
  • Posts: 22
Re: New Versions of Lazarus breaking old code TSQLQuery
« Reply #2 on: March 20, 2012, 12:38:59 am »
Hi,
 Yes I understand. The sysadmin mentioned that was the latest release he could install without forcing an install and it was the cleanest. Anyways I was able to get around the errors by removing the SQLQuery from the .lfm file and putting it back in. Now I get an error /usr/lib64/lazarus/components/sqldb/sqldblaz.pas(1,1) Fatal:Can't find unit system used by SQLDBLaz

Any ideas?

Thanks

Lefti

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: New Versions of Lazarus breaking old code TSQLQuery
« Reply #3 on: March 20, 2012, 07:42:01 am »
One suggestion would be to get a virtual machine with a recent version of RHEL/CentOS/whatever, and install a recent Lazarus version in it (e.g. the just released 0.9.30.4 IIRC).

You can write your application in this and test it on the old Red Hat machine.

This way, you get access to newer components, bug fixes, performance improvements etc...

There have been quite a few, so a bit of pain in the development process might save you a lot of pain in dealing with possible bugs in your compiled executables...
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: New Versions of Lazarus breaking old code TSQLQuery
« Reply #4 on: March 20, 2012, 07:51:09 am »
You always could install Lazarus (and fpc) in your user directory. Then you can upgrade to the latest release without help from an administrator.

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: New Versions of Lazarus breaking old code TSQLQuery
« Reply #5 on: March 20, 2012, 08:20:03 am »
You always could install Lazarus (and fpc) in your user directory. Then you can upgrade to the latest release without help from an administrator.

Shameless plug: fpcup:
https://bitbucket.org/reiniero/fpcup/downloads
Details:
http://lazarus.freepascal.org/index.php/topic,15919.0.html
... could do that for you....

... or manually with svn checkout/svn update/make etc as per
http://wiki.lazarus.freepascal.org/Installing_Lazarus#Up_to_date_source_repository_using_SVN
and
http://wiki.lazarus.freepascal.org/Installing_Lazarus#Downloading_Lazarus_Source_Code


Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

 

TinyPortal © 2005-2018