×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 30
  1. #1
    Regular Contributor
    Join Date
    May 2003
    Posts
    471

    Problems with FileLogger

    Hi All,

    I have downloaded the FileLogger from the Wiki, build it as follows:
    abld build gcce urel
    abld freeze
    abld build gcce urel

    In my app:
    #include <filelogger.h>
    LOGTXT ("hello world");

    In my pkg file:
    "C:\Symbian\9.2\S60_3rd_FP1\epoc32\release\gcce\urel\FileLogger.dll" -"!:\sys\bin\FileLogger.dll"

    In my mmp file :
    LIBRARY FileLogger.lib


    On the device I have created the folder logs under c.
    but the log file has not been created.

    Any Ideals?

    Thanks,
    Nahum

  2. #2
    Super Contributor
    Join Date
    Mar 2008
    Posts
    1,481

    Re: Problems with FileLogger

    Do this it will work.

    Step 1.
    Create a file debug.h and include it in your cpp file with the following contents.

    Code:
    #ifndef DEBUG_LOGGING_H
    #define DEBUG_LOGGING_H
    
    #define PRJ_FILE_TRACE
    
    #ifdef _DEBUG
    #define PRJ_ENABLE_TRACE
    #endif
    
    #ifdef PRJ_FILE_TRACE
    #include <flogger.h>
    #else
    #include <e32debug.h>
    #endif
    
    
    
    #ifdef PRJ_FILE_TRACE
    _LIT(KLogFile,"nt.txt");
    _LIT(KLogDir,"NT");
    #endif
    
    #ifdef PRJ_ENABLE_TRACE
    _LIT(KTracePrefix16, "[NT] ");
    _LIT8(KTracePrefix8, "[NT] ");
    _LIT8(KFuncFormat8, "><%S");
    _LIT8(KFuncThisFormat8, "><%S, [0x%08X]");
    _LIT8(KFuncEntryFormat8, ">%S");
    _LIT8(KFuncEntryThisFormat8, ">%S, [0x%08X]");
    _LIT8(KFuncExitFormat8, "<%S");
    
    _LIT(KPanicCategory, "BTMsgDll Own");    
    _LIT8(KPanicPrefix8, "PANIC code ");
    _LIT8(KLeavePrefix8, "LEAVE code ");
    
    
    
    const TInt KMaxLogLineLength = 512;
    
    #define KPRINTERROR        0x00000001 // Tracing level: error
    #define KPRINTINFO        0x00000002 // Tracing level: function trace
    #define KPRINTSTATE        0x00000004 // Tracing level: state machine info
    #define KPRINTWARNING   0x00000008 // Tracing level: warning
    
    const TInt KTraceMask = KPRINTERROR | KPRINTINFO | KPRINTSTATE | KPRINTWARNING;
    
    NONSHARABLE_CLASS(TOverflowTruncate16) : public TDes16Overflow
        {
    public:
        void Overflow(TDes16& /*aDes*/) {}
        };
    
    NONSHARABLE_CLASS(TOverflowTruncate8) : public TDes8Overflow
        {
    public:
        void Overflow(TDes8& /*aDes*/) {}
        };
    
    inline void Trace(TRefByValue<const TDesC16> aFmt, ...)
        {
        VA_LIST list;
        VA_START(list,aFmt);
    #ifdef PRJ_FILE_TRACE
        RFileLogger::WriteFormat(KLogDir, KLogFile, EFileLoggingModeAppend, aFmt, list);
    #else
        TBuf16<KMaxLogLineLength> theFinalString;
        theFinalString.Append(KTracePrefix16);
        TOverflowTruncate16 overflow;
        theFinalString.AppendFormatList(aFmt,list,&overflow);
        RDebug::Print(theFinalString);
    #endif
        }
    
    inline void Trace(TRefByValue<const TDesC8> aFmt, ...)
        {
        VA_LIST list;
        VA_START(list, aFmt);
    #ifdef PRJ_FILE_TRACE
        RFileLogger::WriteFormat(KLogDir, KLogFile, EFileLoggingModeAppend, aFmt, list);
    #else
        TOverflowTruncate8 overflow;
        TBuf8<KMaxLogLineLength> buf8;
        buf8.Append(KTracePrefix8);
        buf8.AppendFormatList(aFmt, list, &overflow);
        TBuf16<KMaxLogLineLength> buf16(buf8.Length());
        buf16.Copy(buf8);
        TRefByValue<const TDesC> tmpFmt(_L("%S"));
        RDebug::Print(tmpFmt, &buf16);
    #endif
        }
    
    inline void TracePanic(
        char* aFile, 
        TInt aLine,
        TInt aPanicCode,
        const TDesC& aPanicCategory)
        {
        TPtrC8 fullFileName((const TUint8*)aFile);
        TPtrC8 fileName(fullFileName.Ptr()+fullFileName.LocateReverse('\\')+1);
        TBuf8<KMaxLogLineLength> buf;
        buf.Append(KPanicPrefix8);
        buf.AppendFormat(_L8("%d at line %d in file %S"), aPanicCode, aLine, &fileName);
        Trace(buf);
        User::Panic(aPanicCategory, aPanicCode); 
        }
    
    inline void TraceLeave(char* aFile, TInt aLine, TInt aReason)
        {
        TPtrC8 fullFileName((const TUint8*)aFile);
        TPtrC8 fileName(fullFileName.Ptr()+fullFileName.LocateReverse('\\')+1);
        TBuf8<KMaxLogLineLength> buf;
        buf.Append(KLeavePrefix8);
        buf.AppendFormat(_L8("%d at line %d in file %S"), aReason, aLine, &fileName);
        Trace(buf);
        User::LeaveIfError(aReason);
        }
    
    #define TRACE_INFO(p) {if(KTraceMask & KPRINTINFO) Trace p;}
    
    #define TRACE_ERROR(p) {if(KTraceMask & KPRINTERROR) Trace p;}
    
    #define TRACE_STATE(p) {if(KTraceMask & KPRINTSTATE) Trace p;}
    
    #define TRACE_WARNING(p) {if(KTraceMask & KPRINTWARNING) Trace p;}
    
    #define TRACE_INFO_SEG(p) {if(KTraceMask & KPRINTINFO) p;}
    
    #define TRACE_ASSERT(GUARD, CODE) {if (!(GUARD)) TracePanic(__FILE__, __LINE__, CODE, KPanicCategory);}
    
    #define PANIC(CODE) TracePanic(__FILE__, __LINE__, CODE, KPanicCategory)
    
    #define LEAVE_IF_ERROR(REASON) {if (REASON) TraceLeave(__FILE__, __LINE__, REASON);}
    
    #define LEAVE(REASON) {TraceLeave(__FILE__, __LINE__, REASON);}
    
    #define TRACE_FUNC_ENTRY {if(KTraceMask & KPRINTINFO) { TPtrC8 ptr8((TUint8*)__PRETTY_FUNCTION__); Trace(KFuncEntryFormat8, &ptr8);}}
    
    #define TRACE_FUNC_ENTRY_THIS {if(KTraceMask & KPRINTINFO) { TPtrC8 ptr8((TUint8*)__PRETTY_FUNCTION__); Trace(KFuncEntryThisFormat8, &ptr8, this);}}
    
    #define TRACE_FUNC_EXIT {if(KTraceMask & KPRINTINFO) { TPtrC8 ptr8((TUint8*)__PRETTY_FUNCTION__); Trace(KFuncExitFormat8, &ptr8);}}
    
    #define TRACE_FUNC {if(KTraceMask & KPRINTINFO) { TPtrC8 ptr8((TUint8*)__PRETTY_FUNCTION__); Trace(KFuncFormat8, &ptr8);}}
    
    #define TRACE_FUNC_THIS {if(KTraceMask & KPRINTINFO) { TPtrC8 ptr8((TUint8*)__PRETTY_FUNCTION__); Trace(KFuncThisFormat8, &ptr8, this);}}
    
    #define RETURN_IF_ERR(ERR) {if(ERR) {TPtrC8 ptr8((TUint8*)__FILE__); Trace(_L8(" RETURN %d at file %S line %d"), ERR, &ptr8, __LINE__); return ERR;}}
    
    #else // PRJ_ENABLE_TRACE not defined
    
    #define TRACE_INFO(p)
    
    #define TRACE_ERROR(p)
    
    #define TRACE_STATE(p)
    
    #define TRACE_WARNING(p)
    
    #define TRACE_INFO_SEG(p)
    
    #define TRACE_ASSERT(GUARD, CODE)
    
    #define PANIC(CODE) {User::Panic(KPanicCategory, CODE);}
    
    #define LEAVE_IF_ERROR(REASON) {static_cast<void>(User::LeaveIfError(REASON));}
    
    #define LEAVE(REASON) {static_cast<void>(User::Leave(REASON));}
    
    #define TRACE_FUNC_ENTRY
    
    #define TRACE_FUNC_ENTRY_THIS
    
    #define TRACE_FUNC_EXIT
    
    #define TRACE_FUNC
    
    #define TRACE_FUNC_THIS
    
    #define RETURN_IF_ERR(ERR) {if(ERR) return ERR;}
    #endif // PRJ_ENABLE_TRACE
    
    #endif // DEBUG_LOGGING_H
    Step 2
    In mmp file include this line
    DEBUGLIBRARY flogger.lib

    Step 3
    Create folder in phone c drive c:\logs\nt

    Step 4
    In your CPP file at the beginning of functions put
    TRACE_FUNC_ENTRY

    and before leaving the function put
    TRACE_FUNC_EXIT
    //exacple_fn()
    {
    TRACE_FUNC_ENTRY
    statement..
    ...
    TRACE_FUNC_EXIT
    }

    Step 5

    abld build gcce udeb
    Makesis/sign
    Send app to phone

    See in the phone's c:\logs\nt folder there is a file called nt.txt that you can use to debug.

  3. #3
    Regular Contributor
    Join Date
    May 2003
    Posts
    471

    Re: Problems with FileLogger

    Thanks, but I need something to log simple messages.

  4. #4
    Super Contributor
    Join Date
    Mar 2008
    Posts
    1,481

    Re: Problems with FileLogger

    Copy/edit the part that you need from there. The code can be used for both emulator and Phone

  5. #5
    Registered User
    Join Date
    Aug 2010
    Posts
    20

    Re: Problems with FileLogger

    Quote Originally Posted by mahbub_s60 View Post
    Do this it will work.

    Step 1.
    Create a file debug.h and include it in your cpp file with the following contents.

    Code:
    #ifndef DEBUG_LOGGING_H
    #define DEBUG_LOGGING_H
    
    #define PRJ_FILE_TRACE
    
    #ifdef _DEBUG
    #define PRJ_ENABLE_TRACE
    #endif
    
    #ifdef PRJ_FILE_TRACE
    #include <flogger.h>
    #else
    #include <e32debug.h>
    #endif
    
    
    
    #ifdef PRJ_FILE_TRACE
    _LIT(KLogFile,"nt.txt");
    _LIT(KLogDir,"NT");
    #endif
    
    #ifdef PRJ_ENABLE_TRACE
    _LIT(KTracePrefix16, "[NT] ");
    _LIT8(KTracePrefix8, "[NT] ");
    _LIT8(KFuncFormat8, "><%S");
    _LIT8(KFuncThisFormat8, "><%S, [0x%08X]");
    _LIT8(KFuncEntryFormat8, ">%S");
    _LIT8(KFuncEntryThisFormat8, ">%S, [0x%08X]");
    _LIT8(KFuncExitFormat8, "<%S");
    
    _LIT(KPanicCategory, "BTMsgDll Own");    
    _LIT8(KPanicPrefix8, "PANIC code ");
    _LIT8(KLeavePrefix8, "LEAVE code ");
    
    
    
    const TInt KMaxLogLineLength = 512;
    
    #define KPRINTERROR        0x00000001 // Tracing level: error
    #define KPRINTINFO        0x00000002 // Tracing level: function trace
    #define KPRINTSTATE        0x00000004 // Tracing level: state machine info
    #define KPRINTWARNING   0x00000008 // Tracing level: warning
    
    const TInt KTraceMask = KPRINTERROR | KPRINTINFO | KPRINTSTATE | KPRINTWARNING;
    
    NONSHARABLE_CLASS(TOverflowTruncate16) : public TDes16Overflow
        {
    public:
        void Overflow(TDes16& /*aDes*/) {}
        };
    
    NONSHARABLE_CLASS(TOverflowTruncate8) : public TDes8Overflow
        {
    public:
        void Overflow(TDes8& /*aDes*/) {}
        };
    
    inline void Trace(TRefByValue<const TDesC16> aFmt, ...)
        {
        VA_LIST list;
        VA_START(list,aFmt);
    #ifdef PRJ_FILE_TRACE
        RFileLogger::WriteFormat(KLogDir, KLogFile, EFileLoggingModeAppend, aFmt, list);
    #else
        TBuf16<KMaxLogLineLength> theFinalString;
        theFinalString.Append(KTracePrefix16);
        TOverflowTruncate16 overflow;
        theFinalString.AppendFormatList(aFmt,list,&overflow);
        RDebug::Print(theFinalString);
    #endif
        }
    
    inline void Trace(TRefByValue<const TDesC8> aFmt, ...)
        {
        VA_LIST list;
        VA_START(list, aFmt);
    #ifdef PRJ_FILE_TRACE
        RFileLogger::WriteFormat(KLogDir, KLogFile, EFileLoggingModeAppend, aFmt, list);
    #else
        TOverflowTruncate8 overflow;
        TBuf8<KMaxLogLineLength> buf8;
        buf8.Append(KTracePrefix8);
        buf8.AppendFormatList(aFmt, list, &overflow);
        TBuf16<KMaxLogLineLength> buf16(buf8.Length());
        buf16.Copy(buf8);
        TRefByValue<const TDesC> tmpFmt(_L("%S"));
        RDebug::Print(tmpFmt, &buf16);
    #endif
        }
    
    inline void TracePanic(
        char* aFile, 
        TInt aLine,
        TInt aPanicCode,
        const TDesC& aPanicCategory)
        {
        TPtrC8 fullFileName((const TUint8*)aFile);
        TPtrC8 fileName(fullFileName.Ptr()+fullFileName.LocateReverse('\\')+1);
        TBuf8<KMaxLogLineLength> buf;
        buf.Append(KPanicPrefix8);
        buf.AppendFormat(_L8("%d at line %d in file %S"), aPanicCode, aLine, &fileName);
        Trace(buf);
        User::Panic(aPanicCategory, aPanicCode); 
        }
    
    inline void TraceLeave(char* aFile, TInt aLine, TInt aReason)
        {
        TPtrC8 fullFileName((const TUint8*)aFile);
        TPtrC8 fileName(fullFileName.Ptr()+fullFileName.LocateReverse('\\')+1);
        TBuf8<KMaxLogLineLength> buf;
        buf.Append(KLeavePrefix8);
        buf.AppendFormat(_L8("%d at line %d in file %S"), aReason, aLine, &fileName);
        Trace(buf);
        User::LeaveIfError(aReason);
        }
    
    #define TRACE_INFO(p) {if(KTraceMask & KPRINTINFO) Trace p;}
    
    #define TRACE_ERROR(p) {if(KTraceMask & KPRINTERROR) Trace p;}
    
    #define TRACE_STATE(p) {if(KTraceMask & KPRINTSTATE) Trace p;}
    
    #define TRACE_WARNING(p) {if(KTraceMask & KPRINTWARNING) Trace p;}
    
    #define TRACE_INFO_SEG(p) {if(KTraceMask & KPRINTINFO) p;}
    
    #define TRACE_ASSERT(GUARD, CODE) {if (!(GUARD)) TracePanic(__FILE__, __LINE__, CODE, KPanicCategory);}
    
    #define PANIC(CODE) TracePanic(__FILE__, __LINE__, CODE, KPanicCategory)
    
    #define LEAVE_IF_ERROR(REASON) {if (REASON) TraceLeave(__FILE__, __LINE__, REASON);}
    
    #define LEAVE(REASON) {TraceLeave(__FILE__, __LINE__, REASON);}
    
    #define TRACE_FUNC_ENTRY {if(KTraceMask & KPRINTINFO) { TPtrC8 ptr8((TUint8*)__PRETTY_FUNCTION__); Trace(KFuncEntryFormat8, &ptr8);}}
    
    #define TRACE_FUNC_ENTRY_THIS {if(KTraceMask & KPRINTINFO) { TPtrC8 ptr8((TUint8*)__PRETTY_FUNCTION__); Trace(KFuncEntryThisFormat8, &ptr8, this);}}
    
    #define TRACE_FUNC_EXIT {if(KTraceMask & KPRINTINFO) { TPtrC8 ptr8((TUint8*)__PRETTY_FUNCTION__); Trace(KFuncExitFormat8, &ptr8);}}
    
    #define TRACE_FUNC {if(KTraceMask & KPRINTINFO) { TPtrC8 ptr8((TUint8*)__PRETTY_FUNCTION__); Trace(KFuncFormat8, &ptr8);}}
    
    #define TRACE_FUNC_THIS {if(KTraceMask & KPRINTINFO) { TPtrC8 ptr8((TUint8*)__PRETTY_FUNCTION__); Trace(KFuncThisFormat8, &ptr8, this);}}
    
    #define RETURN_IF_ERR(ERR) {if(ERR) {TPtrC8 ptr8((TUint8*)__FILE__); Trace(_L8(" RETURN %d at file %S line %d"), ERR, &ptr8, __LINE__); return ERR;}}
    
    #else // PRJ_ENABLE_TRACE not defined
    
    #define TRACE_INFO(p)
    
    #define TRACE_ERROR(p)
    
    #define TRACE_STATE(p)
    
    #define TRACE_WARNING(p)
    
    #define TRACE_INFO_SEG(p)
    
    #define TRACE_ASSERT(GUARD, CODE)
    
    #define PANIC(CODE) {User::Panic(KPanicCategory, CODE);}
    
    #define LEAVE_IF_ERROR(REASON) {static_cast<void>(User::LeaveIfError(REASON));}
    
    #define LEAVE(REASON) {static_cast<void>(User::Leave(REASON));}
    
    #define TRACE_FUNC_ENTRY
    
    #define TRACE_FUNC_ENTRY_THIS
    
    #define TRACE_FUNC_EXIT
    
    #define TRACE_FUNC
    
    #define TRACE_FUNC_THIS
    
    #define RETURN_IF_ERR(ERR) {if(ERR) return ERR;}
    #endif // PRJ_ENABLE_TRACE
    
    #endif // DEBUG_LOGGING_H
    Step 2
    In mmp file include this line
    DEBUGLIBRARY flogger.lib

    Step 3
    Create folder in phone c drive c:\logs\nt

    Step 4
    In your CPP file at the beginning of functions put
    TRACE_FUNC_ENTRY

    and before leaving the function put
    TRACE_FUNC_EXIT
    //exacple_fn()
    {
    TRACE_FUNC_ENTRY
    statement..
    ...
    TRACE_FUNC_EXIT
    }

    Step 5

    abld build gcce udeb
    Makesis/sign
    Send app to phone

    See in the phone's c:\logs\nt folder there is a file called nt.txt that you can use to debug.

    Hello All

    I want to use the filelogger to save the values from the Phone compass application.
    I have some questions.

    1. after creation of debug.h file, which cpp file I should used to include the contents of debug.hh "Is it filelogger.cpp"

    2. In which mmp file I should include DEBUGLIBRARY flogger.lib "is it filelogger.mmp"

    4. In which cpp file I should include
    TRACE_FUNC_EXIT and TRACE_FUNC_ENTRY "is it filelogger.cpp or phonecompassapp.cpp"

    waiting for kind reply

  6. #6
    Super Contributor
    Join Date
    Mar 2008
    Posts
    1,481

    Re: Problems with FileLogger

    I want to use the filelogger to save the values from the Phone compass application.
    I have some questions.

    1. after creation of debug.h file, which cpp file I should used to include the contents of debug.hh "Is it filelogger.cpp"

    You include debug.h in your cpp file and put the debug.h in the inc folder

    2. In which mmp file I should include DEBUGLIBRARY flogger.lib "is it filelogger.mmp"
    Use this in your own mmp file


    4. In which cpp file I should include
    TRACE_FUNC_EXIT and TRACE_FUNC_ENTRY "is it filelogger.cpp or phonecompassapp.cpp"
    TRACE_FUNC_EXIT and TRACE_FUNC_ENTRY can be used at the end of some function and at the beginning of some function.
    But probably you want to save some value you can use this
    TRACE_INFO((_L("My angle = %lf "), iAngle ))
    You need to create a folder c:\logs\nt and when you run your app there will be nt.txt where My angle = 30.5 (for example will be printed)

  7. #7
    Registered User
    Join Date
    Aug 2010
    Posts
    20

    Re: Problems with FileLogger

    Quote Originally Posted by mahbub_s60 View Post
    I want to use the filelogger to save the values from the Phone compass application.
    I have some questions.

    1. after creation of debug.h file, which cpp file I should used to include the contents of debug.hh "Is it filelogger.cpp"

    You include debug.h in your cpp file and put the debug.h in the inc folder

    2. In which mmp file I should include DEBUGLIBRARY flogger.lib "is it filelogger.mmp"
    Use this in your own mmp file


    4. In which cpp file I should include
    TRACE_FUNC_EXIT and TRACE_FUNC_ENTRY "is it filelogger.cpp or phonecompassapp.cpp"
    TRACE_FUNC_EXIT and TRACE_FUNC_ENTRY can be used at the end of some function and at the beginning of some function.
    But probably you want to save some value you can use this
    TRACE_INFO((_L("My angle = %lf "), iAngle ))
    You need to create a folder c:\logs\nt and when you run your app there will be nt.txt where My angle = 30.5 (for example will be printed)
    Still I am not clear.

    which cpp file should i use to add the contents of debugg.h "is it filelogger.cpp or phonecompassapplication.cpp". I am stuck upto this point.

    Regards
    Abdul

  8. #8
    Super Contributor
    Join Date
    Mar 2008
    Posts
    1,481

    Re: Problems with FileLogger

    Hi,
    In the top of file

    #include "debug.h"

    Try in PhoneCompassAppView.cpp
    void CPhoneCompassAppView::AngleAndAccuracyReceivedL(TInt aAngle, TInt aAccuracyLevel)
    {
    TRACE_INFO((_L("My angle = %d, accuracy = %d "), aAngle, aAccuracyLevel))

  9. #9
    Registered User
    Join Date
    Aug 2010
    Posts
    20

    Re: Problems with FileLogger

    Quote Originally Posted by abdul_qudoos2003 View Post
    Hello All

    I want to use the filelogger to save the values from the Phone compass application.
    I have some questions.

    1. after creation of debug.h file, which cpp file I should used to include the contents of debug.hh "Is it filelogger.cpp"

    2. In which mmp file I should include DEBUGLIBRARY flogger.lib "is it filelogger.mmp"

    4. In which cpp file I should include
    TRACE_FUNC_EXIT and TRACE_FUNC_ENTRY "is it filelogger.cpp or phonecompassapp.cpp"

    waiting for kind reply
    Hello

    Thanks alot, Now I got the four steps and need help to proceed with the

    Step 5
    abld build gcce udeb
    Makesis/sign
    Send app to phone

    One more question, where is the usage of filelogger here, I didnot notice any where, can you explain the purpose of filelogger here.

    Regards
    Abdul

  10. #10
    Super Contributor
    Join Date
    Mar 2008
    Posts
    1,481

    Re: Problems with FileLogger

    Step 5 is shows here as done from command line, you can do the same from carbide also.
    Let's say you are using carbide to create sis file and if you don't have (key and certificate ) you can use symbian signed with your phone's IMEI ID.
    Take a look in this page
    https://www.symbiansigned.com/app/pa...ignedOnline.do

  11. #11
    Registered User
    Join Date
    Aug 2010
    Posts
    20

    Re: Problems with FileLogger

    Quote Originally Posted by mahbub_s60 View Post
    Step 5 is shows here as done from command line, you can do the same from carbide also.
    Let's say you are using carbide to create sis file and if you don't have (key and certificate ) you can use symbian signed with your phone's IMEI ID.
    Take a look in this page
    https://www.symbiansigned.com/app/pa...ignedOnline.do
    thanks alot for helping me sir, Now I am clear with step 5 also

    But the problem is that after following all the steps when I am to going to build the PhoneCompassAppliation using carbide, it shows me the following four errors every time, can you guide me for this what to do next.

    Description Resource Path Location Type

    * cpp failed PhoneCompass Unknown C/C++ Problem

    eikon.rh: No such file or directory PhoneCompass.rss /PhoneCompass/data line 14 C/C++ Problem

    avkon.rh: No such file or directory PhoneCompass.rss /PhoneCompass/data line 16 C/C++ Problem

    PhoneCompass_0xE456A68B.rsg: PhoneCompass_reg.rss /PhoneCompass/data line 13 C/C++ Problem
    No such file or directory

    Regards
    Abdul

  12. #12
    Super Contributor
    Join Date
    Mar 2008
    Posts
    1,481

    Re: Problems with FileLogger

    You should try first with 5th edition SDK, probably you are trying Symbian^3 SDK?
    I am sure it works with 5th edition SDK

  13. #13
    Registered User
    Join Date
    Aug 2010
    Posts
    20

    Re: Problems with FileLogger

    Quote Originally Posted by mahbub_s60 View Post
    You should try first with 5th edition SDK, probably you are trying Symbian^3 SDK?
    I am sure it works with 5th edition SDK
    Hello
    previously I used Symbian 3rd edition SDK, but I also tried with the [S60_5th_Edition_SDK_v1.0].
    When I am building the application PhoneCompass, it builds successfully without anu error in following casses
    1. Building Phonecompass phone debugg (GCCE) [S60_5th_Edition_SDK_v1.0]
    2. Building phonecompass Phone release (GCCE) [S60_5th_Edition_SDK_v1.0]

    After that when I run the application, it gives me the same error in the above 2 casses
    Error: Launching phoneCompass Phone Debugg/Release (GCCE) [S60_5th_Edition_SDK_v1.0], has encountered a problem. Target request failed TRK protocol Plugin: unable to open the communication port (Port may be used by another application or seleected port may not be available) some time (TRK may not be avaialable on the Phone or the selected and connected com ports are mismatched)
    Can you help me to get rid of this problem.

    Regards
    Abdul

  14. #14
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,956

    Re: Problems with FileLogger

    well that error appears when you try press the Run button of the IDE in the phone debug mode & there is no availble TRK application on the target device(necessary for debugging application on device) . Build the application for GCCE UREL not for GCCE DEBUG

  15. #15
    Registered User
    Join Date
    Aug 2010
    Posts
    20

    Re: Problems with FileLogger

    Quote Originally Posted by vineet.jain View Post
    well that error appears when you try press the Run button of the IDE in the phone debug mode & there is no availble TRK application on the target device(necessary for debugging application on device) . Build the application for GCCE UREL not for GCCE DEBUG
    Hi,

    But I installed the TRK application on my device, then y its giving the same error.
    anyway can you guide me how to build the application using GCCE UREL.

Page 1 of 2 12 LastLast

Similar Threads

  1. Several problems with NMIT 4.1
    By jtalviva in forum Mobile Web Site Development
    Replies: 1
    Last Post: 2006-03-20, 13:00
  2. Several problems with NMIT 4.1
    By jtalviva in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2006-03-10, 10:59
  3. Series 60 CustomItem implementation problems?
    By fotis.chatzinikos in forum Mobile Java General
    Replies: 2
    Last Post: 2005-03-10, 15:48
  4. Problems with Developer Suite 2.2 and PC Suite 6.41.6
    By caiox in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2005-02-20, 18:53
  5. NGage devkit problems
    By cambion in forum Symbian C++
    Replies: 3
    Last Post: 2004-12-07, 07:50

Posting Permissions

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