|
|
Choosing A Webhost: |
RE: dll Hell...: msg#00006text.xml.xalan.c++.user
Hey John, Not sure how that helps? Windows is only going to load one "xerces-c_2_6.dll" into a process...so whichever it loads, you're screwed? Or am I misunderstanding? Rob -----Original Message----- From: Bossom, John [mailto:John.Bossom@xxxxxxxxxx] Sent: Thursday, August 02, 2007 6:19 PM To: xalan-c-users@xxxxxxxxxxxxxx Subject: RE: dll Hell... We solved the problem by wrapping the external interfaces with a C++ namespace. -----Original Message----- From: Rob.Conde [mailto:Rob.Conde@xxxxxxxxxxxxxxxx] Sent: Thursday, August 02, 2007 6:16 PM To: xalan-c-users@xxxxxxxxxxxxxx Subject: dll Hell... Hey guys, I've run into a situation with xerces, but I thought I'd bring it up here because it applies equally. Currently we're using xerces 2.6 and xalan 1.9 because we're using vs2005 and don't want to release with "unofficial" versions (i.e. the trunks). Those xerces 2.6 and xalan 1.9 are built with vs2003 due to the well known build problems with xalan and vs2005. So the name of our xerces dll, as default, is "xerces-c_2_6.dll". Our application integrates with Matlab via their API. It turns out they're also using xerces. Also, version 2.6. Our application and Matlab were happily co-existing until the latest version of Matlab was released. The problem? It appears they decided to recompile xerces using vs2005. Probably among other things, this changes "unsigned short const *" to "wchar_t const *" which windows recognizes differently when trying to resolve dynamically linked methods. In addition, their dll is built using ICU. Despite these differences, their dll is also named "xerces-c_2_6.dll"...I'm sure you see where I'm going. Our app loads up, loading our version of the xerces dll...then we load the matlab dll...it tries to load its xerces dll, but gets ours instead. It can't resolve certain methods and fails. As I understand it, the only good solution is to rebuild the xerces/xalan libraries naming them something like MyCompanyXerces_2_6.dll etc. and then relink our application to those new libraries. I'd appreciate opinions on this. It seems to me that it should be encouraged do this renaming exercise whenever building the xerces/xalan libraries yourself. In other words, only the "official" xerces binary should be named "xerces-c_2_6.dll". Of course, this issue isn't isolated to xerces/xalan and perhaps it was just a matter of time before we ran into this. But the fact that a company as big as Mathworks(Matlab) failed to anticipate this issue makes me feel that perhaps something more proactive can be done. Or maybe I'm missing something? Robert Conde This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you.
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: dll Hell..., Lewis G. Pringle, Jr. |
|---|---|
| Next by Date: | Re: dll Hell..., David Bertoni |
| Previous by Thread: | Re: dll Hell..., Nicholas Bastin |
| Next by Thread: | Re: dll Hell..., David Bertoni |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |