Error System Stopped Working
- TimStone
- Posts: 2955
- Joined: Fri Oct 07, 2005 1:45 pm
- Location: Trabuco Canyon, CA USA
- Has thanked: 25 times
- Been thanked: 2 times
- Contact:
Error System Stopped Working
I've recently encountered this problem with my application, and it puzzles me.
Now, when a runtime error occurs, the Windows error tells me that a problem has occured and the program has stopped working.
These should be generating FW / xHarbour errors.
I'm using the same xHarbour ( .com ) / xBuilder that I have for the past year, and FW 11.09.
Can anyone suggest where I should look to see why my error system no longer works ?
Tim
Now, when a runtime error occurs, the Windows error tells me that a problem has occured and the program has stopped working.
These should be generating FW / xHarbour errors.
I'm using the same xHarbour ( .com ) / xBuilder that I have for the past year, and FW 11.09.
Can anyone suggest where I should look to see why my error system no longer works ?
Tim
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
- reinaldocrespo
- Posts: 979
- Joined: Thu Nov 17, 2005 5:49 pm
- Location: Fort Lauderdale, FL
Re: Error System Stopped Working
Hi Tim;
Could it be that what you are getting is a gpf?
A way to test is to manually introduce semantics error such as;
MsgInfo( nonexitant->field1 ) //where that work area is not in use.
or
local cText := "some text"
if cText
endif
That should compile fine yet it would cause the fw error handler to popup.
Reinaldo.
Could it be that what you are getting is a gpf?
A way to test is to manually introduce semantics error such as;
MsgInfo( nonexitant->field1 ) //where that work area is not in use.
or
local cText := "some text"
if cText
endif
That should compile fine yet it would cause the fw error handler to popup.
Reinaldo.
- TimStone
- Posts: 2955
- Joined: Fri Oct 07, 2005 1:45 pm
- Location: Trabuco Canyon, CA USA
- Has thanked: 25 times
- Been thanked: 2 times
- Contact:
Re: Error System Stopped Working
The following:
cText := "Trash"
IF cText > 09
MsgInfo( "Dump" )
ENDIF
Posts a Win 7 error, not a FWH error.
This has been consistent for the past few weeks ...
Tim
cText := "Trash"
IF cText > 09
MsgInfo( "Dump" )
ENDIF
Posts a Win 7 error, not a FWH error.
This has been consistent for the past few weeks ...
Tim
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
-
- Posts: 363
- Joined: Wed Feb 15, 2006 2:06 pm
- Location: Oxford, England
Re: Error System Stopped Working
Tim,
Check errsysw.prg and remove the line that reports nExtMem()
Not sure if there is a work around for this yet.
Regards,
Pete
Check errsysw.prg and remove the line that reports nExtMem()
Not sure if there is a work around for this yet.
Regards,
Pete
- TimStone
- Posts: 2955
- Joined: Fri Oct 07, 2005 1:45 pm
- Location: Trabuco Canyon, CA USA
- Has thanked: 25 times
- Been thanked: 2 times
- Contact:
Re: Error System Stopped Working
Thank you. That worked.
Tim
Tim
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Re: Error System Stopped Working
Antonio,
not fixed in FWH 1201!
not fixed in FWH 1201!
Windows 11 Pro 22H2 22621.1848
Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
Harbour 3.2.0dev (r2008190002)
FWH 23.10 x86
Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
Harbour 3.2.0dev (r2008190002)
FWH 23.10 x86
- Antonio Linares
- Site Admin
- Posts: 42516
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 31 times
- Been thanked: 75 times
- Contact:
Re: Error System Stopped Working
viewtopic.php?p=119572#p119572
was changed to:
viewtopic.php?p=119574#p119574
We are just calling a Windows API function. Strange that it fails...![Sad :-(](./images/smilies/icon_sad.gif)
was changed to:
viewtopic.php?p=119574#p119574
We are just calling a Windows API function. Strange that it fails...
![Sad :-(](./images/smilies/icon_sad.gif)
- Antonio Linares
- Site Admin
- Posts: 42516
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 31 times
- Been thanked: 75 times
- Contact:
Re: Error System Stopped Working
My mistake. This is the right code and we missed to include it in FWH 12.01:
Tim could you please check it this way in your code that was crashing ? thanks![Smile :-)](./images/smilies/icon_smile.gif)
Code: Select all | Expand
HB_FUNC( NEXTMEM ) // --> nHardwareMemory
{
MEMORYSTATUSEX mst;
memset( &mst, 0, sizeof( MEMORYSTATUSEX ) );
mst.dwLength = sizeof( MEMORYSTATUSEX );
GlobalMemoryStatusEx( &mst );
hb_retnll( mst.ullTotalPhys );
}
Tim could you please check it this way in your code that was crashing ? thanks
![Smile :-)](./images/smilies/icon_smile.gif)
Re: Error System Stopped Working
Antonio,
oh, complete new error handler
:
![Image](http://img833.imageshack.us/img833/6955/errsyswprg.jpg)
oh, complete new error handler
![Razz :P](./images/smilies/icon_razz.gif)
![Image](http://img833.imageshack.us/img833/6955/errsyswprg.jpg)
Windows 11 Pro 22H2 22621.1848
Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
Harbour 3.2.0dev (r2008190002)
FWH 23.10 x86
Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
Harbour 3.2.0dev (r2008190002)
FWH 23.10 x86
- TimStone
- Posts: 2955
- Joined: Fri Oct 07, 2005 1:45 pm
- Location: Trabuco Canyon, CA USA
- Has thanked: 25 times
- Been thanked: 2 times
- Contact:
Re: Error System Stopped Working
Antonio,
I commented out that section based on the previous post. I do not see that function in the error prg file.
Tim
I commented out that section based on the previous post. I do not see that function in the error prg file.
Tim
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
- Antonio Linares
- Site Admin
- Posts: 42516
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 31 times
- Been thanked: 75 times
- Contact:
Re: Error System Stopped Working
Tim,
That function source code is inside FWH\source\winapi\mem.c
Anyhow, it will be changed in FWH 12.02
That function source code is inside FWH\source\winapi\mem.c
Anyhow, it will be changed in FWH 12.02
- TimStone
- Posts: 2955
- Joined: Fri Oct 07, 2005 1:45 pm
- Location: Trabuco Canyon, CA USA
- Has thanked: 25 times
- Been thanked: 2 times
- Contact:
Re: Error System Stopped Working
I see there is an alternative errorsw_.prg in the source code. How would I specify that one for my program to use instead of the default, using the library. I realize I could link it in before the libraries ....
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
- Antonio Linares
- Site Admin
- Posts: 42516
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 31 times
- Been thanked: 75 times
- Contact:
Re: Error System Stopped Working
Tim,
Yes, you could compile it and link it as another OBJ of your app
Yes, you could compile it and link it as another OBJ of your app
Re: Error System Stopped Working
I just upgraded to latest xHarbour and FWH 12.12 and I'm have this same problem.
<<Check errsysw.prg and remove the line that reports nExtMem()>>
I did this and it fixed the problem however, I'm wondering why I need to do this or if I should be doing something else.
Thanks,
Randal
<<Check errsysw.prg and remove the line that reports nExtMem()>>
I did this and it fixed the problem however, I'm wondering why I need to do this or if I should be doing something else.
Thanks,
Randal
- Antonio Linares
- Site Admin
- Posts: 42516
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 31 times
- Been thanked: 75 times
- Contact:
Re: Error System Stopped Working
Randal,
Please build this app and let me know if it keeps GPFing, thanks
randal.prg
#pragma ENDDUMP
Please build this app and let me know if it keeps GPFing, thanks
randal.prg
Code: Select all | Expand
#include "FiveWin.ch"
function Main()
nExtMem()
MsgInfo( nExtMem() )
return nil
#pragma BEGINDUMP
#include <windows.h>
#include <hbapi.h>
HB_FUNC( NEXTMEM ) // --> nHardwareMemory
{
MEMORYSTATUSEX mst;
memset( &mst, 0, sizeof( MEMORYSTATUSEX ) );
mst.dwLength = sizeof( MEMORYSTATUSEX );
GlobalMemoryStatusEx( &mst );
hb_retnll( mst.ullTotalPhys );
}
#pragma ENDDUMP