<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title>RC-WinTrans - RC-WinTrans Support - RC-WinTrans 9.3 Wintrans.Exit() not working - Messages</title>
<link>https://www.rc-wintrans.com/forum_srv/messages.aspx?TopicID=138</link>
<description>RC-WinTrans - RC-WinTrans Support - RC-WinTrans 9.3 Wintrans.Exit() not working - Messages</description>
<language>en-us</language>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
<generator>Jitbit AspNetForum</generator>
<pubDate>Mon, 30 Dec 2013 09:43:34 GMT</pubDate>
<lastBuildDate>Mon, 30 Dec 2013 09:43:34 GMT</lastBuildDate>
<item>
<link>https://www.rc-wintrans.com/forum_srv/messages.aspx?TopicID=138</link>
<title>Message from Kamesh</title>
<description><![CDATA[Sure I will try your solution. But I am just curious as to why it was working fine with RCWintrans 8 and causing error only in case RC Wintran 9.3 ?]]></description>
<pubDate>Mon, 30 Dec 2013 09:43:34 GMT</pubDate>
</item>
<item>
<link>https://www.rc-wintrans.com/forum_srv/messages.aspx?TopicID=138</link>
<title>Message from Support</title>
<description><![CDATA[It can be reproduced using your code.<br/><br/>There is an unhandled exception when you delete the file in the temp dir:<br/>    <span style="color:#cc0000">File.Delete(filename);<br/></span>   "An unhandled exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll"<br/><br/>Remove this code and it works.<br/><br/>Note:  RC-WinTrans removes all temporary files in this folder on exit.<br/>You do not need to clear the temp RC-WinTrans directory.  It is done by RC-WinTrans.<br/><br/><br/>Regards,<br/>Support, Schaudin.com]]></description>
<pubDate>Sat, 28 Dec 2013 19:53:01 GMT</pubDate>
</item>
<item>
<link>https://www.rc-wintrans.com/forum_srv/messages.aspx?TopicID=138</link>
<title>Message from Kamesh</title>
<description><![CDATA[This is the snippet which is causing error.<br/><br/>public void CloseWinTrans()<br/>        {<br/>            if (m_rwtApplication != null)<br/>            {<br/>                <br/>                // Determine Temp directory used by WinTrans. This is needed to cleanup <br/>                // residual files left by WinTrans after it exits.<br/>                string tempDirectory = m_rwtApplication.Tools.DirectoryTool.GetTempDirectory();<br/>                try<br/>                {<br/>                    // Exit WinTrans<br/>                    m_rwtApplication.Exit();<br/>                }<br/>                catch<br/>                {<br/>                    // Ignore all exceptions on exit.<br/>                }<br/><br/>                m_rwtApplication = null;<br/><br/>                // Delete WinTrans residual files in temp directory.<br/>                if (tempDirectory != null)<br/>                {<br/>                    string[] tempFileList = Directory.GetFiles(tempDirectory, "RWTTmpFile_*.resx");<br/>                    foreach (string filename in tempFileList)<br/>                    {<br/>                        File.SetAttributes(filename, FileAttributes.Normal);<br/>                        File.Delete(filename);<br/>                    }<br/>                }<br/>            }<br/>        }<br/><br/>The error in Event Viewer is<br/>Application: CreateResourcesAllLanguages.exe<br/>Framework Version: v4.0.30319<br/>Description: The process was terminated due to an unhandled exception.<br/>Exception Info: System.NullReferenceException<br/>Stack:<br/>   at CreateResourcesAllLanguages.WinTrans.CloseWinTrans()<br/>   at CreateResourcesAllLanguages.Program.ExecuteWintransOnDir(System.String)<br/>   at CreateResourcesAllLanguages.Program.CallWintransOnDir(System.String)<br/>   at CreateResourcesAllLanguages.Program.CallWintransOnDir(System.String)<br/>   at CreateResourcesAllLanguages.Program.CallWintransOnDir(System.String)<br/>   at CreateResourcesAllLanguages.Program.Main(System.String[])<br/><br/>The same code works fine with RCWintrans 8 but giving up after translating 1st RWT project in case of RCWintrans 9. So I am wondering if anything changed as part of RCWintrans 9]]></description>
<pubDate>Fri, 20 Dec 2013 08:42:26 GMT</pubDate>
</item>
<item>
<link>https://www.rc-wintrans.com/forum_srv/messages.aspx?TopicID=138</link>
<title>Message from Support</title>
<description><![CDATA[Hello Kamensh!<br/><br/>&gt;  Object reference not set to an instance of an object.<br/>&gt;<br/>Is it (1) your application which gets this message returned? <br/>Or (2) is it an output in the RC-WinTrans Output window? <br/><br/>If (2) then it comes from the RC-WinTrans VBA system (a VBA macro) and can be ignored (usually). I don't think this is the reason for the Non-Exit.<br/>The reason will be a (RC-WinTrans) COM object which has not been released.<br/><br/>Possible reasons:<br/>1.  you have requested an object from RC-WinTrans and it has not been release before unsing Exit().<br/>     Release the object first.<br/><br/>2.  a    "for .. each ..."  loop (.NET) causes this problem.  It produces the same problem as (1).<br/>      The loop must be realized/coded in a different way. I can help how to do.  <br/><br/>Find out which code executed prevents  RC-WinTrans to exit.  Skip code until RC-WinTrans closes with Exit().<br/><br/>I checked once again the Exit() works for V9.  I used a .NET C# as well as a C++ sample application.<br/><br/>Regards,<br/>Support, Schaudin.com]]></description>
<pubDate>Thu, 19 Dec 2013 21:58:13 GMT</pubDate>
</item>
<item>
<link>https://www.rc-wintrans.com/forum_srv/messages.aspx?TopicID=138</link>
<title>Message from Kamesh</title>
<description><![CDATA[We were using RC Wintrans X8 Global in our project involving multiple .rwt projects. But after upgrading to RC-Wintrans 9 the Exit( ) function is not working and we are getting the following error after completion of the 1st .rwt project.<br/>WinTrans - Object reference not set to an instance of an object.<br/>The project file is closed as seen in the Wintrans Editor. But the Wintrans application is not exiting]]></description>
<pubDate>Thu, 19 Dec 2013 13:31:52 GMT</pubDate>
</item>
</channel>
</rss>
