FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Error System Stopped Working
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Error System Stopped Working
Posted: Thu Jan 12, 2012 06:18 PM

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

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
Posts: 990
Joined: Thu Nov 17, 2005 05:49 PM
Re: Error System Stopped Working
Posted: Thu Jan 12, 2012 08:24 PM

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.

Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Error System Stopped Working
Posted: Thu Jan 12, 2012 08:47 PM

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

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
Posts: 363
Joined: Wed Feb 15, 2006 02:06 PM
Re: Error System Stopped Working
Posted: Fri Jan 13, 2012 11:41 AM

Tim,

Check errsysw.prg and remove the line that reports nExtMem()

Not sure if there is a work around for this yet.

Regards,

Pete

Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Error System Stopped Working
Posted: Sat Jan 14, 2012 12:49 AM

Thank you. That worked.

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
Posts: 392
Joined: Tue Mar 10, 2009 11:54 AM
Re: Error System Stopped Working
Posted: Sat Feb 04, 2012 02:22 PM

Antonio,

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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Error System Stopped Working
Posted: Sat Feb 04, 2012 06:22 PM

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... :-(

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Error System Stopped Working
Posted: Sat Feb 04, 2012 06:28 PM
My mistake. This is the right code and we missed to include it in FWH 12.01:

Code (fw): Select all Collapse
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 :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 392
Joined: Tue Mar 10, 2009 11:54 AM
Re: Error System Stopped Working
Posted: Sun Feb 05, 2012 12:55 AM
Antonio,

oh, complete new error handler :-):

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
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Error System Stopped Working
Posted: Mon Feb 06, 2012 07:45 PM

Antonio,

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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Error System Stopped Working
Posted: Mon Feb 06, 2012 07:50 PM

Tim,

That function source code is inside FWH\source\winapi\mem.c

Anyhow, it will be changed in FWH 12.02

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Error System Stopped Working
Posted: Mon Feb 06, 2012 07:59 PM

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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Error System Stopped Working
Posted: Mon Feb 06, 2012 10:26 PM

Tim,

Yes, you could compile it and link it as another OBJ of your app

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 284
Joined: Mon Oct 24, 2005 08:04 PM
Re: Error System Stopped Working
Posted: Wed Jan 30, 2013 11:30 AM

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

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Error System Stopped Working
Posted: Wed Jan 30, 2013 03:12 PM
Randal,

Please build this app and let me know if it keeps GPFing, thanks

randal.prg
Code (fw): Select all Collapse
#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
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion