EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Cannot create a file when that file already exists. Error

Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.
#12656
Posted: 03/02/2010 19:12:20
by Aidan Salvi (Standard support level)
Joined: 11/27/2009
Posts: 14

I get a {CbFlt.ECBFltError} error when calling the AttachFilter function ont the Callback filter. The error is: "Cannot create a file when that file already exists"

What is the problems? Thanks.
#12657
Posted: 03/02/2010 19:23:44
by Aidan Salvi (Standard support level)
Joined: 11/27/2009
Posts: 14

If you have two instances of the filter object can you attachfilter to the same path within the same thread?
#12660
Posted: 03/03/2010 02:56:43
by Vladimir Cherniga (EldoS Corp.)

Quote
Aidan Salvi wrote:
I get a {CbFlt.ECBFltError} error when calling the AttachFilter function ont the Callback filter. The error is: "Cannot create a file when that file already exists"

What is the problems? Thanks.


Seems that you have invoke AttachFilter twice for the same filter object. You should call DetachFilter before doing this. Recheck this issue.

Quote
Aidan Salvi wrote:
If you have two instances of the filter object can you attachfilter to the same path within the same thread?


Yes.
#12699
Posted: 03/03/2010 17:15:32
by Aidan Salvi (Standard support level)
Joined: 11/27/2009
Posts: 14

I checked my code and no it does not call the same object's attachfilter twice. It does call attachfilter on two different objects for the same path. But the strange thing is that I did not have any problems using the previous version of the callback filter. To provide more detail after I get the errors, EVERY time it crashes the computer. Not with a blue screen, simply a reboot.

I do not have the older version, can you provide me that version to test to see if it still works.

What would cause the entire system to crash like that? I have tried it no both win 7 and win vista and both produce the same results in a crash.

Thanks
#12701
Posted: 03/03/2010 17:36:10
by Aidan Salvi (Standard support level)
Joined: 11/27/2009
Posts: 14

Now I get an error of "Insufficient system resources exist to complete the requested service." What does this mean?
#12702
Posted: 03/03/2010 17:52:15
by Vladimir Cherniga (EldoS Corp.)

Could you post a code snippet that demonstrate this problem. It will help to reproduce bug on our test machine. Thanks.
#12703
Posted: 03/03/2010 21:36:13
by Aidan Salvi (Standard support level)
Joined: 11/27/2009
Posts: 14

Finally figured out the specific reason for the issue. Take a look at this code sample. It fails on my machine (windows 7 32 bit) with an insufficient system resources error when i>=17.


For i As Integer = 1 To 20
Dim cfd As New CallbackFilter

With cfd
Dim filter As CbFlt.CbFltCallbackFlags
filter = filter Or CbFltCallbackFlags.CreateNotify
filter = filter Or CbFltCallbackFlags.RenameNotify
filter = filter Or CbFltCallbackFlags.WriteNotify
filter = filter Or CbFltCallbackFlags.DeleteNotify
filter = filter Or CbFltCallbackFlags.CloseNotify
filter = filter Or CbFltCallbackFlags.SetBasicInfoNotify

.AddFilterCallbackRule("c:\", filter)
End With

Try
cfd.AttachFilter(10000)
Catch ex As Exception
Throw
End Try
Next
#12704
Posted: 03/04/2010 02:10:25
by Vladimir Cherniga (EldoS Corp.)

Current version supports maximum 16 active filters simultaneously.
#12717
Posted: 03/04/2010 15:00:18
by Aidan Salvi (Standard support level)
Joined: 11/27/2009
Posts: 14

Is there a reason for this? This creates a problem in our entire architectural structure.We need to get a way around this as our application is already creating more than 16 instance within different process threads.
#12724
Posted: 03/05/2010 05:13:53
by Vladimir Cherniga (EldoS Corp.)

We will fix this issue in the nearest build. Sorry for the inconvenience.
Also by EldoS: SecureBlackbox
200+ components and classes for digital security, signing, encryption and secure networking.

Reply

Statistics

Topic viewed 8141 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!