problem odbc

problem odbc

Postby damianodec » Thu Feb 14, 2013 9:19 am

good morning,
In my app I use todbc(),
it worked fine until yesterday, but today get this error:

===========
Path and name: C:\Saplink\saplnk.exe (32 bits)
Size: 2,353,152 bytes
Compiler version: xHarbour build 1.2.1 Intl. (SimpLex) (Rev. 9421)
FiveWin Version: FWHX 11.12
Windows version: 5.1, Build 2600 Service Pack 3

Time from start: 0 hours 0 mins 15 secs
Error occurred at: 14-02-2013, 10:11:45
Error description: Error DBCMD/1010 Illegal characters in alias: TEMP-1608431171

Stack Calls
===========
Called from: => DBUSEAREA( 0 )
Called from: .\source\classes\TDBODBCD.PRG => TDBODBCDIRECT:OPEN( 312 )
Called from: utile1.prg => UTILE1V1( 93 )
Called from: utile1.prg => UTILE1( 65 )
Called from: saplnk.prg => (b)BUILDMENU( 120 )
Called from: .\source\classes\MENU.PRG => TMENU:COMMAND( 461 )
Called from: .\source\classes\WINDOW.PRG => TWINDOW:COMMAND( 1033 )
Called from: => TWINDOW:HANDLEEVENT( 0 )
Called from: .\source\classes\WINDOW.PRG => _FWH( 3159 )
Called from: => WINRUN( 0 )
Called from: .\source\classes\WINDOW.PRG => TWINDOW:ACTIVATE( 980 )
Called from: saplnk.prg => MAIN( 74 )

this is the source
oOdbc := TOdbc():New( cDSN, cName, cPass )
If !oOdbc:lSuccess
oOdbc:ShowErrorList("ODBC session not successfully initialized, aborting...")
oOdbc:End()
return nil
Endif
oDbf := oOdbc:Query( "SELECT T0.field1 'CODICE', T0.field2 'DESCRI' FROM CLIENTI T0")
if oOdbc:IsError()
oOdbc:ShowErrorList()
oOdbc:aErrors := {}
l1 := .f.
endif
oDbf:Open() <--------- Line 93 in UTILE1V1
==============

can someone help me?
thanks
FiveWin for xHarbour 17.09 - Sep. 2017 - Embarcadero C++ 7.00 for Win32
FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)
Visual Studio 2019 - Pelles C V.8.00.60 (Win64)
User avatar
damianodec
 
Posts: 414
Joined: Wed Jun 06, 2007 2:58 pm
Location: Italia

Re: problem odbc

Postby damianodec » Thu Feb 14, 2013 12:17 pm

what happens?
if I put the tdbodbcd.prg source file in my directory and compile the tdbodbcd.obj file in my .exe then it's all ok!
why?
FiveWin for xHarbour 17.09 - Sep. 2017 - Embarcadero C++ 7.00 for Win32
FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)
Visual Studio 2019 - Pelles C V.8.00.60 (Win64)
User avatar
damianodec
 
Posts: 414
Joined: Wed Jun 06, 2007 2:58 pm
Location: Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 18 guests