mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2004
Posts: 871
Sat Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2004
Posts: 871
The help page for "SendMessage" states:

Quote:
The mapped file must be at least 1024 bytes in length.

This is outdated; I believe the current value is 4150 characters, which requires a second page at least, and a third when using unicode. Using 1024 bytes thus leads to a crash when the result exceeds one page.

Alternatively, mIRC could use VirtualQuery and make sure it does not write beyond the number of pages allocated for the file mapping.


Saturn, QuakeNet staff
Joined: Dec 2002
Posts: 5,511
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,511
Thanks this has been fixed for the next version. The help file will specify a larger minimum buffer size and mIRC will use VirtualQuery() to ensure it does not write past the mapped file size.


Link Copied to Clipboard