Page 1 of 1

ERROR DE MEMORIA EN VERSION 912

PostPosted: Fri Jan 15, 2010 8:46 pm
by jmansur
Estimados.

Instalamos la nueva version de FWH y Harbour.
Configuramos el UEstudio con las muevas LIBs. No tira errores de compilacion. Pero cuando corremos el EXE nos aparece Los siguientes ERRORES.
Cabe agregar que con la version 812 anda sin ningun problema.

La instruccion"0x00437918" hace referencia a la memoria en "0x00000000". La memoria no se puede "read"

ACEPTAR

La instruccion"0x00437918" hace referencia a la memoria en "0x00000000". La memoria no se puede "read"

ACEPTAR

Se ha producido la execepcion unknown software exception (0xc0000027) en la direccion 0x77e31b79.

ACEPTAR

Ya vengo cambiando clases, codigo fuente para ver donde arranca el problema pero no lo puedo econtrar.

Saben si con el .MAP que se genera al compilar, puedo con este error determinar en que rutina salta?

Desde ya. muchas graciassss

---------------------------------------------------------------------------------------------------------------------
Adjunto por si queiren controlar si hice algo mal el config del UEstudio.

# --------- Harbour y FWH configuration --------
# --- general --------------------------------------
# $P - project name
# $Pp - path to project directory
# $Pn - project name
# --- compile --------------------------------------
# $I - input full name
# $Ip - input path
# $In - input name
# $Ie - input extension
# $O - output file
# $Op - path to output file
# $On - output filename (without path)
# $Oe - output extension
# $R - release/debug setting for compiler
# --- build ----------------------------------------
# $T - target full name
# $Tp - target path
# $Tn - target name
# $O - output file
# $Op - path to output file
# $On - output filename (without path)
# $Oe - output extension
# $R - release/debug setting for linker

[Settings]
Target =
Category&01 = DEFAULT RUN CONFIGURATION
Working Directory =.
Command Line Arguments =

Category&02 = Harbour Options
Automatic Memvar Declaration = no|yes
Variables Are Assumed = no|yes
Generate Preprocessed Output = no|yes
Warning Level = 1|2|3|4|0
User Include Path =
User Defines =

Compiler Options =
Linker Options =

Excluded Files = Excludes

[SettingsInfo]
Target = Provides a space for you to specify an output file and location of the program that the linker creates.
Working Directory = Provides a space for you to specify the directory in which executing occurs. If you do not specify a directory, executing occurs in the directory where the executable is located.
Command Line Arguments = Provides a space for you to specify command-line arguments you want to pass to the program at startup.
Compiler Options = Provides a space for you to specify an additional compiler options.
User Defines = Shows the switches the tool will use to build. Use ';' as delimiter.
Linker Options = Provides a space for you to specify an additional linker options.
Excluded Files = This will exclude the file(s) included in this UE project group from the build.

[SettingsReps]
User Defines = @[;|-D%s]
Automatic Memvar Declaration = no=|yes=/a
Variables Are Assumed = no=|yes=/v
Generate Preprocessed Output = no=|yes=/p
User Include Path = ^^@[;|;%s]
User Include Path&1 = ^^@[;| /i%s]
Use Multi Thread Library = no|yes
Warning Level = @/w%s

[Variables]
FWH = L:
HPATH = M:
CPATH =Y:\
EPATH = J:

HPATHL = $(HPATH)\LIB
CPATHL = $(CPATH)\LIB
EPATHL = $(EPATH)\EVO32\EVOLIBS

HOPT = /n /gc0 /q $(Compiler Options) /i$(HPATH)\INCLUDE $(User Include Path&1) $(User Defines) $(Automatic Memvar Declaration) $(Variables Are Assumed) $(Generate Preprocessed Output) $(Warning Level)
COPT = -O2 -M -c -v -I$(HPATH)\INCLUDE -I$(FWH)\INCLUDE

LOPT = -Gn -aa -Tpe -s -v
LIBS1 = $(FWH)\LIB\FiveH.lib $(FWH)\LIB\FiveHC.lib
LIBS2 = $(HPATHL)\hbrtl.lib $(HPATHL)\hbvm.lib $(HPATHL)\gtgui.lib $(HPATHL)\hblang.lib $(HPATHL)\hbmacro.lib $(HPATHL)\hbrdd.lib $(HPATHL)\rddntx.lib $(HPATHL)\rddcdx.lib $(HPATHL)\rddfpt.lib $(HPATHL)\hbsix.lib $(HPATHL)\hbdebug.lib $(HPATHL)\hbcommon.lib $(HPATHL)\hbpp.lib $(HPATHL)\hbcpage.lib $(HPATHL)\hbwin.lib $(HPATHL)\hbcplr.lib
LIBS3 = $(CPATHL)\cw32.lib $(CPATHL)\import32.lib $(CPATHL)\psdk\odbc32.lib $(CPATHL)\psdk\msimg32.lib $(CPATHL)\psdk\nddeapi.lib $(CPATHL)\psdk\iphlpapi.lib $(CPATHL)\psdk\rasapi32.lib
LIBS4 = $(EPATHL)\FILEXLS.LIB
LIBS = $(LIBS1) $(LIBS2) $(LIBS3) $(LIBS4)

[Environment]
PATH = $(HPATH)\BIN;$(CPATH)\BIN;%PATH%
INCLUDE = $(HPATH)\INCLUDE;$(CPATH)\INCLUDE;$(FWH)\INCLUDE
LIB = $(HPATH)\LIB;$(CPATH)\LIB
BuildMode = %UESMode%

[General]
TargetExt = .EXE
ReleaseOut = Release
DebugOut = Debug
UseFullPaths = 1
UseDosNames = 1
Excludes = $(Excluded Files)
GenerateEDGroup=$(External Dependencies)
.CPP = .C

[MakeCommands]
run = Execute Application
makef = Show Makefile

[Execute Application]
Title = Execute $T
Cmd0 = $(Command Line Arguments)
Depends = $T
ShowWindow = 1
DisplayConsole = $(DCon)

[Show Makefile]
Title=Show makefile
Cmd0=uestudio makefile
ShowWindow=1
DisplayConsole=0

[InsertFiles]

[FileGroups]
FGO = .obj;
FGR = .res;
FGL = .lib;
FGD = .def;

[GroupFormats]
FGO = %s
FGR = %s
FGL = %s

[Build]
Out = $T
Depends = $FGO $FGR
DebugFlag =
ReleaseFlag =
Cmd0 = ilink32 $(LOPT) c0w32.obj $FGO, J:\EVO32\EVOSIS\gestion\$T,, $(LIBS),, $FGR


[.PRG]
Out = $In.c
DebugFlag = /b
ReleaseFlag = /l
Cmd0 = harbour $I $(HOPT) $R /o$O

IncFiles = 1
CaseSensitive = 0
IncDirs = .;$(INCLUDE);
IncKeyWords = #include;
Comments = /*.*/.//.eol.

[.C]
Out = $In.obj
Cmd0 = bcc32 $(COPT) -o$O $I


[.RC]
Out = $In.res
Cmd0 = brc32 -r -fo$O $I

IncFiles = 1
CaseSensitive = 0
IncDirs = .;$(INCLUDE);
IncKeyWords = #include;
Comments = /*.*/.//.eol.

Re: ERROR DE MEMORIA EN VERSION 912

PostPosted: Sat Jan 16, 2010 7:39 am
by Antonio Linares
Jorge,

El EXE llega a arrancar ó drectamente se genera el error sin llegar a ejecutarse nada ? gracias

Re: ERROR DE MEMORIA EN VERSION 912

PostPosted: Sat Jan 16, 2010 2:51 pm
by jmansur
Arranca con el error.
No llega ni a ejecutar el MsgInfo

Gracias Antonio

/*
*****************************************************************************
Archivo : INICIO.PRG Version 1.0.0
Fecha :
Autor : Ricardo
Nota : Inicializacion Sistema
*****************************************************************************
*/
#include "def.ch"
#include "box.ch"
#include "fileio.ch"
#include "setcurs.ch"
#include "inkey.ch"
// #include "dbfnsx.ch"
#include "fivewin.ch"

#ifdef __HARBOUR__
function Main()
#endif

PARAMETERS _ServerSpec, _ConfigParam
LOCAL ObjEmp, TecEmp, nLargo, nPosic, cDescrip, nPosic1, nPosic2
LOCAL nHandle, oFont, oFontMulti, oDlgEmp, nAlto, cTitle

PRIVATE DirEmpresa := "", aCampos:={}, cDir, lSalir := FALSE, cDirCon
PRIVATE Init32 := FALSE

MsgInfo("DEBUG")

SET HELPFILE TO ""

Re: ERROR DE MEMORIA EN VERSION 912

PostPosted: Sat Jan 16, 2010 3:34 pm
by Antonio Linares
Jorge,

Sitúate en FWH\samples y ejecuta: buildh.bat tutor02

debe construirte un EXE correctamente y funcionar sin problemas.

Por favor pruébalo para asegurarnos de que tienes todo correctamente instalado, gracias.

Re: ERROR DE MEMORIA EN VERSION 912

PostPosted: Sat Jan 16, 2010 3:36 pm
by jmansur
Buscnado en el post. vi que sugerias hacer eso para otros problemas. lo hice hace unos dias y anda perfectamente.
Es lo que me tiene perdido. estoy viendo de empezar a recortar el programa para ver cuando arranca.

Graciasss

Re: ERROR DE MEMORIA EN VERSION 912

PostPosted: Sat Jan 16, 2010 3:38 pm
by Antonio Linares
Jorge,

Si, es una estrategia a seguir. Cuando no hay información ninguna del error, intenta remover algunos módulos hasta que localices lo que pueda estar fallando.

Otra opción es construirlo con xHarbour. Con Harbour hemos detectado algunos problemas cuando algún PRG es excesivamente grande.

Re: ERROR DE MEMORIA EN VERSION 912

PostPosted: Sat Jan 16, 2010 3:46 pm
by jmansur
gracias antonio.

Tenemos PRGs grandess. lo pruebo y te aviso.

Un millon de gracias.

Re: ERROR DE MEMORIA EN VERSION 912

PostPosted: Sat Jan 16, 2010 6:36 pm
by Francisco Horta
Antonio,
que tan grandes los prgs ? (de cuantas lineas estamos hablando aproximadamente?) o de muhcos .prgs en el proyecto?
gracias
saludos
paco

Re: ERROR DE MEMORIA EN VERSION 912

PostPosted: Sun Jan 17, 2010 4:44 pm
by Antonio Linares
Francisco,

No es el número de PRGs sino de PRGs que son muy grandes y que usan mucho "pcode" que por alguna razón se puede llegar a corromper. Lo hemos visto recientemente con otro usuario en estos foros. Con xHarbour funcionaba bien y con Harbour se corrompía, pero como te digo, solo en PRGs muy grandes (mucho más de lo que mide FWH window.prg o xbrowse.prg)

Re: ERROR DE MEMORIA EN VERSION 912

PostPosted: Mon Jan 18, 2010 2:13 pm
by Francisco Horta
Gracias Antonio, siempre es bueno tener en consideracion esto para tomar precauciones, entendido.
saludos
paco

Re: ERROR DE MEMORIA EN VERSION 912

PostPosted: Tue Jan 19, 2010 9:31 pm
by jmansur
Antonio.

Te comento. Si puedo te preciso mas detalles. Ya me anda. El problema, en mi caso, no es el PRG grande, sino una FUNCION grande. Tenemos PRGs mas grandes aun pero anda.

Arrastramos una funcion de cerca 2000 lineas.

Le elimine todas las lineas y arranco. Voy a probar ed ir agregnadole lineas y ver cuando explota.

Por ahi eso te ayuda a encontrarle la vuelta.

Un abrazo grande y gracias por todo.