Recent

Author Topic: Zeoslib 6.5.1 error in the Lazarus 0.9.11 beta  (Read 13897 times)

silviogs

  • New Member
  • *
  • Posts: 48
Zeoslib 6.5.1 error in the Lazarus 0.9.11 beta
« on: January 13, 2006, 01:12:24 pm »
Hello friends  
 
are there months when it was thrown the version 0.9.11 of Lazarus that the zeoslib doesn't work plus, might oque have happened then?  
 
this is the mistake:  
---------------------------  
Error    ---------------------------    Runtime error 210 at $00402641          $00402641  FPC_CHECK_OBJECT,  line 468 of C:/lazarus/source/fpc/2.0/rtl/inc/generic.inc          $00860392  ZVARIANT_init,  line 1486 of C:/lazarus/components/zeosdbo_rework/src/core/ZVariant.pas          $0040DD6D  fpc_initializeunits,  line 603 of C:/lazarus/source/fpc/2.0/rtl/inc/system.inc          $0040103E  main,  line 66 of lazarus.pp  
 
how can I solve this?  :(  
 
thank you very much  

Silvio Guedes

Anonymous

  • Guest
RE: Zeoslib 6.5.1 error in the Lazarus 0.9.11 beta
« Reply #1 on: January 14, 2006, 01:10:32 am »
That´s happen while you try to instal?

Anonymous

  • Guest
RE: Zeoslib 6.5.1 error in the Lazarus 0.9.11 beta
« Reply #2 on: January 14, 2006, 03:20:38 pm »
It's a RangeCheck Error in FPC/Lazarus

You have to Change from {$R+} to {$R-} in Zeos.inc, then Lazarus should compile and start without a problem.

silviogs

  • New Member
  • *
  • Posts: 48
Zeoslib 6.5.1 error in the Lazarus 0.9.11 beta
« Reply #3 on: January 16, 2006, 01:30:46 pm »
Hello friends

I made the alteration in the file Zeos.inc.

{$IFDEF BINARY_RELEASE}

// Settings for Release mode
{$C-}
{$I-}
{$R-}
{$L-}
{$Q-}
{$IFNDEF FPC}
{$O+}
{$W-}
{$ENDIF}

{$ELSE}

// Settings for Debug mode
{$C+}
{$I+}
{$R-} // {$R+} would it be in this point?
{$L+}
{$Q+}
{$IFNDEF FPC}
{$O-}
{$W+}
{$ENDIF}

{$ENDIF}

even so it didn't work, it continued presenting the same problem.

thank you very much

Anonymous

  • Guest
Zeoslib 6.5.1 error in the Lazarus 0.9.11 beta
« Reply #4 on: January 16, 2006, 08:49:41 pm »
You have to recompile the hole Lazarus source, then my lazarus installation run's perfect (fpc2.1.1 and current lazarus und current zeosdbo_rework)

Anonymous

  • Guest
Zeoslib 6.5.1 error in the Lazarus 0.9.11 beta
« Reply #5 on: January 17, 2006, 06:36:21 pm »
Hello friends

I am using the lazarus win32 and the zeosdbo_rework download from the cvs. How should I proceed now?

thank you very much

Silvio Guedes

silviogs

  • New Member
  • *
  • Posts: 48
Zeoslib 6.5.1 error in the Lazarus 0.9.11 beta
« Reply #6 on: January 19, 2006, 07:25:35 pm »
Hello friends

I would like to share with the friends the solution of the zeosdbo_rework with the lazarus 0.9.11:  
 
in a previous answer a friend of the forum asked that in the zeos.inc changed $R+ for $R -, in spite of not having worked and many attempts decided to change all the + for - in the following options and the result was surprisingly, the zeosdbo_rework worked in the lazarus 0.9.11  
 
see the change:

// Settings for Debug mode
{$C+}  change
{$I+} change
{$R-} // {$R+} would it be in this point?
{$L+} change
{$Q+} change
{$IFNDEF FPC}
{$O-}
{$W+}
{$ENDIF}

thank you very much to all that helped me

Respectfully

Silvio Guedes
analyst/programmer of systems  
Brazil

Alberto

  • Guest
Zeoslib 6.5.1 error in the Lazarus 0.9.11 beta
« Reply #7 on: February 27, 2006, 01:13:20 pm »
Hi dear, i've the same problem with Lazarus 0.9.12, i tried to change zeos.inc like yuo said, i reinstall zeos component but the result is the same:

Runtime error 210 at $008464D9

  $008464D9  FPC_CHECK_OBJECT,  line 468 of C:/lazarus/source/fpc/fpcbuild-2.0.2/fpcsrc/rtl/inc/generic.inc

  $006F4C76  ZVARIANT_init,  line 1486 of C:/lazarus/fpcsrc/packages/extra/Zeos/src/core/ZVariant.pas

  $008449DD  fpc_initializeunits,  line 593 of C:/lazarus/source/fpc/fpcbuild-2.0.2/fpcsrc/rtl/inc/system.inc

  $0040103E  main,  line 73 of lazarus.pp

Any help? :cry: :cry:

silviogs

  • New Member
  • *
  • Posts: 48
Zeoslib 6.5.1 error in the Lazarus 0.9.11 beta
« Reply #8 on: February 28, 2006, 02:03:01 am »
Hello friend  
 
I solved this problem changing the options that had + for the - in the zeos.inc.  
 
here it is the complete file:

// Compilation directives for Lazarus
{$IFDEF FPC}
{$DEFINE VER130BELOW}
{$DEFINE VER140BELOW}
{$ENDIF}

// Compilation directives for Delphi 5
{$IFDEF VER130}
{$DEFINE VER130BELOW}
{$DEFINE VER140BELOW}
{$ENDIF}

{$IFDEF VER140}
{$DEFINE VER140BELOW}
{$ENDIF}

{$IFDEF FREEBSD}
  {$DEFINE UNIX}
{$ENDIF}

{$IFDEF LINUX}
  {$DEFINE UNIX}
{$ENDIF}

// Debug/release compiler options
{$D+}

{$IFOPT D-}
{$DEFINE BINARY_RELEASE}
{$ENDIF}

{$IFDEF BINARY_RELEASE}

// Settings for Release mode
{$C-}  
{$I-}    
{$R-}  
{$L-}  
{$Q-}  
{$IFNDEF FPC}
{$O+}
{$W-}
{$ENDIF}

{$ELSE}

// Settings for Debug mode
{$C-}   altered line
{$I-}    altered line
{$R-}   altered line
{$L-}    altered line
{$Q-}   altered line
{$IFNDEF FPC}
{$O-}
{$W+}
{$ENDIF}

{$ENDIF}

// Disables checking code.
// Use Range checking option to turn on/off optimization
{$IFOPT R-}
{$DEFINE DISABLE_CHECKING}
{$ENDIF}


// Enables MySQL support in TZConnection/TZDataset
{$DEFINE ENABLE_MYSQL}

// Enables PostgreSQL support in TZConnection/TZDataset
{$DEFINE ENABLE_POSTGRESQL}

// Enables Sybase/MSSQL support in TZConnection/TZDataset
{$DEFINE ENABLE_DBLIB}

// Enables ADO support in TZConnection/TZDataset
{$IFNDEF FPC}
{$DEFINE ENABLE_ADO}
{$ENDIF}

// Enables Interbase/Firebird support in TZConnection/TZDataset
{$DEFINE ENABLE_INTERBASE}

// Enables SQLite support in TZConnection/TZDataset
{$DEFINE ENABLE_SQLITE}

// Enables Oracle support in TZConnection/TZDataset
{$DEFINE ENABLE_ORACLE}

// Enables ASA support in TZConnection/TZDataset
{$DEFINE ENABLE_ASA}

// Supported language. Now available languages:
// ENGLISH, GERMAN, PORTUGUESE, DUTCH, SPANISH
{$DEFINE PORTUGUESE}

// Prevents loading default libmysql.dll
{$DEFINE MYSQL_STRICT_DLL_LOADING}

// Prevents loading default libpq.dll
{$DEFINE POSTGRESQL_STRICT_DLL_LOADING}

//Allows to see SQL exceptions as strings
{$DEFINE INTERBASE_EXTENDED_MESSAGES}

// Loads libcrypt.so before Firebird client library.
// It fixes error "Undefined symbol: crypt".
{$DEFINE INTERBASE_CRYPT}

// Excludes old ZeosDBO from the performance tests
{$DEFINE EXCLUDE_OLD_ZEOS_TEST}

// Excludes DBExpress from the performance tests
{$DEFINE EXCLUDE_DBX_TEST}

// Excludes IBX from the performance tests
{$DEFINE EXCLUDE_IBX_TEST}

// Excludes BDE from the performance tests
{$DEFINE EXCLUDE_BDE_TEST}

// Registers property editors for the components.
{$DEFINE WITH_PROPERTY_EDITOR}

// Turn on IProviderSupport interface
{$IFNDEF FPC}
{$DEFINE WITH_IPROVIDER}
{$ENDIF}

// Turn on multithreading
{$DEFINE MULTI_THREADED}

// In Version 6.1.5 there are several bugs with the TZSQLMetadata-Component
// For Version 6.5.0 you should uncomment the following line
{$DEFINE USE_METADATA}

// A large database may have many tables, colums and/or procedures!!!
// Therefore there is the ability to show a warning
// before retrieving a list of these database objects
// {$DEFINE SHOW_WARNING}

// Use libfbclient.so under linux
// and not libfbembed.so when Firebird 1.5.2 is used under linux
{$DEFINE USELIBFBCLIENTSO}

// Use SynEdit for the SQL Editors.
// Uncomment it when you will use SynEdit instead of a MemoEdit.
// The SynEdit component must be installed on your system.
// You can get SynEdit at http://synedit.sourceforge.net/
//{$DEFINE USE_SYNEDIT}

// Compile test applications with a graphical user interface (GUI)
// Comment this definition if you want to compile console test applications
//{$DEFINE TESTGUI}

perhaps it can solve yours  
 
respectfully

Silvio Guedes

Alberto

  • Guest
Zeoslib 6.5.1 error in the Lazarus 0.9.11 beta
« Reply #9 on: February 28, 2006, 05:05:32 pm »
So thank my friend,
i changed the right file but not in the true point. I changed the definition setting in Release mode and not in Debug mode  :oops:
Realy realy sorry.
Now zeos components are working and i'm going to test them.
Thank you again and sorry.

barko

  • New Member
  • *
  • Posts: 45
Zeoslib 6.5.1 error in the Lazarus 0.9.11 beta
« Reply #10 on: February 28, 2006, 09:27:50 pm »
Alberto,
which version of fpc you are using? (fpc -i)

Alberto

  • Guest
Zeoslib 6.5.1 error in the Lazarus 0.9.11 beta
« Reply #11 on: March 02, 2006, 10:21:09 am »
I'm working with Lazarus 0.9.12, Zeos6.5.1 and fpc-2.0.2a

Good work to everyone.

Anonymous

  • Guest
Zeoslib 6.5.1 error in the Lazarus 0.9.11 beta
« Reply #12 on: March 02, 2006, 12:44:49 pm »
Hi

I would like to inform to whole that I am already using the lazarus 0.9.12, I learned that should always use the version equal and not odd, because the odd versions are of tests.  
 
Respectfully

Silvio Guedes :D

 

TinyPortal © 2005-2018