viewtopic.php?f=6&t=6815&start=255
Codigo para adoddr SET
- Code: Select all Expand view RUN
- -------------------------------------------------------
function Main()
local oErr
SET RESOURCES TO "OBRAS32.DLL"
INI oIni FILE ".\Obras32.ini"
GET IniPath SECTION "Archivos" ENTRY "Path" OF oIni
GET cRddDrv SECTION "Archivos" ENTRY "RddDrv" OF oIni
GET cCopias SECTION "Archivos" ENTRY "Copias" OF oIni
RddRegister("ADORDD",1)
RddSetDefault("ADORDD")
SET ADO TEMPORAY NAMES INDEX LIST TO {"TMP","TEMP"}
SET ADO DEFAULT RECNO FIELD TO "id"
Try
SET ADO DEFAULT DATABASE TO "empre01" SERVER TO "localhost" ENGINE TO "MYSQL" USER TO "obras" PASSWORD TO "angel"
MsgInfo( ADOVERSION() )
Catch oErr
Alert ("No puedo abrir MySql")
End
cEmpresa := "APUNTES"
SELE 0
Alert ("Antes de use")
USE (cEmpresa) alias "APUNTES"
SELE APUNTES
Alert ("Despues de use")
browse()
Alert ("Despues de browse")
//
-----------------------------------------------
Resultado de error.log
------------------------------------------------
Application
===========
Path and name: D:\OBRAS32\Obras32.exe (32 bits)
Size: 3,695,616 bytes
Compiler version: Harbour 3.2.0dev (r1601050904)
FiveWin Version: FWH 16.03
Windows version: 6.2, Build 9200
Time from start: 0 hours 0 mins 2 secs
Error occurred at: 04/19/16, 17:53:40
Error description: Warning /0
Stack Calls
===========
Called from: .\SOURCE\adordd.PRG => ADO_OPEN( 0 )
Called from: => DBUSEAREA( 0 )
Called from: .\SOURCE\Obras32.PRG => MAIN( 0 )
System
======
CPU type: AMD Turion(tm) 64 X2 Mobile Technology TL-60 2000 Mhz
Hardware memory: 3839 megs
Free System resources: 90 %
GDI resources: 90 %
User resources: 90 %
Windows total applications running: 6
1 ,
2 , C:\WINDOWS\SYSTEM32\shcore.dll
3 , C:\WINDOWS\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.10240.16384_none_3bccb
4 , D:\OBRAS32\Obras32.exe
5 DDE Server Window, C:\WINDOWS\SYSTEM32\OLE32.DLL
6 GDI+ Window, C:\WINDOWS\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.10240.16603_none_d15a3826af6dc
Variables in use
================
Procedure Type Value
==========================
ADO_OPEN
Param 1: O Class: ERROR
DBUSEAREA
Param 1: N 1
Param 2: A Len: 8
Local 1: A Len: 42
Local 2: U NIL
Local 3: A Len: 5
Local 4: U NIL
Local 5: N 0
Local 6: O Class: TOLEAUTO
Local 7: N 10
Local 8: N 11
MAIN
Param 1: L .F.
Param 2: U NIL
Param 3: C "APUNTES"
Param 4: C "APUNTES"
Param 5: U NIL
Param 6: L .F.
Linked RDDs
===========
DBF
DBFFPT
DBFBLOB
DBFNTX
ADORDD
DataBases in use
================
Classes in use:
===============
1 ERROR
2 HBCLASS
3 HBOBJECT
4 TINI
5 WIN_OLEAUTO
6 TOLEAUTO
7 TFONT
8 TWINDOW
9 TDIALOG
10 TBRUSH
11 TCONTROL
12 TICON
13 TMULTIGET
14 TBUTTON
15 TRECT
16 TREG32
Memory Analysis
===============
1810 Static variables
Dynamic memory consume:
Actual Value: 0 bytes
Highest Value: 0 bytes
--------------------------------------------
Pantallazos de la versión MsgInfo( ADOVERSION() ) y de la tabla en MySql con la estructura contenido etc...
-------------------------------------
aquí vemos la versión con la que se ha ejecutado y el error que da
aquí pongo la estructura de la tabla empre01.APUNTES y las librerías usadas en el prg y make