Error System Stopped Working

Error System Stopped Working

Postby TimStone » Thu Jan 12, 2012 6: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
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: Error System Stopped Working

Postby reinaldocrespo » Thu Jan 12, 2012 8: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.
User avatar
reinaldocrespo
 
Posts: 979
Joined: Thu Nov 17, 2005 5:49 pm
Location: Fort Lauderdale, FL

Re: Error System Stopped Working

Postby TimStone » Thu Jan 12, 2012 8: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
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: Error System Stopped Working

Postby PeterHarmes » 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
PeterHarmes
 
Posts: 363
Joined: Wed Feb 15, 2006 2:06 pm
Location: Oxford, England

Re: Error System Stopped Working

Postby TimStone » 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
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: Error System Stopped Working

Postby frose » Sat Feb 04, 2012 2: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
User avatar
frose
 
Posts: 392
Joined: Tue Mar 10, 2009 11:54 am
Location: Germany, Rietberg

Re: Error System Stopped Working

Postby Antonio Linares » Sat Feb 04, 2012 6: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42103
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Error System Stopped Working

Postby Antonio Linares » Sat Feb 04, 2012 6:28 pm

My mistake. This is the right code and we missed to include it in FWH 12.01:

Code: Select all  Expand view  RUN
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
User avatar
Antonio Linares
Site Admin
 
Posts: 42103
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Error System Stopped Working

Postby frose » Sun Feb 05, 2012 12:55 am

Antonio,

oh, complete new error handler :P:

Image
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
User avatar
frose
 
Posts: 392
Joined: Tue Mar 10, 2009 11:54 am
Location: Germany, Rietberg

Re: Error System Stopped Working

Postby TimStone » Mon Feb 06, 2012 7: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
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: Error System Stopped Working

Postby Antonio Linares » Mon Feb 06, 2012 7: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42103
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Error System Stopped Working

Postby TimStone » Mon Feb 06, 2012 7: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
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: Error System Stopped Working

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42103
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Error System Stopped Working

Postby Randal » 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
Randal
 
Posts: 260
Joined: Mon Oct 24, 2005 8:04 pm

Re: Error System Stopped Working

Postby Antonio Linares » Wed Jan 30, 2013 3:12 pm

Randal,

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

randal.prg
Code: Select all  Expand view  RUN
#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
User avatar
Antonio Linares
Site Admin
 
Posts: 42103
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 93 guests