<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Multi-lanugage crash</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Multi-lanugage crash]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 11:40:29 +0000</pubDate>
  <lastBuildDate>Sat, 16 Jan 2010 22:30:26 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=16024</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Multi-lanugage crash : Hello,I have a mechanism to switch...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16024&amp;PID=56183&amp;title=multilanugage-crash#56183</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3776">gmail</a><br /><strong>Subject:</strong> 16024<br /><strong>Posted:</strong> 16 January 2010 at 10:30pm<br /><br />Hello,<br><br>I have a mechanism to switch between languages (using sattelite .dll for each language) on the fly. If I change language on the fly and refresh all visible elements (command bars, etc.) everything works fine. But, if I start application and call AfxSetResourceHandle(LoadLibrary("exampleENU.dll")) in my OnInitInstance() my application crashes in about 2-3 seconds (!?). I've debuged the problem to some point, and my call stack shows that the problem is in:<br><br>0&nbsp;&nbsp;&nbsp; &gt;&nbsp;&nbsp;&nbsp; 3136&nbsp;&nbsp;&nbsp; Worker Thread&nbsp;&nbsp;&nbsp; CXTPSkinManagerApiHook::ThreadProcHook<br><br>More precisely, it crashes while using CWnd::GetSafeHwnd. What is the correct procedure to switch resource .dll when starting application. I'm using ToolkitPro v12.1. and I'm linking statically with your resource files and libraries (english version). Also, I've checked your multi language samples and tried various methods and combinations shown there - to no avail. I've created .dlls in program called Sisulizer2008 (used for localization purposes), and everything works fine if I switch from my original language (coded in my .exe) to some other language (located in some .dll). Please advise what is the correct procedure to switch language *when* starting MFC aplication. Thanks!<br>]]>
   </description>
   <pubDate>Sat, 16 Jan 2010 22:30:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16024&amp;PID=56183&amp;title=multilanugage-crash#56183</guid>
  </item> 
 </channel>
</rss>