Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    May 2009

    openc ftp memory leakage

    when using open ftp API at the following manner:

    GLDEF_C TInt E32Main()
    CTrapCleanup* cleanupStack = CTrapCleanup::New();

    if (cleanupStack != NULL)
    char *command[] = {"send",

    qftp_main(10, command);
    delete cleanupStack;
    cleanupStack = NULL;
    __UHEAP_MARKEND; << here a panic is throw due memory leakage
    return KErrNone;

    Do anybody familiar with this problem?
    Anyway it seems this implementation of ftp is not so stable. Anyone knows another implementation of ftp at symbian? I was looking for that in the sdk and do not find.

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Oslo, Norway

    Re: openc ftp memory leakage

    You can try if HookLogger shows something more: http://developer.symbian.com, Developer tools (in Tools & SDKs. - And of course check the Leak tutorial).
    If for any reason you are using Symbian ESTLIB, it is documented that you would need to invoke CloseSTDLIB in order to cleanup its resources.

  3. #3
    Registered User
    Join Date
    Dec 2006

    Re: openc ftp memory leakage

    Open C allocates stuff in the background which is cleaned up when the application exits.

    So, you either need to use main() directly with libcrt0.lib linked in and do your heap marking inside there, or only mark the heap after your first use of an appropriate Open C function call. If not, you'll always get this error because the Open C stuff doesn't get allocated an initialised until you actually use it in a standard Symbian app without the "glue code".

Similar Threads

  1. OpenC FTP Client Example problems
    By steverino2 in forum Open C/C++
    Replies: 12
    Last Post: 2010-07-08, 14:16
  2. memory jump while running game
    By TacB0sS in forum Mobile Java Games
    Replies: 21
    Last Post: 2009-06-20, 11:56
  3. OpenC FTP connect on N92
    By steverino2 in forum Open C/C++
    Replies: 2
    Last Post: 2007-08-23, 00:06
  4. Memory leakage problem??
    By symnewbie in forum Symbian
    Replies: 1
    Last Post: 2005-06-10, 08:03
  5. can not successfully link any sample using .NET
    By lobotomat in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2002-08-20, 00:29

Posting Permissions

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