EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Error 1008 on creating storage in Mapper Sample

Also by EldoS: CallbackFilter
A component to monitor and control disk activity, track file and directory operations (create, read, write, rename etc.), alter file data, encrypt files, create virtual files.
Posted: 11/10/2010 04:35:19
by Damien Obringer (Standard support level)
Joined: 03/10/2010
Posts: 2


The Mapper sample throw an exception, when I try to create a storage.
It occurs when calling
in btnCreateStorage_Click event.

Does anyone know the reason of this exception ?

Exception details :
Message : Tentative de référence à un jeton qui n’existe pas.
NativeErrorCode : 1008.

I'am using Visual Studio 2008, under Windows 7 64bits.
CbFS driver :
I am logged as local Administrator of the computer.
Posted: 11/10/2010 13:15:45
by Volodymyr Zinin (EldoS Corp.)

Hello Damien,

Does the problem exist only on one computer or it's reproducible on other machines? Have you ever had the Mapper sample to work successfully?
Posted: 11/16/2010 06:58:37
by Damien Obringer (Standard support level)
Joined: 03/10/2010
Posts: 2

Hello Vladimir,

I found the reason of problem.
I was using the wrong license key. I used a specific program license key instead of universal license key.

If I may say so, wouldn't be better to throw an exception on CallbackFileSystem.SetRegistrationKey(sRegKey) with "Wrong license key" as message ?

Thanks for your help.
Posted: 11/16/2010 07:17:56
by Eugene Mayevski (EldoS Corp.)

The key is processed in the kernel-mode driver, which can't throw exceptions or even report custom errors. It reports the NT Native API error code which is then translated to Win32 error and thrown as an exception.

Sincerely yours
Eugene Mayevski



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