EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Please fix set/ delete filter button bug in samples

Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.
Posted: 06/23/2009 06:00:15
by Phil Nash (Standard support level)
Joined: 05/18/2009
Posts: 10

Most, if not all, the samples have a rather annoying bug, which is easy to remedy, but I'd rather it was done once in your samples, rather than having to reapply it ourselves every time.

The problem is that, once you have attached a filter, you can't detach it.
The cause is that the filter status is being determined by testing the mFilter.Active property (in .Net - or equivalent in others), rather than the mFilter.FilterPresent property.

This occurs in a few places, for example in UpdateButtons() we have:

buttonSetFilter.Enabled = !mFilter.Active;
buttonDeleteFilter.Enabled = mFilter.Active;

but this should be:

buttonSetFilter.Enabled = !mFilter.FilterPresent;
buttonDeleteFilter.Enabled = mFilter.FilterPresent;

Often, if we stop the appliction without detaching the filter it bluescreens, and we tend to use the samples as starting points a lot when trying to reproduce issues in isolation. As a result this bug is quite frustrating.

Thanks and regards,

Phil Nash



Topic viewed 2452 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!