From e63908912809cd6aeeeb2d068da562c227cbd3a9 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 18 Mar 2013 08:18:13 +0000 Subject: clutch for pascal plugins not to eat memory on thread creation git-svn-id: http://svn.miranda-ng.org/main/trunk@4085 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Actman/actman.dpr | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'plugins/Actman') diff --git a/plugins/Actman/actman.dpr b/plugins/Actman/actman.dpr index caf0319c6a..5428411585 100644 --- a/plugins/Actman/actman.dpr +++ b/plugins/Actman/actman.dpr @@ -136,7 +136,7 @@ begin LoadGroups; RegisterIcons; - + opthook :=HookEvent(ME_OPT_INITIALISE ,@OnOptInitialise); hHookShutdown:=HookEvent(ME_SYSTEM_SHUTDOWN{ME_SYSTEM_OKTOEXIT},@PreShutdown); NotifyEventHooks(hHookChanged,twparam(ACTM_LOADED),0); @@ -183,7 +183,9 @@ begin end; exports - Load, Unload, - MirandaPluginInfoEx; + Load, Unload, MirandaPluginInfoEx; + +initialization + DisableThreadLibraryCalls(hInstance); end. -- cgit v1.2.3