×

Discussion Board

Results 1 to 2 of 2

Thread: Heap SIze issue

  1. #1
    Registered User
    Join Date
    Nov 2004
    Posts
    5

    Question Heap SIze issue

    I am working on a video application which allocates 2 chunks of ~450kb memory on the heap using the USER::Alloc() method, the problem i am facing is that, the USER::Alloc() returns NULL for the second allocation, seems like the heap associated with the thread is not sufficient.
    Where is the max heap size defined ?? unfortunately i dont have ource code for the app (.exe) which calls my DLL's.
    is their a default heap size ?? or do we have to define it for every app ??

  2. #2
    Registered User
    Join Date
    Feb 2006
    Location
    Espoo, Finland
    Posts
    43

    Re: Heap SIze issue

    in creating thread u r passing a MaxHeapSize:

    TInt Create(const TDesC& aName,TThreadFunction aFunction,TInt aStackSize,TInt aHeapMinSize,TInt aHeapMaxSize,TAny *aPtr,TOwnerType aType=EOwnerProcess);

    TInt aHeapMinSize The minimum size for the new thread's heap; this value must be greater than or equal to KMinHeapSize, defined in e32std.h, otherwise the function raises a USER 110 panic.

    TInt aHeapMaxSize The maximum size for the new thread's heap; this value must be greater than or equal to aHeapMinSize, otherwise the function raises a USER 111 panic.

    If you need to change that size in dll try using :
    SetInitialParameter()

Posting Permissions

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