[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

1754.0. "Problem with DVT$VMS_SET_ARGUMENT" by CSC32::M_KOREN (Mark K) Thu Nov 16 1989 15:59

The test program at the bottom of this note is causing a customer I am help-
ing the following problems -

	1) the DVT$VMS_SET_ARGUMENT function does not seem to work the
	   way it is supposed to, the call does not seem to work, the
	   argument list does not get initialized

	2) when they try to use the debugger to analyze the program making  
	   this call, with the call to DWT$VMS_SET_ARGUMENT commented out
	   they can set a break point (BP1), with the call in the program
	   they cannot set the break point.

Any comments and/or information concerning this problem is greatly 
appreciated.

						Mark Korenkiewicz
						DECSupport
						CSC/CS
						719-592-4714


The sample program provided by the customer is as follows -

1	PROGRAM TEST
 	OPTION TYPE=EXPLICIT
	MAP (MY_MAP) LONG A(1), B(7), MY_VAR, ONE

	DECLARE STRING CONSTANT DWT$C_NFOREGROUND =  "foreground"
	EXTERNAL LONG FUNCTION DWT$VMS_SET_ARG

	MAP (MY_MAP_2) STRING A_STRING = 11%
	MAP (MY_MAP_2) LONG A_STRING_ADDR
	DECLARE STRING CONSTANT A_STRING_C = "foreground" + '0'C
	MY_VAR = 2%
	ONE = 1%

	B(0) = DWT$VMS_SET_ARG(MY_VAR, A(0), ONE, DWT$C_NFOREGROUND)

	PRINT A(0), A(1)
	PRINT B(0), B(1)
BREAK_POINT1:
	A_STRING = A_STRING_C
	A(0)=LOC(A_STRING)
	PRINT A(0)
BREAK_POINT2:
	END
T.RTitleUserPersonal
Name
DateLines