[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [TRNSYS-users] Error message: A win32 API function failed.
Dear Wimolsiri,
The easiest way to see the illegal character on the clipboard is
to open a text editor (Notepad or WordPad) and perform a
"paste" (CTRL-V). Usually, you will end up pasting whatever the
illegal character was. The only information that should be transferred
back and forth between EES and TRNSYS are numbers (text characters won't
be interpreted correctly). I am not sure why you are getting the API
function failed error message - I haven't ever run into that one. The one
piece of advice I might give is to make sure that you have all of EES's
error messaging abilities switched off. When EES is performing its
calculations, TRNSYS sits in a waiting loop until EES posts something on
the clipboard and alerts TRNSYS that it has finished. Sometimes, if EES
generates an error in its calculations, TRNSYS doesn't find out about it
and just waits indefinitely. If you can't figure out what is going on,
please forward your TRNSYS input file and EES file to me and I will see
if I can debug it for you.
Kind regards,
David
I am running
a model type 66 (Calling external program-EES) under Trnsys16. After the
program has been run about 2500 hr (smoothly), 2 error messages show
up:
A Win32 API function failed.
And
An illegal character was encountered in position 1 of
the string delP while reading CLIPBOARD.
The last message indicates that there is something
wrong in the data in the clipboard. Firstly, I thought that there should
be something wrong with the setting of the numerical format, but it is
right.
Where is the temporary file in the clipboard saved? Is
there any possibility to check the data in the clipboard?
What does the first message mean (a win32 API function
failed)?
________________________________
Wimolsiri Pridasawas
Kungl. Tekniska Högskolan
Inst. för Energiteknik
Tillämpad Termodynamik och Kylteknik
SE-100 44 Stockholm
Tel. +46(0)8 790 7889
Fax. +46(0)8 20 30
07
_______________________________________________
TRNSYS-users mailing list
TRNSYS-users@engr.wisc.edu
https://www.cae.wisc.edu/mailman/listinfo/trnsys-users
****************************************************************************************
Thermal Energy System Specialists (TESS), LLC
David
BRADLEY
2916 Marketplace Drive - Suite 104
Partner
Madison, WI 53719
Phone: (608) 274-2577 USA
Fax: (608) 278-1475
E-mail: bradley@tess-inc.com
Web Pages:
http://www.tess-inc.com
and
http://www.trnsys.com
"Providing software solutions for today's energy engineering
projects"
****************************************************************************************