Thread: is this a memory leak?

Results 1 to 2 of 2
  1. #1 is this a memory leak? 
    Registered Member
    Join Date
    Dec 2013
    Posts
    20
    Thanks given
    1
    Thanks received
    0
    Rep Power
    11
    i might not be the most professional programmer ever but is this how this code is supposed to be here?
    Code:
    if(event.isRunning()) {
    					event.execute();
    				} else {
    					return;
    				}
    this is in the event manager in the hyperion source. i could be wrong but i don't understand that return. just confuses me a little as to what its returning. could someone explain?
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Nov 2013
    Posts
    175
    Thanks given
    106
    Thanks received
    1,050
    Rep Power
    164
    Quote Originally Posted by dark 1075 View Post
    i might not be the most professional programmer ever but is this how this code is supposed to be here?
    Code:
    if(event.isRunning()) {
    					event.execute();
    				} else {
    					return;
    				}
    this is in the event manager in the hyperion source. i could be wrong but i don't understand that return. just confuses me a little as to what its returning. could someone explain?
    No. If the event is running, then execute it. If it's not running, then return and don't do anything unless the method is next called. At which point it will do the same.
    Reply With Quote  
     

  3. Thankful user:



Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. PI memory leak, which one is less laggy?
    By Fridder in forum Help
    Replies: 5
    Last Post: 04-10-2011, 05:15 PM
  2. [PI]Memory Leak , What is causing it
    By Jack Daniels in forum Help
    Replies: 4
    Last Post: 02-15-2011, 12:19 PM
  3. Replies: 0
    Last Post: 02-15-2011, 12:11 AM
  4. Replies: 6
    Last Post: 02-13-2011, 04:18 PM
  5. Replies: 1
    Last Post: 02-06-2011, 11:52 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •