Click here to Skip to main content
15,891,431 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How do you load a .DLL multiple times into different memory spaces? Pin
sludgenz21-Jul-08 15:39
sludgenz21-Jul-08 15:39 
AnswerRe: How do you load a .DLL multiple times into different memory spaces? Pin
Bram van Kampen21-Jul-08 14:52
Bram van Kampen21-Jul-08 14:52 
GeneralRe: How do you load a .DLL multiple times into different memory spaces? Pin
sludgenz21-Jul-08 15:37
sludgenz21-Jul-08 15:37 
GeneralRe: How do you load a .DLL multiple times into different memory spaces? Pin
Luc Pattyn21-Jul-08 15:52
sitebuilderLuc Pattyn21-Jul-08 15:52 
GeneralRe: How do you load a .DLL multiple times into different memory spaces? Pin
sludgenz21-Jul-08 16:03
sludgenz21-Jul-08 16:03 
GeneralRe: How do you load a .DLL multiple times into different memory spaces? Pin
Stephen Hewitt21-Jul-08 17:01
Stephen Hewitt21-Jul-08 17:01 
AnswerRe: How do you load a .DLL multiple times into different memory spaces? Pin
Stephen Hewitt21-Jul-08 17:36
Stephen Hewitt21-Jul-08 17:36 
GeneralRe: How do you load a .DLL multiple times into different memory spaces? Pin
sludgenz21-Jul-08 17:56
sludgenz21-Jul-08 17:56 
Yep, I had considered that solution and it is probably the way I am going to go (although separate AppDomains within the same process is looking like a promising line of inquiry too).
Updating the DLL so that it doesn't use the global handle to a dataset is completely impractical, it's over a million lines of code, with 10s of thousands of function calls which would have to pass in the handle to a dataset, unless I wrap the entire application in a separate object somehow which also seems very impractical. I completely understand that loading the DLL into multiples instances in memory is an undesirable solution but it is the most desirable among the solutions that appear to be available (I'm talking with confidence here as an experienced programmer whose had other experienced programmers review the problem to make sure I'm not missing something)
The original design was a poor choice, agreed, but that was over 15 years ago and I certainly didn't make it.

Thanks for the help, based on the feedback I'm now pretty sure it's not possible.
GeneralRe: How do you load a .DLL multiple times into different memory spaces? Pin
Stephen Hewitt21-Jul-08 18:06
Stephen Hewitt21-Jul-08 18:06 
GeneralRe: How do you load a .DLL multiple times into different memory spaces? Pin
sludgenz21-Jul-08 18:20
sludgenz21-Jul-08 18:20 
GeneralRe: How do you load a .DLL multiple times into different memory spaces? Pin
Stephen Hewitt21-Jul-08 18:24
Stephen Hewitt21-Jul-08 18:24 
AnswerRe: How do you load a .DLL multiple times into different memory spaces? Pin
Joe Woodbury21-Jul-08 18:29
professionalJoe Woodbury21-Jul-08 18:29 
GeneralRe: How do you load a .DLL multiple times into different memory spaces? Pin
Stephen Hewitt21-Jul-08 20:01
Stephen Hewitt21-Jul-08 20:01 
GeneralRe: How do you load a .DLL multiple times into different memory spaces? Pin
Joe Woodbury21-Jul-08 20:08
professionalJoe Woodbury21-Jul-08 20:08 
Questionquestion about a MKV block. Pin
kcynic21-Jul-08 13:51
kcynic21-Jul-08 13:51 
AnswerRe: question about a MKV block. Pin
yuanfen13922-Jul-08 20:42
yuanfen13922-Jul-08 20:42 
GeneralRe: question about a MKV block. Pin
kcynic22-Jul-08 21:27
kcynic22-Jul-08 21:27 
GeneralRe: question about a MKV block. Pin
yuanfen13923-Jul-08 0:16
yuanfen13923-Jul-08 0:16 
GeneralRe: question about a MKV block. Pin
kcynic23-Jul-08 2:00
kcynic23-Jul-08 2:00 
QuestionCWinThread - How to ask is still running? Pin
x87Bliss21-Jul-08 13:45
x87Bliss21-Jul-08 13:45 
AnswerRe: CWinThread - How to ask is still running? Pin
Joe Woodbury21-Jul-08 19:34
professionalJoe Woodbury21-Jul-08 19:34 
AnswerRe: CWinThread - How to ask is still running? Pin
sudhir_Kumar21-Jul-08 20:00
sudhir_Kumar21-Jul-08 20:00 
GeneralRe: CWinThread - How to ask is still running? Pin
Joe Woodbury21-Jul-08 20:26
professionalJoe Woodbury21-Jul-08 20:26 
Questionpolymorphism question - child pointer to parent class Pin
zecodela21-Jul-08 12:59
zecodela21-Jul-08 12:59 
AnswerRe: polymorphism question - child pointer to parent class Pin
Stephen Hewitt21-Jul-08 13:58
Stephen Hewitt21-Jul-08 13:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.