×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Nov 2009
    Posts
    56

    RLibrary::Close() definition?

    Hi.

    I load more than one dll with a RLibrary handle;

    RLibrary aLibrary;
    aLibrary.Load(...);
    aLibrary.Load(...);

    For Close(), SDK documentation says "The function decrements the usage count by one.", So would single aLibrary.Close() be enough to close both dlls? Thanks.

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,689

    Re: RLibrary::Close() definition?

    No. What you have is a resource leak (CONE 36 panic for GUI applications). For 2 .dll-s (at the same time), you should have 2 RLibrary objects, and Close both of them.

  3. #3
    Registered User
    Join Date
    Nov 2009
    Posts
    56

    Re: RLibrary::Close() definition?

    Will this resource leak cause that dll-s to stay open?

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,689

    Re: RLibrary::Close() definition?

    The kernel tracks ownership of handles, and closes them when a process/thread dies normally or abnormally. But writing error-free code is still suggested.

Similar Threads

  1. Replies: 35
    Last Post: 2010-02-26, 14:49
  2. Close Widget with Window.close() not working
    By stephen.cheung in forum Symbian
    Replies: 6
    Last Post: 2009-09-04, 09:54
  3. about RLibrary.load()
    By nuist320 in forum Symbian
    Replies: 6
    Last Post: 2009-05-26, 09:17
  4. RLibrary object
    By pornima in forum Symbian
    Replies: 13
    Last Post: 2009-02-12, 07:21
  5. Question about Rlibrary
    By steve.sun in forum Symbian
    Replies: 2
    Last Post: 2006-03-30, 09:36

Posting Permissions

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