Old 11th August 2017, 14:47   #1
r2du-soft
Senior Member
 
r2du-soft's Avatar
 
Join Date: Nov 2013
Location: Iran
Posts: 233
Unload Dlls After User Thats

after i use from some codes,some dlls cant be unload after my call dll finished.

for example:


Cant Be Unload system.dll
HTML Code:
System::Call "user32::LoadKeyboardLayout(t '00000409',i 0x00000001)" ;English(Us)*(uniter States)

Cant Be Unload nsDialogs.dll After Exit nsDialogs Page...
HTML Code:
   nsDialogs::Create 1018
   Pop $Dialog
   ${If} $Dialog == error
       Abort
nsDialogs::Show

Cant Be Unload Banner.dll After Destroy
HTML Code:
Banner::show /set 76 "testing" /set 54 "${ApName} ${Version}${BuildNumber}"
Sleep 2000
Banner::destroy

Cant Be Unload inetc.dll After Download And Upload
HTML Code:
inetc::get /CANCELTEXT "Cancel" /QUESTION "Are You Sure You Want To Cancel?" /RESUME "Network Error,Check internet Connection And Send 'Retry'" /Caption "Downloaing" "http://$User:$Pass@$URLS" "$EXEDIR\$File" /END


inetc::put /CANCELTEXT "Cancel" /QUESTION "Are You Sure You Want To Cancel?" /Caption "Uploading" "FTP://$User:$Pass@$URL/$File" /END


Cant Be unload Aero.dll after Use Aero Set
HTML Code:
Aero::Apply

after use thats how can unload?


my problem is this...
my application after complete goto loop and my problem is fill memory...
i clear stack after user that and my problem solved a little but i think because
application goto loop These dlls are reloaded in the system and memory filled...
r2du-soft is online now   Reply With Quote
Old 11th August 2017, 16:41   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,559
Loading a .dll multiple times does not increase memory usage. The actions performed by the .dll might but not the library itself.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 11th August 2017, 17:19   #3
r2du-soft
Senior Member
 
r2du-soft's Avatar
 
Join Date: Nov 2013
Location: Iran
Posts: 233
I know of stuff that fills the RAM:
use push and don't use pop after that.
What other materials are fill memory?
r2du-soft is online now   Reply With Quote
Old 13th August 2017, 01:17   #4
r2du-soft
Senior Member
 
r2du-soft's Avatar
 
Join Date: Nov 2013
Location: Iran
Posts: 233
i have memory usage problem in windows server 2008....



Within 24 hours,isass.exe process memory usage is 856,088K !!!
and when my memory size fulled program not responsed!
the problem is my software or The problem is something else?
i searched server windows to find virus but is clear!
r2du-soft is online now   Reply With Quote
Old 13th August 2017, 09:19   #5
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,559
You are now starting to get off topic. Certain security/account APIs will talk to lsass but normal NSIS features do not. Post your NSIS code or go ask somewhere else like Stackoverflow...

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump