Windows 10,
0.18 win64
Repeatable on two PCs
I did some digging to the not appearing 'add new torrent' dialog and crash while trying to add a torrent. The following steps should produce the issues.
No 'Add new torrent' dialog:
The message at mainwindow.ccp:600 is not WM_COPYDATA, but WM_ACTIVATEAPP.
Make it crash (continue from the above steps):
It looks likes a crash, but the CloseHandle(...) in application.ccp:25 is called. Torrent is somehow added to the list and starts downloading the next time you start the application. The file is saved to: .../AppData/Local/Temp.
I did at some breakpoint logging:
Close handle called!Event: {msg}I hope it helps.
@thec0mpler this is awesome - appreciate it! I'll see if I can reproduce the issue using your steps tomorrow. There are a few issues related issues I think so solving this would be big. Thanks again!
I can reproduce the issue. There's something wrong when sending WM_COPYDATA and the window is minimized to tray... I haven't found a solution yet, but I can provoke the error anytime at least. We might have to rewrite the single instance checking logic a bit.
Most helpful comment
I did some digging to the not appearing 'add new torrent' dialog and crash while trying to add a torrent. The following steps should produce the issues.
No 'Add new torrent' dialog:
The message at mainwindow.ccp:600 is not WM_COPYDATA, but WM_ACTIVATEAPP.
Make it crash (continue from the above steps):
It looks likes a crash, but the
CloseHandle(...)in application.ccp:25 is called. Torrent is somehow added to the list and starts downloading the next time you start the application. The file is saved to: .../AppData/Local/Temp.I did at some breakpoint logging:
Close handle called!Event: {msg}No dialog.txt
Crash.txt
I hope it helps.