Print Page | Close Window

Multi-lanugage crash

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=16024
Printed Date: 29 June 2024 at 3:24am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Multi-lanugage crash
Posted By: gmail
Subject: Multi-lanugage crash
Date Posted: 16 January 2010 at 10:30pm
Hello,

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:

0    >    3136    Worker Thread    CXTPSkinManagerApiHook::ThreadProcHook

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!



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net