My FileSystem plugin hangs TC

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
ctiberg
Member
Member
Posts: 194
Joined: 2003-10-24, 14:10 UTC
Location: Kristianstad, Sweden

My FileSystem plugin hangs TC

Post by *ctiberg »

Hello!

I've been messing around a little converting my code for handling RSS feeds into catching podcasts. I've also turned this into a TC FS plugin.

To my problem. The plugin works, displaying the files in TC, but TC hangs if I try to close TC after using my plugin. So I need to find out common reasons for this, and would appreciate any hints or tips!
Best regards,
Christian Tiberg
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50421
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Common errors are pointers which are freed twice, or trying to access an object which has already been freed. Make sure to set pointers to NULL/Nil after freeing them. This way you will find such errors much more easily (by getting an access violation). Also make sure to close any open files and such in DllMain when you get the DLL_PROCESS_DETACH notification. As a last resort, I can have a look at your code if you want.
Author of Total Commander
https://www.ghisler.com
User avatar
ctiberg
Member
Member
Posts: 194
Joined: 2003-10-24, 14:10 UTC
Location: Kristianstad, Sweden

Post by *ctiberg »

Thanks, Christian!

I'll go have another look, I guess. But I'm less and less sure that this is a thing worth doing (that is I don't think it would be very useable, nothing bad about TC itself). I might just do it as a standalone app instead.

I'm seeing now that I'd sorely miss the automatic downloading of files, and that wouldn't be feasible the way I see an FS plugin....
Best regards,
Christian Tiberg
Post Reply