FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour ERROR DE MEMORIA EN VERSION 912
Posts: 23
Joined: Thu Jul 20, 2006 12:46 AM
ERROR DE MEMORIA EN VERSION 912
Posted: Fri Jan 15, 2010 08:46 PM
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.
Lic. Jorge R. Mansur
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: ERROR DE MEMORIA EN VERSION 912
Posted: Sat Jan 16, 2010 07:39 AM

Jorge,

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 23
Joined: Thu Jul 20, 2006 12:46 AM
Re: ERROR DE MEMORIA EN VERSION 912
Posted: Sat Jan 16, 2010 02:51 PM

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 ""

Lic. Jorge R. Mansur
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: ERROR DE MEMORIA EN VERSION 912
Posted: Sat Jan 16, 2010 03:34 PM

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.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 23
Joined: Thu Jul 20, 2006 12:46 AM
Re: ERROR DE MEMORIA EN VERSION 912
Posted: Sat Jan 16, 2010 03:36 PM

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

Lic. Jorge R. Mansur
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: ERROR DE MEMORIA EN VERSION 912
Posted: Sat Jan 16, 2010 03:38 PM

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.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 23
Joined: Thu Jul 20, 2006 12:46 AM
Re: ERROR DE MEMORIA EN VERSION 912
Posted: Sat Jan 16, 2010 03:46 PM

gracias antonio.

Tenemos PRGs grandess. lo pruebo y te aviso.

Un millon de gracias.

Lic. Jorge R. Mansur
Posts: 845
Joined: Sun Oct 09, 2005 05:36 PM
Re: ERROR DE MEMORIA EN VERSION 912
Posted: Sat Jan 16, 2010 06:36 PM

Antonio,
que tan grandes los prgs ? (de cuantas lineas estamos hablando aproximadamente?) o de muhcos .prgs en el proyecto?
gracias
saludos
paco

____________________

Paco
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: ERROR DE MEMORIA EN VERSION 912
Posted: Sun Jan 17, 2010 04:44 PM

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)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 845
Joined: Sun Oct 09, 2005 05:36 PM
Re: ERROR DE MEMORIA EN VERSION 912
Posted: Mon Jan 18, 2010 02:13 PM

Gracias Antonio, siempre es bueno tener en consideracion esto para tomar precauciones, entendido.
saludos
paco

____________________

Paco
Posts: 23
Joined: Thu Jul 20, 2006 12:46 AM
Re: ERROR DE MEMORIA EN VERSION 912
Posted: Tue Jan 19, 2010 09:31 PM
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.
Lic. Jorge R. Mansur

Continue the discussion