Hello Antonio F, and other members.
It is going well with the adordd implementation of my application. (I am using now a smaller application than the normal application, but it should be similar for the normal application).
I got an error at this moment.
Part of the log of the error:
Application
===========
Admin.: -
ADS: LOCAL
Error ocurred at: 08-09-2015, 14:39:07
Error description: Error BASE/1132 Bound error: array access
Error id 1: -
Error id 2: -
Current opened dbf: BASIS - 1
Last menu action: <onbekend>
Args:
[ 1] = A (L=0)
[ 2] = N 1
Stack Calls
===========
Called from ADOPSEUDOSEEK(3749)
Called from ADOSEEKCLIFIND(3412)
Called from ADO_SEEK(3371)
Called from DBSEEK(0)
Called from DBFSEEK(1479)
Called from DBFSELECT(1465)
Called from ABASIS(2912)
Called from UBTEST(42)
System
======
CPU type: Intel(R) Pentium(R) CPU N3540 @ 2.16GHz 2166 Mhz
Hardware memory: 3500 megs
Compiler version: xHarbour 1.2.3 Intl. (SimpLex) (Build 20150213)
Windows version: 8
Our application works with ADS, I tried to remove the ads parts out of the application, and replace with adordd code. There were only very few places where I had to do that.
Here are some of the changes which looks like:
Code: Select all
IF(.F.)
// Check if Ads is used local or remote
lAdsLocal := IF( AppRegistry( 2,"ADS","" ) == "LOCAL",.T.,.F. )
nAdsType := IF( lAdsLocal,1,2 )
// Harbour database engine
rddRegister( "ADS",1 )
rddsetdefault( "ADS" )
AdsSetServerType( nAdsType ) // 1=Local, 2=Remote, 4=AIS
AdsSetFileType( 2 ) // 1=Ntx, 2=Cdx, 3=Adt
ELSE
//ADORDD
RddRegister("ADORDD",1)
RddSetDefault("ADORDD")
SET ADO FORCE LOCK OFF // Required!
SET ADO DEFAULT DATABASE TO "database" SERVER TO "localhost" ENGINE TO "MYSQL" USER TO "root" PASSWORD TO "password"
ENDIF
Code: Select all
//#define ADS_DRIVER "ADS"
#define ADS_DRIVER "ADORDD
Code: Select all
REM ADORDD files opnemen
echo %hbdir%\lib\adordd.lib + >> UBtest.bc
echo %hbdir%\lib\rdds.lib + >> UBtest.bc
echo %hbdir%\lib\usrrdd.lib + >> UBtest.bc
REM ADS files opnemen
rem echo %hbdir%\lib\rddads.lib + >> UBtest.bc
rem echo %acedir%\Ace32.lib + >> UBtest.bc
I hope you can help me with where I should find the solution. Do you think I should change something in my application or in adorrd.prg?
Kind regards,
Pieter