[Crash] Changing view

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

[Crash] Changing view

Post by *m^2 »

I'm currently developing a wdx plugin. It's really slow on big files.
While testing it I entered to directory which contained big ones, so I changed view to full, but there was some job in the background. After a second i got this. Plugin isn't really stable yet, so it may by it's crash. But see plugin name.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48232
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

It seems that the plugin somehow corrupted either the stack, or the plugin name on the heap.

Do you use delayed loading of the data? If yes, try using some critical sections to protect your functions. Just have a look at MSDN online, once you have read about critical sections, they are really quite easy to use and prevent that functions which aren't thread-safe aren't executed at the same time.
Author of Total Commander
https://www.ghisler.com
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

ghisler(Author) wrote:Do you use delayed loading of the data?
Yes, I do.
If you say it's a problem with threads, you're probably right, as it's not really thread-safe. I'll fix that, thanks.
Post Reply