[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

2287.0. "Crash after marking a character" by FRSTSC::ERLEMANN (Bedman strikes back) Fri Feb 16 1990 09:51

Hi,

a customer of mine has problems with programming DECwindows in C/UIL.
He has these problems in an individual programmed application, but
he can explain his problems in conjunction with the DECburger program
in DECW$EXAMPLES.

I'll translate his problem-description as follows:

*"At the beginning of a 'simple text widget' there's a 13-places/digits long
* string. If I mark the 6th character reverse video through MB1 and after
* this let the program run through a  'DwtSTextReplace' statement, which
* accesses the 'simple text' widget, the program crashes with an error:
* 'OPCODE reserved by DIGITAL'.
*
* Program technical explanation:
* You create a 'simple_text' widget. You can also use the 'simple_text'
* widget ("fries_quantity") from the DECburger example. Therefore you
* have to enlarge it and predefine it with the 13-digits string. These
* parameters are defined in the argument section of the "fries_quantity"
* object in DECBURGER.UIL. Now you have to code the "DwtSTextReplace"
* statement in DECBURGER.C, which causes the crash of the program. This
* statement simply replaces the whole 13-digit string in the "fries_-
* quantity" widget with the NUL-character.
*
* DwtSTextReplace(widget_array[w_fries_quantity],0,13,"");
*
* I have implemented this statement in the "list_proc" routine from
* DECBURGER.C to create a controllable run of the statement. (Crash after
* marking the 6th character in the "fries_quantity" widget and afterwards
* selection of a drink in the "drink_list_box")
*
* Furtheras I have not undertaken any systematical tests. (e.g. changes
* of the stringlength or marking of other/multiple characters"


The system crashes with the following messages:

%SYSTEM-F-OPCDEC, opcode reserved to DIGITAL fault at PC=0008CA02, PSL=03C00000
%TRACE-F-TRACEBACK, symbolic stack dump follows
module name     routine name                     line       rel PC    abs PC

                                                           0008CA02  0008CA02
                                                           000FBF66  000FBF66
                                                           000FD17A  000FD17A
                                                           000FB86F  000FB86F
                                                           000ECF0D  000ECF0D
DECBURGER       list_proc                        8236      00000033  00000EA7
                                                           000FAEF1  000FAEF1
                                                           000FAF99  000FAF99
                                                           000DDD29  000DDD29
                                                           000DE02F  000DE02F
                                                           000FAEF1  000FAEF1
                                                           000FAF99  000FAF99
                                                           000E13F6  000E13F6
                                                           000FAEF1  000FAEF1
                                                           000FAF99  000FAF99
                                                           000DB7DF  000DB7DF
                                                           000DBB20  000DBB20
                                                           0010C4E2  0010C4E2
                                                           0010EB13  0010EB13
                                                           0010EDC2  0010EDC2
                                                           0010EDF8  0010EDF8
                                                           0010F0D7  0010F0D7
                                                           0010F0B8  0010F0B8
DECBURGER       main                             7860      000000C6  000008C6


Just in this moment the customer phoned me again an explained me a more
comfortable way to see his effects.
He's of the opinion that this behavior occurs every time when the NOTEPAD-
Editor is involved in the story.

You can see it with the following steps:

***CAUTION*** you have to start DECwindows again after this.

1. Log out from DECwindows
2. Type in a string in the username-field
3. Mark one character of the string reverse video with the mouse
4. Type <CTRL/U> and see what happens.



Thanx for your attention
		<>Armin<>
T.RTitleUserPersonal
Name
DateLines