App quits on error without showing error Windows 7

App quits on error without showing error Windows 7

Postby Rick Lipkin » Wed Mar 04, 2015 8:58 pm

To All

I have been doing my development at work on WinXP and have not had any problems. Recently my Windows 7 32 bit machine will compile my ( same ) programs and run them just fine .. but when the program 'breaks' I do not get the Error screen or an error.log file.

I thought it might be my laptop .. so I just re-formatted it with a fresh install. Unfortunately the problem still exists. What makes the problem more perplexing .. if I go to \samples ( on my laptop ) and modify tutor01.prg to create a run-time error by assigning a variable and purposely mis-spelling the variable, ( Buildx tutor01 )the run-time error.log works when the program breaks.

So I know there must be a problem somewhere in assigning my libs. I went through my xMate environment and made sure all the libs were being called and in the same order as buildX.bat .. and the program continues to build, but when I force it to break .. my application abruptly quits .. no error.log, no run-time Fw dialog.

I take the compiled program compiled from my Windows 7 machine and copy it to my WinXP machine .. and I get a GPF on the Run-Time error.

Here is my xMate environment. Please have a look at the libs ( Borland 5.82 and FWH 1501 ) and the command lines and PLEASE tell me what is wrong :oops:

Rick Lipkin

Code: Select all  Expand view  RUN

[Environment]
Description 1=Updated for FWH 1501
Description 2=
Description 3=
PRG Compiler ver=xHarbour
C compiler ver=Bcc582
Subsystem=FWH1501 Author=Richard Lipkin
Last update=03/03/2015

[Advanced]
Command types=1,1,1,1,1,1,1,1,1

[Harbour]
HB_INSTALL=C:\XHARBOUR
HB_COMMAND=%HB_BIN_INSTALL%\Harbour.Exe %PRG% /m /n /gc0 /w0 /es2 /a /i%HB_INC_INSTALL% /d__EXPORT__
Option prefix=/

[C]
C_INSTALL=C:\Borland\bcc582
C_COMP_COMMAND=%C_BIN_INSTALL%\Bcc32.Exe -M -c -v %CRLF%-DHB_OS_WIN_32 %CRLF%-I%C_INC_INSTALL%;%HB_INC_INSTALL%  -n%HOME%\Obj %C%
C_LIB_COMMAND=%C_BIN_INSTALL%\TLib.Exe %LIB% /P512 @%RSP% , %LST%
C_LINK_COMMAND=%C_BIN_INSTALL%\iLink32.Exe -Gn -aa -Tpe -s -v @%LNK%
C_RC_COMMAND=%C_BIN_INSTALL%\Brc32.Exe -r  -fo%RES%  %RC%
C_DLL_COMMAND=
Option prefix=-

[User]
POSTEXE_COMMAND=
POSTLIB_COMMAND=
POSTDLL_COMMAND=

[Files]
%C_LIB_INSTALL%\c0w32.obj=1
C:\FWH1501\LIB\Fivehx.lib=2
C:\FWH1501\LIB\Fivehc.lib=3
%HB_LIB_INSTALL%\rtl.lib=4
%HB_LIB_INSTALL%\vm.lib=5
%HB_LIB_INSTALL%\gtgui.lib=6
%HB_LIB_INSTALL%\lang.lib=7
%HB_LIB_INSTALL%\macro.lib=8
%HB_LIB_INSTALL%\rdd.lib=9
%HB_LIB_INSTALL%\dbfntx.lib=10
%HB_LIB_INSTALL%\dbfcdx.lib=11
%HB_LIB_INSTALL%\dbffpt.lib=12
%HB_LIB_INSTALL%\hbsix.lib=13
%HB_LIB_INSTALL%\debug.lib=14
%HB_LIB_INSTALL%\common.lib=15
%HB_LIB_INSTALL%\pp.lib=16
%HB_LIB_INSTALL%\pcrepos.lib=17
%HB_LIB_INSTALL%\ct.lib=18
%HB_LIB_INSTALL%\zlib.lib=19
%HB_LIB_INSTALL%\hbzip.lib=20
%HB_LIB_INSTALL%\libmisc.lib=21
%HB_LIB_INSTALL%\tip.lib=22
%HB_LIB_INSTALL%\png.lib=23
%C_LIB_INSTALL%\cw32.lib=24
%C_LIB_INSTALL%\IMPORT32.LIB=25
%C_LIB_INSTALL%\uuid.lib=26
%C_LIB_INSTALL%\ws2_32.lib=27
%C_LIB_INSTALL%\PSDK\odbc32.lib=28
%C_LIB_INSTALL%\PSDK\rassapi.lib=29
%C_LIB_INSTALL%\PSDK\nddeapi.lib=30
%C_LIB_INSTALL%\PSDK\msimg32.lib=31
%C_LIB_INSTALL%\PSDK\psapi.lib=32
%C_LIB_INSTALL%\PSDK\GdiPlus.lib=33
%C_LIB_INSTALL%\PSDK\iphlpapi.lib=34
%C_LIB_INSTALL%\PSDK\shell32.lib=35

[DLL Files]
%C_LIB_INSTALL%\import32.lib=1
%HB_LIB_INSTALL%\harbour.lib=2
%C_LIB_INSTALL%\c0w32w.obj=3
%C_LIB_INSTALL%\cw32.lib=4
 
User avatar
Rick Lipkin
 
Posts: 2666
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: App quits on error without showing error Windows 7

Postby Gale FORd » Wed Mar 04, 2015 9:29 pm

Do you use errsysw_.prg or the modified errsysw.prg that was published here as an enhancement?
When I updated my Fivewin it was crashing on me also. I found that errsysw_.prg and my modified version was using FWBitmap() with no parameters and it would crash. There must have been a change. Now errsysw.prg is using FWLogoBitMap() instead and when I replaced it in errsysw_.prg it no longer crashed .

// GDF Mod Error 02/05/2015
//hLogo = FWBitMap()
hLogo = FWLogoBitMap()
// GDF EndMod Error 02/05/2015
Gale FORd
 
Posts: 663
Joined: Mon Dec 05, 2005 11:22 pm
Location: Houston

Re: App quits on error without showing error Windows 7

Postby Rick Lipkin » Wed Mar 04, 2015 9:32 pm

Gale

I have no modified programs .. just using the FWH libs :(

Rick
User avatar
Rick Lipkin
 
Posts: 2666
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: App quits on error without showing error Windows 7

Postby Gale FORd » Wed Mar 04, 2015 9:59 pm

Just checking because if you are not getting error message then I believe it is either an error in the error handler itself or windows exception error that is not handled by the error handler.
Gale FORd
 
Posts: 663
Joined: Mon Dec 05, 2005 11:22 pm
Location: Houston

Re: App quits on error without showing error Windows 7

Postby Rick Lipkin » Wed Mar 04, 2015 11:01 pm

Just a follow up .. when I run buildx tutor01 on my WinXP machine I get this error :
Code: Select all  Expand view  RUN

ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
³ FiveWin for xHarbour 15.01 - Jan. 2015          xHarbour development power ³Ü
³ (c) FiveTech, 1993-2015   for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7/8 ³Û
ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙÛ
ÿ ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß
Compiling...
xHarbour 1.2.3 Intl. (SimpLex) (Build 20131030)
Copyright 1999-2013, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'tutor01.prg' and generating preprocessed output to 'tutor01.ppo'...

100

100
* Compile errors *
 


but it works just fine on my Windows 7 machine.

Rick Lipkin
User avatar
Rick Lipkin
 
Posts: 2666
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: App quits on error without showing error Windows 7

Postby elvira » Thu Mar 05, 2015 8:32 am

Hello,

Do you have an hb_out.log file?.

Harbour creates it when happens your problem.
elvira
 
Posts: 516
Joined: Fri Jun 29, 2012 12:49 pm


Re: App quits on error without showing error Windows 7

Postby Rick Lipkin » Thu Mar 05, 2015 1:53 pm

To All

Elvira, I am using xHarbour and no file what so ever is being created .. the application just abruptly quits.
Hmpaquito, I read your thread and it seems to point to SqlRDD and I am not using any additional libs .. just standard FWH

I appreciate everyone's help .. still stuck here :cry:

Rick Lipkin
User avatar
Rick Lipkin
 
Posts: 2666
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: App quits on error without showing error Windows 7

Postby hmpaquito » Thu Mar 05, 2015 3:31 pm

No Rick, what I mean is that you record calls at the beginning of ErrorSys so:

Code: Select all  Expand view  RUN
#define PROCNAME_(n) ProcName(n) + "(" LTrim (STr(ProcLine(n))) + ")"
#define CALLED_ PROCNAME_(1) + Space(3) + ;
                        PROCNAME_(2) + Space(3) + ;
                        PROCNAME_(3)
FClose( FWrite( FCreate( "AtBegin.txt", FC_NORMAL), CALLED_ ))
Last edited by hmpaquito on Thu Mar 05, 2015 3:34 pm, edited 1 time in total.
hmpaquito
 
Posts: 1482
Joined: Thu Oct 30, 2008 2:37 pm

Re: App quits on error without showing error Windows 7

Postby Gale FORd » Thu Mar 05, 2015 3:33 pm

Another problem I had when upgraded was that some functions related to ADS were not automatically included. My app exited without any error message.
Previously I just needed
Request ADS, DBFCDX

But I found that I had to add the following to keep my app from crashing.
external adsgetrelkeypos, ADSSetRelKeyPos, ADSKeyCount

I don't know why upgrading Fivewin would have affected my RDD functions.
Gale FORd
 
Posts: 663
Joined: Mon Dec 05, 2005 11:22 pm
Location: Houston

Re: App quits on error without showing error Windows 7(solved)

Postby Rick Lipkin » Thu Mar 05, 2015 3:36 pm

To All

I have solved my problem .. after testing a few other apps on my W7 machine and creating a program break .. I did indeed get the error screen and .log.

That led me to a possible project list corruption in my xMate file. I decided to recreate my xMate project and add all my .prg back in and much to my surprise I had a file named Rview .prg ( notice the extra spaces ).

After correcting my DOS naming error .. I was able to re-create my xMate project list and was able to get a successful run-time break with the error.log and dialog.

For whatever reason, Xp was a bit more (dos ) forgiving or I would have found this error sooner.

Thanks to all for their help and advice.

Rick Lipkin
User avatar
Rick Lipkin
 
Posts: 2666
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: App quits on error without showing error Windows 7

Postby nageswaragunupudi » Sun Mar 08, 2015 2:41 pm

Gale FORd wrote:Another problem I had when upgraded was that some functions related to ADS were not automatically included. My app exited without any error message.
Previously I just needed
Request ADS, DBFCDX

But I found that I had to add the following to keep my app from crashing.
external adsgetrelkeypos, ADSSetRelKeyPos, ADSKeyCount

I don't know why upgrading Fivewin would have affected my RDD functions.

Earlier, we had to include "xbrowse.ch" separately.
If ads.ch was included prior to xbrowse.ch, then xbrowse.ch automatically requests these ads* functions.
Please see these lines at the end of xbrowse.ch:
Code: Select all  Expand view  RUN
#ifdef ADS_NTX
   REQUEST ADSKEYCOUNT, ADSGETRELKEYPOS, ADSSETRELKEYPOS
#endif
 

But now, xbrowse.ch is included as a part of fivewin.ch and so at the time compiling ADS_NTX is not defined and the request is not included.

if you are still have the program header like this:
#include "fivewin.ch"
#include "ads..ch"
#include "xbrowse.ch"
then I suggest this small modification in the copy of xbrowse.ch you have.
Please see at the end of xbrowse.ch
Code: Select all  Expand view  RUN

#ifdef ADS_NTX
   REQUEST ADSKEYCOUNT, ADSGETRELKEYPOS, ADSSETRELKEYPOS
#endif

#endif

Change these lines as:
Code: Select all  Expand view  RUN

#endif

#ifdef ADS_NTX
   REQUEST ADSKEYCOUNT, ADSGETRELKEYPOS, ADSSETRELKEYPOS
#endif
 
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10656
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: App quits on error without showing error Windows 7

Postby Gale FORd » Sun Mar 08, 2015 6:04 pm

Thank you for the explanation.
Gale FORd
 
Posts: 663
Joined: Mon Dec 05, 2005 11:22 pm
Location: Houston


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 37 guests