diff options
author | Steve Huston <shuston@riverace.com> | 1999-05-05 18:18:30 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 1999-05-05 18:18:30 +0000 |
commit | 080e3dd3081a9039eabb6b25ecddd731b70573a6 (patch) | |
tree | 8fb7fa8afab9985850aefa8e926f8dac44ba9de6 | |
parent | 7cc122ef964dc2b4917e9de77a68e70fea5ef077 (diff) | |
download | ATCD-080e3dd3081a9039eabb6b25ecddd731b70573a6.tar.gz |
Removed DllMain function.
-rw-r--r-- | ace/ACE.cpp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/ace/ACE.cpp b/ace/ACE.cpp index 0f34d497106..e54e99bed52 100644 --- a/ace/ACE.cpp +++ b/ace/ACE.cpp @@ -30,39 +30,6 @@ size_t ACE::pagesize_ = 0; size_t ACE::allocation_granularity_ = 0; -// If building a Win32 DLL and using non-static Object Manager, compile in a -// DllMain which will init the ACE library upon loading and tear it down on -// unloading. -#if defined (ACE_WIN32) && (defined (ACE_HAS_DLL) && (ACE_HAS_DLL == 1)) && \ - defined (ACE_HAS_NONSTATIC_OBJECT_MANAGER) -BOOL APIENTRY DllMain(HANDLE hModule, - DWORD ul_reason_for_call, - LPVOID lpReserved) -{ - // @@ This disables the funtion: TO DO - figure out why this function - // @@ is causing a crash in tao_idl on NT. - return TRUE; - - switch( ul_reason_for_call ) - { - case DLL_PROCESS_ATTACH: - ACE::init(); - break; - - case DLL_THREAD_ATTACH: - case DLL_THREAD_DETACH: - break; - - case DLL_PROCESS_DETACH: - ACE::fini(); - break; - } - - return TRUE; -} -#endif /* ACE_WIN32 && ACE_HAS_DLL && ACE_HAS_NONSTATIC_OBJECT_MANAGER */ - - int ACE::init (void) { |