<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Chiller;
panose-1:4 2 4 4 3 16 7 2 6 2;}
@font-face
{font-family:Garamond;
panose-1:2 2 4 4 3 3 1 1 8 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:blue;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
p
{mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman";}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:Arial;
color:blue;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
@page Section1
{size:595.3pt 841.9pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=SV link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 color=blue face=Garamond><span
style='font-size:11.0pt;font-family:Garamond;color:blue'>Hello David,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Garamond><span
style='font-size:11.0pt;font-family:Garamond;color:blue'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Garamond><span lang=EN-US
style='font-size:11.0pt;font-family:Garamond;color:blue'>Thank you very much
for the hints. <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Garamond><span lang=EN-US
style='font-size:11.0pt;font-family:Garamond;color:blue'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Garamond><span lang=EN-US
style='font-size:11.0pt;font-family:Garamond;color:blue'>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 ;-{<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Garamond><span lang=EN-US
style='font-size:11.0pt;font-family:Garamond;color:blue'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><font size=2 face=Garamond><span lang=EN-US
style='font-size:11.0pt;font-family:Garamond'>PÃ<font size=2 face=Garamond><span
lang=EN-US style='font-size:11.0pt;font-family:Garamond'>[1]</span></font> Ā
<hr align=left size=1>
DataObjectĀxOle Private Data´ĩx*Á˙˙˙˙<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Garamond><span lang=EN-US
style='font-size:11.0pt;font-family:Garamond;color:blue'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Garamond><span lang=EN-US
style='font-size:11.0pt;font-family:Garamond;color:blue'>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.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Garamond><span lang=EN-US
style='font-size:11.0pt;font-family:Garamond;color:blue'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Garamond><span lang=EN-US
style='font-size:11.0pt;font-family:Garamond;color:blue'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Garamond><span lang=EN-US
style='font-size:11.0pt;font-family:Garamond;color:blue'>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.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Garamond><span lang=EN-US
style='font-size:11.0pt;font-family:Garamond;color:blue'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Garamond><span lang=EN-US
style='font-size:11.0pt;font-family:Garamond;color:blue'>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.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Garamond><span lang=EN-US
style='font-size:11.0pt;font-family:Garamond;color:blue'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Garamond><span lang=EN-US
style='font-size:11.0pt;font-family:Garamond;color:blue'>Kind regards,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Garamond><span lang=EN-US
style='font-size:11.0pt;font-family:Garamond;color:blue'>Wimolsiri<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 color=blue face=Arial><span lang=EN-US
style='font-size:12.0pt;font-family:Arial;color:blue'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 color=blue face=Arial><span lang=EN-US
style='font-size:12.0pt;font-family:Arial;color:blue'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>
<hr size=3 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span lang=EN-US
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>
trnsys-users-bounces@engr.wisc.edu [mailto:trnsys-users-bounces@engr.wisc.edu] <b><span
style='font-weight:bold'>On Behalf Of </span></b>David Bradley<br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, March 01, 2006
10:10 PM<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">Wimolsiri
Pridasawas</st1:PersonName>; <st1:PersonName w:st="on">trnsys-users@engr.wisc.edu</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [TRNSYS-users] Error
message: A win32 API function failed.</span></font><span lang=EN-US><o:p></o:p></span></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Dear Wimolsiri,<br>
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.<br>
Kind regards,<br>
David<br>
<br>
<br>
<br>
<br>
<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'>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:<br>
</span></font><br>
<font face=Arial><span style='font-family:Arial'>A Win32 API function failed.<br>
</span></font><br>
<font face=Arial><span style='font-family:Arial'>And<br>
</span></font><br>
<font face=Arial><span style='font-family:Arial'>An illegal character was
encountered in position 1 of the string delP while reading CLIPBOARD.<br>
</span></font><br>
<font face=Arial><span style='font-family:Arial'>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.<br>
</span></font><br>
<font face=Arial><span style='font-family:Arial'>Where is the temporary file in
the clipboard saved? Is there any possibility to check the data in the
clipboard? <br>
</span></font><br>
<font face=Arial><span style='font-family:Arial'>What does the first message
mean (a win32 API function failed)?<br>
</span></font><br>
<font face=Arial><span style='font-family:Arial'> <br>
</span></font><br>
<i><font size=2><span style='font-size:10.0pt;font-style:italic'>________________________________<br>
</span></font></i><br>
<st1:PersonName w:st="on"><i><font face=Chiller><span style='font-family:Chiller;
font-style:italic'>Wimolsiri Pridasawas</span></font></i></st1:PersonName><br>
<br>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Kungl.
Tekniska Högskolan<br>
</span></font><br>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Inst.
för Energiteknik<br>
</span></font><br>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Tillämpad
Termodynamik och Kylteknik<br>
</span></font><br>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>SE-100
44 Stockholm<br>
</span></font><br>
<br>
<br>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Tel.
+46(0)8 790 7889<br>
</span></font><br>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Fax. +46(0)8
20 30 07<font color="#006666"><span style='color:#006666'> <br>
</span></font></span></font><br>
<font size=2 color="#006666" face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:#006666'> <br>
</span></font><br>
<br>
<br>
_______________________________________________<br>
TRNSYS-users mailing list<br>
TRNSYS-users@engr.wisc.edu<br>
<a href="https://www.cae.wisc.edu/mailman/listinfo/trnsys-users"
eudora=autourl>https://www.cae.wisc.edu/mailman/listinfo/trnsys-users</a><o:p></o:p></p>
<p></x-sigsep><font size=3 face="Times New Roman"><span style='font-size:12.0pt'><x-sigsep>****************************************************************************************<br>
Thermal Energy System Specialists (TESS), LLC <br>
David
BRADLEY
2916 Marketplace Drive - Suite 104 <br>
Partner
Madison, WI 53719 <br>
Phone: (608) 274-2577 USA <br>
Fax: (608) 278-1475 <br>
E-mail: bradley@tess-inc.com <br>
Web Pages: <a href="http://www.tess-inc.com/" eudora=autourl>http://www.tess-inc.com</a>
and <a href="http://www.trnsys.com/"
eudora=autourl>http://www.trnsys.com<br>
<br>
</a>"Providing software solutions for today's energy engineering
projects" <br>
****************************************************************************************<o:p></o:p></span></font></p>
</div>
</body>
</html>