IDLDBDatabase and DIALOG_DBConnect() [message #52393] |
Fri, 02 February 2007 11:00 |
Andre Abrantes
Messages: 3 Registered: February 2007
|
Junior Member |
|
|
Dear all.
I'm using the IDL Dataminer to access a dBase File. When I
initiate the IDLdbDatabase and try to show the dialog_dbConnect()
occurs a segmentation fault in Linux.
I already test it in IDL 6.1/6.2/6.3, in Suse Linux, RedHat and
the problem persists.
I installed the ODBC drivers from "www.datadirect.com" and the
intallation test is ok.
I export the environment variables:
export ODBCINI=/opt/odbc32v52/odbc.ini
export LD_LIBRARY_PATH=/opt/odbc32v52/lib
In the IDL console, I type:
$env | grep ODBCINI
and the result is ok:
ODBCINI=/opt/odbc32v52/odbc.ini
In the IDL manual of DIALOG_DBCONNECT, have a note as follow:
"Due to Motif library inconsistencies, this dialog may fail on HP-
UX, IBM AIX, and SUN Solaris systems"
I'm using the default ODBC.ini file that cames with DataDirect
drivers, because I already test this file with samples.
When I try to used the follow commands, "segmentation fault !".
___________________________________
objDB = obj_new('idlDBDatabase')
blnStatus = dialog_dbconnect(objDB)
Segmentation Fault
user@linux:~>
___________________________________
When I try to Connect With Method Connect, works fine.
The follow ConnectionString is correct? In this case, I don't use
the DSN.
fullDbPath = "/home/user/dbase/test.dbf"
strConnectionString = "Driver=DataDirect 5.2 dBaseFile(*.dbf);DB=" +
fullDbPath + ";ULN=1;EC=LOWER;"
objDB = obj_new('IDLdbDatabase')
objDB->Connect, CONNECTION = strConnectionString
Can anyone help me.
Best Regards,
Andre Abrantes.
Relative Article : Learning to Use IDL Dataminer
http://www.ittvis.com/services/techtip.asp?ttid=3009
|
|
|