×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Super Contributor
    Join Date
    Jun 2004
    Location
    SymbianLand
    Posts
    763

    [PLS IGNORE]Wierd Panic Code : dbms:UD_DRVR.CPP 401 ????

    Hi,
    I have made a simple program which tries to encrypt the Symbian native
    database using my own encryption routine.
    I attempted doing this by Writing my own class which was derived from
    CBoundedSecurityBase.
    I gave dummy implementations to all the functions and also created classes
    derived from CSecurityEncryptBase & CSecurityDecryptBase.
    This is the usage of the code :
    Code:
    //Creating Encrpted database
    TBool usedEncrypter = EFalse;
    
    CSecurityBase* securityBase = CAesSecurity::NewL();
    securityBase->SetL(TPtrC(), KPassword); //Set the password for encryption
    
    // Get the key
    CSecurityEncryptBase* encryptBase = securityBase->NewEncryptL(TPtrC8());
    
    //Get the key
    CSecurityDecryptBase* decryptBase = securityBase->NewDecryptL(TPtrC8());
    
    TFileName DbFileName(KDBFile);
    //CompleteWithAppPath(DbFileName);
    
    TInt err = iDB.Open(iFs,DbFileName,TPtrC(),decryptBase);
    if(err != KErrNone)
    {
    err = iDB.Replace(iFs,DbFileName,TPtrC(),encryptBase);
    CreateTablesL();
    InsertRecordsInDBL();
    CompactDb();
    usedEncrypter = ETrue;
    }
    
    delete securityBase;
    if(!usedEncrypter)
    delete encryptBase;
    //delete decryptBase;
    Now it fails at this line
    Code:
    err = iDB.Replace(iFs,DbFileName,TPtrC(),encryptBase);
    and gives this wierd panic code.
    Has anybody tried something similar or knows the reasons for the same are
    welcome to elaborate.
    Thanks.
    --Mayur.
    Last edited by mayur_24; 2005-12-17 at 11:21.

  2. #2
    Super Contributor
    Join Date
    Jun 2004
    Location
    SymbianLand
    Posts
    763

    Re: Wierd Panic Code : dbms:UD_DRVR.CPP 401 ????

    Found the list of dbms panics from Symbian FAQs,but that did not include the
    panic I encountered :
    The dbms panic codes list can be found here:
    http://www3.symbian.com/faq.nsf/0/8F...6?OpenDocument

    Any help in the case would be greatly appreciated.
    Thanks.
    --Mayur.

Similar Threads

  1. wierd error code - 2147483647 on TCP receive
    By oledocmeth in forum Symbian Networking & Messaging (Closed)
    Replies: 44
    Last Post: 2007-10-26, 11:27
  2. eSock Panic 14 - but code works if using blocking User::WaitForRequest
    By lukas.pustina in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2004-05-14, 20:40
  3. Where is the reason code for a Panic shown?
    By edelsesto in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2003-07-02, 01:28
  4. SMS Panic Code
    By ilkas in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2002-08-27, 15:51
  5. Panic code: viewsvr 9
    By Nokia_Archive in forum Symbian
    Replies: 1
    Last Post: 2002-06-01, 20:15

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×