×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Feb 2006
    Posts
    15

    Question Dll using problem in Carbide developer version

    Hi,

    I have tested Carbide Dev version and have a problem with dll.
    I have simple test project which use static interface dll. Projects compiles and working fine with Codewarrior in emulator and hw but not with Carbide.
    I imported main app and dll using mmp files in Carbide. I compiled both projects and they compiled fine. I started emulator and the program and it crashs. I started program in debugger and it crashs before any brekpoints:
    Thread [Thread id: 5788] (Suspended: Signal 'Exception 5' received. Description: Access Violation.)
    1 0xF880003( Parser.dll )() 0x0f880003

    What goes wrong??

    SDK is 2nd Edition FP2
    Carbide.c++ Version: 1.1 Build id: 47

  2. #2
    Nokia Developer Expert
    Join Date
    Dec 2004
    Location
    Austin, TX
    Posts
    399

    Re: Dll using problem in Carbide developer version

    Can you post the application your are trying to run?

    Tim

  3. #3
    Registered User
    Join Date
    Feb 2006
    Posts
    15

    Thumbs down Re: Dll using problem in Carbide developer version

    I can't sent the app source codes but I tested carpide also with minimal app and dll combination:
    DLL:
    ****************************************
    #ifndef __CENGINEDLL_H__
    #define __CENGINEDLL_H__

    #include e32base.h // base
    #include e32cons.h // konsole
    class CEngineDll : public CBase {
    public:

    IMPORT_C static CEngineDll* NewL();
    IMPORT_C void EngineMethod( CConsoleBase* console);
    ~CEngineDll() {};

    private:

    void ConstructL();
    CEngineDll() {};
    };

    #endif //__CENGINEDLL_H__
    ****************************************
    #include "enginedll.h"

    EXPORT_C CEngineDll* CEngineDll::NewL()
    {
    CEngineDll* self = new (ELeave) CEngineDll;
    CleanupStack::PushL(self);
    self->ConstructL();
    CleanupStack::Pop(self);
    return self;
    }
    void CEngineDll::ConstructL()
    {
    }

    EXPORT_C void CEngineDll::EngineMethod( CConsoleBase* console)
    {
    console->Printf(_L("In engine!!\n"));
    }

    // This function is mandatory for all DLLs
    GLDEF_C TInt E32Dll(TDllReason /*aReason*/)
    // DLL entry point
    {
    return(KErrNone);
    }

    ****************************************
    TEST CONSOLEexe:
    #include e32base.h // base
    #include e32cons.h // console

    #include "enginedll.h"


    void MainL()
    {
    CConsoleBase* console = Console::NewL(_L("Testi"),TSize(KConsFullScreen, KConsFullScreen));
    console->Printf(_L("create engine\n"));
    CEngineDll* engine = CEngineDll::NewL();
    console->Printf(_L("Engine created\n"));
    engine->EngineMethod( console );
    delete engine;
    console->Printf(_L("Engine destroyed\n"));
    console->Getch();
    }


    GLDEF_C TInt E32Main() // Entry point
    {
    //Luodaan siivouspino
    CTrapCleanup* cleanup = CTrapCleanup::New();
    TRAPD( error, MainL() );
    return 0;
    }

    ****************************************

    Same problem:
    Thread [Thread id: 3916] (Suspended: Signal 'Exception 5' received. Description: Access Violation.)
    1 0x320003( enginedll.dll )() 0x00320003


    Any compiled dll won't work in emulator?

  4. #4
    Registered User
    Join Date
    Feb 2006
    Posts
    15

    Angry Re: Dll using problem in Carbide developer version

    I tested carbide.c++ express and dll and apps works fine but not in carpide.c++ developer or pro version.

    Is there something wrong in Developer version?? I tried re-install SDK and Carpide.c++ developer version but it didnt help.

  5. #5
    Registered User
    Join Date
    Mar 2003
    Posts
    23

    Re: Dll using problem in Carbide developer version

    I have a similar problem. Have you managed to fix this?

    Thanks,

    Alex

  6. #6
    Super Contributor
    Join Date
    Mar 2004
    Location
    Czech Republic
    Posts
    2,037

    Re: Dll using problem in Carbide developer version

    Hi,

    i don't know how to help you... I have project with many dlls(10) and it works perfeclty - the only major difference is that I don't use console interface, so maybe this is source of the problem.

    Regards,
    STeN

  7. #7
    Regular Contributor
    Join Date
    Sep 2006
    Location
    Berlin
    Posts
    59

    'Exception 5' received. Description: Access Violation

    Quote Originally Posted by 3rdparty
    I tested carbide.c++ express and dll and apps works fine but not in carpide.c++ developer or pro version.

    Is there something wrong in Developer version?? I tried re-install SDK and Carpide.c++ developer version but it didnt help.
    Hello Nokia people, hello 3rdparty,

    did you get rid of this problem? Found a patch?
    I've experienced the same effect, but using the Carbide.c++ 1.1 Express. I don't have the Developer version.
    The error message looks similar to your one:
    Thread [Thread id: 1912] (Suspended: Signal 'Exception 5' received. Description: Access Violation.)
    1 0xE670003( SocketEngine.dll )() 0x0e670003
    I have compiled it on the command line using only Carbide's and the SDK's tools. (You need to set some environment variables to do so, look <a href="http://discussion.forum.nokia.com/forum/showthread.php?t=102966">here</a>.)
    This way the program runs without error.

    There's another thread about this effect:
    http://discussion.forum.nokia.com/fo...ad.php?t=93905

Similar Threads

  1. PC Suite error: (Code: Init IMediaControl2) HELP?!
    By chunkyspudmonkey in forum General Development Questions
    Replies: 29
    Last Post: 2008-06-30, 11:47
  2. NOKIA EXPERTS: Animation Dll Problem in 3rd Edition
    By can_bal99 in forum Symbian Media (Closed)
    Replies: 3
    Last Post: 2006-08-22, 12:11
  3. Dll deployment on device problem
    By iulian_moldovan in forum Symbian
    Replies: 6
    Last Post: 2006-02-14, 13:05
  4. nokia 7210 modem via IR doesn't work !
    By oussamaaiadi in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2003-03-06, 10:46
  5. Questions about version code in MMS protocol
    By wangzhong in forum General Messaging
    Replies: 1
    Last Post: 2002-11-21, 10:32

Posting Permissions

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