[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

2505.0. "DECBURGER error" by SKYLRK::JOLLEY (This space left intentionally blank) Thu Mar 22 1990 20:42

	The DECBURGER example doesn't work correctly under VMS 5.3 or 5.3-1.

	Select mustard, pickle, onion, and quantity 5
	click APPLY APPLY and the output is corrupted,
	Worse yet, on about the 12th APPLY, you get %SYSTEM-F-ACCVIO

	We have code based on DECBURGER example and or getting the same error.
	The XtSetValues call that follows XtSetArg is where the error occurs.

	Press return for the dump







$ run SYS$SYSROOT:[SYSHLP.EXAMPLES.decw]decburger
%SYSTEM-F-ACCVIO, access violation, reason mask=01, virtual address=287FFFFF, PC
=000F96F7, PSL=03C00000

  Improperly handled condition, image exit forced.

        Signal arguments              Stack contents

        Number = 00000005                00000000
        Name   = 0000000C                00000000
                 00000001                201C0000
                 287FFFFF                7FE26A10
                 000F96F7                7FE269F0
                 03C00000                000F7DBD
                                         00166350
                                         00169AE8
                                         0018A110
                                         00000001

        Register dump

        R0 = 00188F70  R1 = 7FE260E4  R2 = 287FFFFF  R3 = 00188F70
        R4 = 0018A110  R5 = 00000000  R6 = 00166350  R7 = 00188658
        R8 = 00000000  R9 = 7FE26A9C  R10= 000F7DE4  R11= 000FB0F0
        AP = 7FE26984  FP = 7FE26944  SP = 7FE269C0  PC = 000F96F7
        PSL= 03C00000
                    
T.RTitleUserPersonal
Name
DateLines
2505.1QUARK::LIONELFree advice is worth every centThu Mar 22 1990 20:564
    Well, seeing as I was the last to "touch" DECburger, I'll look at
    it when I have a chance.  Is this the C, FORTRAN or Ada version?
    
    				Steve
2505.2C burgerSKYLRK::JOLLEYThis space left intentionally blankFri Mar 23 1990 14:168
	Hi Steve,

	We're working with just C for now.


					Thanks,
					Jolley
2505.3QUARK::LIONELFree advice is worth every centFri Mar 23 1990 14:343
Ok, I can reproduce it on T5.4-4ET. I'll look into it.

		Steve
2505.4Related to 2511 ?!GYPSC::BADEMon Mar 26 1990 09:065
    Please have a look to the XtUnmanage/XtManage -problem (note 2511).
    Although this becomes nicely visible with the DECburger, we have run 
    into the problem with our (much larger) application. 
    
    Dirk Bade
2505.5QUARK::LIONELFree advice is worth every centMon Mar 26 1990 12:505
That's out of my control - it's a problem in the toolkit.  I can only try
to see if DECBURGER is doing something wrong, or determine that the toolkit
is doing something wrong.

				Steve
2505.6QUARK::LIONELFree advice is worth every centTue May 01 1990 17:1425
I believe I have found the cause for this error, though I don't yet know
whether it is a programming error on my part or a bug in the toolkit.

To "fix" the problem, remove the following lines in routine ACTIVATE_PROC:

	... in the loop that collects the burger toggles:

		CALL XT$FREE(TEXT)

	... in the case for one of the fries buttons:

		CALL XT$FREE(CURRENT_FRIES)

(This is in FORTRAN, the Ada and C code have similar sequences.)

What seems to have changed is that the call to GET_VALUES to get the widget's
label is now returning a pointer to the actual widget label compound string,
rather than a pointer to a copy of the label string.  The toolkit is incredibly
inconsistent about such things, and the documentation in this regard is
nil.

I have inquired separately about the correct action.  Once I find the answer,
I will ask to have the examples updated for a future version of VMS.

			Steve
2505.7QUARK::LIONELFree advice is worth every centWed May 02 1990 16:189
I have made fixes in the Ada, C and FORTRAN versions of DECBURGER to
correct this error.  It's a bit more complicated than I indicated in .6,
though removing the lines I noted there will allow the program to run -
it will just leak a bit of memory.

If you want the new version in any of the above languages, send me mail.
They'll likely show up in some future VMS release (after V5.4).

				Steve
2505.8Do fries go with that shake?QUARK::LIONELFree advice is worth every centWed Jun 06 1990 16:397
I am told that the final VMS V5.4 kit will have the latest versions of
the DECBURGER (and HELLOWORLD) examples with all known bugs fixed.  I also
added some comments and a change history, so look at it to see what changed.

Note that these are not in T5.4-4GE.

			Steve
2505.9QUARK::LIONELFree advice is worth every centTue Jul 17 1990 17:016
I can confirm that the fix for this problem is in T5.4-4HW, and thus very
likely to be in V5.4.  See the new comments and change history in both
the HELLOWORLD and DECBURGER example programs in Ada, C and FORTRAN for
additional changes.

				Steve