[TRNSYS-users] Run time error - Unit-1 file CONOUT$

Michaël Kummert kummert at engr.wisc.edu
Fri Aug 20 15:28:06 PDT 2004


Edward,
> 
> Another problem. After running smoothly for some months, even when I modified
> my DLL (written in COMPAC FORTAN) and recompiled the files, yesterday I got a
> very annoying problem, as follows:
> 
> When I run my PCM44 component (by connecting itu to a plotter and a printer)
> just to check the effect of the modification I made in it, the following
> run-time error appears:
> Forrtl: severe(38): error during write, unit-1 file CONOUT$
> 
> The following are the suorce identified as the source of error by the TRNSYS:
> 
> Line 68 - TYPE 444
> CALL PCME44(SPass,SArrayPass,SimArray,XIN,Out,T,DTDT,PAR,
>      &INFO,ICntrl) (This is call to my dll)
> 

This shows that the error occurs inside your DLL. Error 68 is described 
in the Visual Compaq Fortran help (I pasted the text here below).

severe (68): Variable format expression value error
FOR$IOS_VFEVALERR2. The value of a variable format expression was not 
within the range acceptable for its intended use; for example, a field 
width was less than or equal to zero. A value of 1 was assumed, except 
for a P edit descriptor, for which a value of zero was assumed.

I suggest that you step through your code looking for the WRITE 
instruction that causes the problem. You can debug your DLL by making it 
the "active" project in CVF.

The fact that the error ocurs writing to CONOUT suggests that you have a 
"WRITE(*,...)" or WRITE(LUN,...) where LUN=1 (and I don't think you will 
see the output anywhere by the way because this is supposed to write to 
the screen). Some "write" problems also occur when sharing logical units 
between DLL's if the project is not linked against the DLL version of 
standard libraries.

Kind regards,

Michaël Kummert


-- 
_________________________________________________________

Michaël Kummert

Solar Energy Laboratory - University of Wisconsin-Madison
1303 Engr Res Bldg, 1500 Engineering Drive
Madison, WI 53706

Tel: +1 (608) 263-1589
Fax: +1 (608) 262-8464
E-mail: kummert at engr.wisc.edu

SEL Web Site: http://sel.me.wisc.edu
TRNSYS Web Site: http://sel.me.wisc.edu/trnsys



More information about the TRNSYS-users mailing list