Kbase P112260: GPF when accessing NO-VALIDATE or NO-EMPTY-SPACE attribute of browse
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  1/5/2006 |
|
Status: Unverified
FACT(s) (Environment):
Progress 9.1x
OpenEdge 10.x
SYMPTOM(s):
Accessing either the NO-VALIDATE or NO-EMPTY-SPACE attributes of a browse, attached to a shared frame, crashes the Progress sessions.
This can be demonstrated by running the following code against the sports database:
(combination of crash1.p and crash2.p):
/*crash1.p*/
MESSAGE "crash1.p" VIEW-AS ALERT-BOX.
DEFINE QUERY brw-mnt FOR customer SCROLLING.
DEFINE BROWSE brw-mnt QUERY brw-mnt NO-LOCK
DISPLAY customer.name
WITH SEPARATORS SIZE 76 BY 7.92
BGCOLOR 15 FGCOLOR 0.
DEFINE NEW SHARED FRAME frm1
brw-mnt.
DEFINE VARIABLE mybrw AS WIDGET-HANDLE NO-UNDO.
mybrw = BROWSE brw-mnt:HANDLE.
MESSAGE mybrw:NO-VALIDATE.
MESSAGE mybrw:NO-EMPTY-SPACE.
RUN crash2.p.
/*crash2.p*/
MESSAGE "crash2.p" VIEW-AS ALERT-BOX.
DEFINE QUERY brw-mnt FOR customer SCROLLING.
DEFINE BROWSE brw-mnt QUERY brw-mnt NO-LOCK
DISPLAY customer.name
WITH SEPARATORS SIZE 76 BY 7.92
BGCOLOR 15 FGCOLOR 0.
DEFINE SHARED FRAME frm1
brw-mnt.
DEFINE VARIABLE mybrw AS WIDGET-HANDLE NO-UNDO.
mybrw = BROWSE brw-mnt:HANDLE.
/*MESSAGE mybrw:NO-VALIDATE .*/
MESSAGE mybrw:NO-EMPTY-SPACE .
CAUSE:
This is a known issue being investigated by development.
FIX:
As a workaround, also define the browse (and also the query) as shared:
/*crash1.p*/
...
DEFINE NEW SHARED BUFFER bCust FOR customer.
DEFINE NEW SHARED QUERY brw-mnt FOR bCust SCROLLING.
DEFINE NEW SHARED BROWSE brw-mnt QUERY brw-mnt NO-LOCK
DISPLAY bCust.name
WITH SEPARATORS SIZE 76 BY 7.92
BGCOLOR 15 FGCOLOR 0.
...
/*crash2.p*/
...
DEFINE SHARED BUFFER bCust FOR customer.
DEFINE SHARED QUERY brw-mnt FOR bCust SCROLLING.
DEFINE SHARED BROWSE brw-mnt QUERY brw-mnt NO-LOCK
DISPLAY bCust.name
WITH SEPARATORS SIZE 76 BY 7.92
BGCOLOR 15 FGCOLOR 0.
...