mIRC Home    About    Download    Register    News    Help

Print Thread
//dll -u $nopath(filename) #265070 24/02/19 03:47 PM
Joined: Jan 2004
Posts: 1,173
maroon Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Jan 2004
Posts: 1,173
//dll -u $nopath(filename)
is not following the same filename convention used by $read $readini /write /writeini etc.

While I understand the 'by design' behavior to allow unloading dll's without needing to reference the full/relative path if it's located outside $mircdir, it should probably give precedence to the dll located in $mircdir before making $nopath() matches against a name-string that doesn't include a path.

If you have foobar.dll located in $mircdir and c:\otherpath\foobar.dll and they're both loaded in memory, "/dll -u foobar.dll" unloads whichever one is loaded first in the $dll(number) sequence instead of first seeing if it's located in $mircdir.

Re: //dll -u $nopath(filename) [Re: maroon] #265073 24/02/19 06:30 PM
Joined: Dec 2002
Posts: 4,519
Khaled Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 4,519
Thanks for your bug report. This is by design and has worked this way for a very long time, it cannot be changed without potentially affecting existing scripts unfortunately.