Page 4 of 8

Re: FWH 16.03 32 BIT

PostPosted: Tue Apr 19, 2016 6:38 am
by Horizon
ok

Re: FWH 16.03 32 BIT

PostPosted: Tue Apr 19, 2016 7:01 am
by Horizon
sent

Re: FWH 16.03 32 BIT

PostPosted: Tue Apr 26, 2016 7:54 am
by Horizon
Hi,

I had another problem with this combination (Harbour, MSVC 2015 and fwh 16.03)

It freezes the application when any runtime error is occured.

I have found that nExtMem freze it.

Code: Select all  Expand view
function NEXTMEM()

return 0


solve the problem. It display the error description. But when I press the Quit button, application gives an error and app. is ended. (Even W10)

When i exit the application normal way (exit button or topright close button) There is not any error W10.

But in W7 there is still an error after exit.

any solution.

Re: FWH 16.03 32 BIT

PostPosted: Tue Apr 26, 2016 9:18 am
by Antonio Linares
Hakan,

You have to build and execute your app from the Visual Studio debugger. The debugger will stop where there is an error
giving you the oportunity to review the low level calls stack, etc.

Here you have a detailed guide to learn how to do it:
viewtopic.php?f=17&t=28723&start=0

Though the guide is for VS2013, it properly works for VSC2015. In fact I have updated it these days
as I have been using the VSC2015 debugger too

Re: FWH 16.03 32 BIT

PostPosted: Thu May 05, 2016 8:32 am
by Horizon
Hi Antonio,

I am very sorry to disturb you again.

I have built msvc 2015 and fwh 16.03 with mak file. But When I exit the program normally in w7, It gives an error. Even w10 (in my computer) it gives an error after fwh errorsysw. I think QUIT command in errorsysw.

in order to debug my application, I have done Visual Studio steps, but I could not build the exe.

I stuck in MSVC 2015 and fwh 16.03.

I could not give any new release to my customer after 16.03. I have not any error like these before msvc 2015. is it possible to run new fwh versions in msvc 2013.

Thanks,

Re: FWH 16.03 32 BIT

PostPosted: Thu May 05, 2016 6:38 pm
by TimStone
It is going to be in your settings in the IDE. Please look at the alternate thread I started to help with that process.

Also, be sure ALL of your libraries are built with MSVC 2015. The ones Antonio provides are, but your other libraries may have issues. Be sure you have the most current.

I only have one problem with my MSVS 2015 build and it is strange. I will find it ... I will .... but until then I use the IDE for testing, and the .bat/.mak build for distribution. Although the files are the same, the .bat/.mak executable does not have the problem. However, the IDE build is so much faster to use when making changes to my source code and testing.

BTW, that problem is this. Radio buttons and checkboxes, when clicked, are losing their associated text. That is it.

Tim

Re: FWH 16.03 32 BIT

PostPosted: Thu May 05, 2016 7:18 pm
by Antonio Linares
Hakan,

> I have done Visual Studio steps, but I could not build the exe

What errors do you get ?

Re: FWH 16.03 32 BIT

PostPosted: Fri May 06, 2016 6:45 am
by Horizon
Hi Antonio,

I have a few warnings but I have solved most of errors. There is only one error.

Code: Select all  Expand view
#pragma BEGINDUMP

#include <Windows.h>

extern "C" {                     // Line 2109
FILE * _iob[] = { stdin, stdout, stderr };

FILE * __iob_func( void )
{
return ( FILE * ) _iob;
}
}
#pragma ENDDUMP
 


error
Code: Select all  Expand view
Severity    Code    Description Project File    Line    Suppression State
Error   C2059   syntax error: 'string'  IcraW   C:\PrgW\Icra\MASTER.PRG 2109   
 


There is not any error compiling with other method. (.mak) (command line)

Thanks.

Re: FWH 16.03 32 BIT

PostPosted: Fri May 06, 2016 7:22 am
by Antonio Linares
Hakan,

What exact code do you have here ?

C:\PrgW\Icra\MASTER.PRG 2109

Re: FWH 16.03 32 BIT

PostPosted: Fri May 06, 2016 7:30 am
by Horizon
Antonio,

As you can see above.

Code: Select all  Expand view
extern "C" {

Re: FWH 16.03 32 BIT

PostPosted: Fri May 06, 2016 7:41 am
by Antonio Linares
Hakan,

Please try to remove

extern "C" {

and its }

Re: FWH 16.03 32 BIT

PostPosted: Fri May 06, 2016 8:01 am
by Horizon
Antonio,

Code: Select all  Expand view
FILE * _iob[] = { stdin, stdout, stderr };


Error
Code: Select all  Expand view
Severity    Code    Description Project File    Line    Suppression State
Error   C2099   initializer is not a constant   IcraW   C:\PrgW\Icra\MASTER.PRG 2110   

Re: FWH 16.03 32 BIT

PostPosted: Fri May 06, 2016 8:52 am
by Antonio Linares
Try it this way:

FILE * _iob[ 3 ];

_iob[ 0 ] = stdin;
_iob[ 1 ] = stdout;
_iob[ 2 ] = stderr;

Re: FWH 16.03 32 BIT

PostPosted: Fri May 06, 2016 9:00 am
by Horizon
Antonio,


Code: Select all  Expand view
#pragma BEGINDUMP

#include <Windows.h>

FILE * _iob[ 3 ];                    

_iob[ 0 ] = stdin;                // Line 2126
_iob[ 1 ] = stdout;
_iob[ 2 ] = stderr;

FILE * __iob_func( void )
{
return ( FILE * ) _iob;
}
#pragma ENDDUMP


Code: Select all  Expand view
Severity    Code    Description Project File    Line    Suppression State
Error   C2040   '_iob': 'int [0]' differs in levels of indirection from 'FILE *[3]' IcraW   C:\PrgW\Icra\MASTER.PRG 2126   
Error   C2369   '_iob': redefinition; different subscripts  IcraW   C:\PrgW\Icra\MASTER.PRG 2127   
Error   C2369   '_iob': redefinition; different subscripts  IcraW   C:\PrgW\Icra\MASTER.PRG 2128   
Error   C2466   cannot allocate an array of constant size 0 IcraW   C:\PrgW\Icra\MASTER.PRG 2126   
Error   C2099   initializer is not a constant   IcraW   C:\PrgW\Icra\MASTER.PRG 2126   
Error   C2099   initializer is not a constant   IcraW   C:\PrgW\Icra\MASTER.PRG 2127   
Error   C2099   initializer is not a constant   IcraW   C:\PrgW\Icra\MASTER.PRG 2128   
 

Re: FWH 16.03 32 BIT

PostPosted: Fri May 06, 2016 10:38 am
by Antonio Linares
Hakan,

Code: Select all  Expand view
#pragma BEGINDUMP

#include <Windows.h>

FILE * __iob_func( void )
{
   static FILE * _iob[ 3 ];                    
   
   _iob[ 0 ] = stdin;                
   _iob[ 1 ] = stdout;
   _iob[ 2 ] = stderr;

   return ( FILE * ) _iob;
}

#pragma ENDDUMP