Hello David,
Thank you very much
for the hints.
You are absolutely
right. I observed the clipboards during the simulation all the time (by open
the clipboard viewer), the things that I saw is just the inputs and outputs
between TRNSYS and EES all the time………… until………..
when the error came. The data on the clipboard suddenly changes to the unrecognized
characters ;-{
PÃ[1] À
DataObjectÀxOle Private Data´µx*Áÿÿÿÿ
Could it be possible
that during the simulation, if other programs which also use the function of
clipboard activates, then data in the clipboard becomes something else which is
not number character? But I am quite sure that only trnsys and ees that were
opened during simulation.
In the EES side, I switch
off the display warning message function but I could not find the place for
switching off the error message. From the source code, I guess that EES is
called in a minimized mode anyway.
I tried to run the
program in a short specific time close to the time that error happened, but there
was no error. The error comes only when the program had started for some
thousands hours in advanced. I guess that the problem might come from the
specific results but I still can not find it. I will try to debug for a short
while, If I can’t I will arrange the files and send it to you. Thank you
very much for your kindly help.
Kind regards,
Wimolsiri
From:
trnsys-users-bounces@engr.wisc.edu [mailto:trnsys-users-bounces@engr.wisc.edu] On Behalf Of David Bradley
Sent: Wednesday, March 01, 2006
10:10 PM
To: Wimolsiri
Pridasawas; trnsys-users@engr.wisc.edu
Subject: 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"
****************************************************************************************