Hi,
Mindaugas,
I was testing RDDSQL and error capture when I notice that my program ends
whith an unexpected "abnormal program termination" after an error of
duplicate alias.
Forcing other errors never get this message.
i.e:
test1.prg
function main()
dbUSEarea(.t.,, "test.dbf","test1",.t.)
dbUSEarea(.t.,, "test.dbf","test1",.t.)
RETURN
c:\test1.exe
Error DBCMD/1011 Alias already in use: test1
Called from DBUSEAREA(0)
Called from MAIN(3)
test2.prg
#include "hbrddsql.ch"
function main()
REQUEST SDDMY
RDDSETDEFAULT("SQLBASE")
IF RDDINFO(RDDI_CONNECT , {"MYSQL", "localhost", "user","pass", "table"}) ==
0
qout( "Unable connect to the server")
RETURN
ENDIF
DBUSEAREA( .T.,, "SELECT * FROM table", "test" )
DBUSEAREA( .T.,, "SELECT * FROM table", "test" )
RETURN
c:\test2.exe
Error DBCMD/1011 Alias already in use: test
Called from DBUSEAREA(0)
Called from MAIN(10)
abnormal program termination
Tested with mingw, Harbour 2.0.1dev (Rev. 13395) over windows XP SP3
Best Regards,
David MontaƱo
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour