Unable to recompile _dcgetbx in Build 2.00.1392

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
jdsoft
Posts: 113
Joined: Thu Jan 28, 2010 1:13 pm
Location: Overberg
Contact:

Unable to recompile _dcgetbx in Build 2.00.1392

#1 Post by jdsoft »

Hello Roger,
xxp Compiler freezes when try to re-compile _dcgetbx.prg (Build 267) with the latest Xbase update.
This is also the case for previous versions of _dcgetbx.prg (Buiil 265 and 263)
No problem with the previous xpp build 2.00.1360
Regards,
Jack Duijf

User avatar
Tom
Posts: 1165
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: Unable to recompile _dcgetbx in Build 2.00.1392

#2 Post by Tom »

Hi, Jack.

This is caused by a known error in XPP: https://www.alaska-software.com/scripts ... PDRID=7394
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

User avatar
jdsoft
Posts: 113
Joined: Thu Jan 28, 2010 1:13 pm
Location: Overberg
Contact:

Re: Unable to recompile _dcgetbx in Build 2.00.1392

#3 Post by jdsoft »

Hello Tom,

Yep, i figured this out. The PDR tells what is wrong.
I am breaking up the code LOCAL in _dcgetbx.prg in smaler pieces, but xxp keeps on locking up.
Regards,
Jack Duijf

User avatar
jdsoft
Posts: 113
Joined: Thu Jan 28, 2010 1:13 pm
Location: Overberg
Contact:

Re: Unable to recompile _dcgetbx in Build 2.00.1392

#4 Post by jdsoft »

Hello,
I found the solution for this issue.

Code: Select all

FUNCTION DC_GetOptDefault( aGetOptions, lExpress )
STATIC aGetOptDefault := {}
LOCAL i
LOCAL aGetOptValid := ;
     { 'Untitled',                            /*  1 cGETOPT_NAME         */   ;
       '',                                    /*  2 cGETOPT_TITLE        */   ;
       24*20,                                 /*  3 nGETOPT_WNDHEIGHT    */   ;
....
LOCAL aOldOptions
should be

Code: Select all

FUNCTION DC_GetOptDefault( aGetOptions, lExpress )
STATIC aGetOptDefault := {}
LOCAL i
LOCAL aGetOptValid 
LOCAL aOldOptions
aGetOptValid := ;
     { 'Untitled',                            /*  1 cGETOPT_NAME         */   ;
       '',                                    /*  2 cGETOPT_TITLE        */   ;
       24*20,                                 /*  3 nGETOPT_WNDHEIGHT    */   ;
....
and

Code: Select all

 FUNCTION DC_GetListType( nType )

LOCAL nFound
LOCAL aTypes := { ;
 { 'GETLIST_STATIC'          , GETLIST_STATIC }, ;
 { 'GETLIST_GET'             , GETLIST_GET }, ;
 ...
should be

Code: Select all

FUNCTION DC_GetListType( nType )
LOCAL nFound
LOCAL aTypes 
aTypes := { ;
 { 'GETLIST_STATIC'          , GETLIST_STATIC }, ;
 { 'GETLIST_GET'             , GETLIST_GET }, ;
 ...
Regards,
Jack Duijf

Wolfgang Ciriack
Posts: 478
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

Re: Unable to recompile _dcgetbx in Build 2.00.1392

#5 Post by Wolfgang Ciriack »

I think it is in function DC_GetOptDefault, the array LOCAL aGetOptValid and perhaps in DC_GetListType() the array aTypes.
Change them and use AAdd() for build the array at runtime as a quick and dirty workaround (slower).
Or go back to version 1360, if you do not need the new functions of version 1392.
_______________________
Best Regards
Wolfgang

User avatar
rdonnay
Site Admin
Posts: 4722
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Unable to recompile _dcgetbx in Build 2.00.1392

#6 Post by rdonnay »

Jack -

Thanks for reporting that.

I will make the change in my code as a workaround.
The eXpress train is coming - and it has more cars.

User avatar
Tom
Posts: 1165
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: Unable to recompile _dcgetbx in Build 2.00.1392

#7 Post by Tom »

There is a workaround mentioned in the PDR: https://www.alaska-software.com/scripts ... PDRID=7394

The problem is caused by the preprocessor.
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

User avatar
Tom
Posts: 1165
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: Unable to recompile _dcgetbx in Build 2.00.1392

#8 Post by Tom »

Build 1400 is just released and fixes this problem.
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

Post Reply