Thread: 20$ for DSPK Memory leak fixed. [paying first]

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 20$ for DSPK Memory leak fixed. [paying first] 
    Registered Member
    Join Date
    Jan 2010
    Posts
    53
    Thanks given
    0
    Thanks received
    1
    Rep Power
    1
    I will pay the money first, you must be a well known/respected member here.
    I'm asking for a FULL fix and maximized stability.
    Reply With Quote  
     

  2. #2  
    Registered Member
    Coder Alex's Avatar
    Join Date
    Apr 2009
    Age
    30
    Posts
    1,755
    Thanks given
    86
    Thanks received
    83
    Rep Power
    231
    I can try to fix.
    My english skills back in the days.
    Quote Originally Posted by Coder Alex
    Well, if it's gooded decent, it's good.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Dec 2009
    Posts
    356
    Thanks given
    3
    Thanks received
    2
    Rep Power
    2
    Im willing to pay 20$ to for the same he wants
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Oct 2009
    Posts
    1,312
    Thanks given
    148
    Thanks received
    161
    Rep Power
    33
    Look at my project thread, I have it fixed. Pm me your msn.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Coder Alex's Avatar
    Join Date
    Apr 2009
    Age
    30
    Posts
    1,755
    Thanks given
    86
    Thanks received
    83
    Rep Power
    231
    PM me your MSN, I'l fix.

    Btw, brkownz, you can't just try { and } catch it, you need to add a garbage collector. (Just a small tip)
    My english skills back in the days.
    Quote Originally Posted by Coder Alex
    Well, if it's gooded decent, it's good.
    Reply With Quote  
     

  6. #6  
    Chemist

    Advocatus's Avatar
    Join Date
    Dec 2009
    Posts
    2,622
    Thanks given
    201
    Thanks received
    813
    Rep Power
    1462
    Quote Originally Posted by Coder Alex View Post
    PM me your MSN, I'l fix.

    Btw, brkownz, you can't just try { and } catch it, you need to add a garbage collector. (Just a small tip)
    Protip, if I recall the task manager doesn't get rid of old events. I am not sure because i just quick skimmed through though.
    Quote Originally Posted by blakeman8192 View Post
    Quitting is the only true failure.
    Reply With Quote  
     

  7. #7  
    Registered Member
    Coder Alex's Avatar
    Join Date
    Apr 2009
    Age
    30
    Posts
    1,755
    Thanks given
    86
    Thanks received
    83
    Rep Power
    231
    Made a simple memory leak.
    Code:
    import java.util.ArrayList;
    import java.util.List;
    public class Memory_leak {
    private static List<Integer> memoryLeak = new ArrayList<Integer>();
    public static void main(String args[]){
    	int counter = 0;
    	int garbageCollected = 0;
    	while (true){
    		try {
    		Integer payload = new Integer(counter);
    		memoryLeak.add(payload);
    		counter++;
    		
                 //USE THE CODE HERE!
    
    		if(memoryLeak != null){ 
    			memoryLeak.remove(payload);
    			garbageCollected++;
    		}
    			
    		
    		} catch(java.lang.OutOfMemoryError e){
    			System.out.println("Memory leak: collected "+garbageCollected);
    			System.exit(1);
    		} 
    		
    
        }
     }
    
    }
    My english skills back in the days.
    Quote Originally Posted by Coder Alex
    Well, if it's gooded decent, it's good.
    Reply With Quote  
     

  8. Thankful user:


  9. #8  
    Super Donator

    Jack Daniels's Avatar
    Join Date
    Oct 2010
    Posts
    1,842
    Thanks given
    787
    Thanks received
    507
    Rep Power
    412
    Quote Originally Posted by Coder Alex View Post
    Made a simple memory leak.
    Code:
    import java.util.ArrayList;
    import java.util.List;
    public class Memory_leak {
    private static List<Integer> memoryLeak = new ArrayList<Integer>();
    public static void main(String args[]){
    	int counter = 0;
    	int garbageCollected = 0;
    	while (true){
    		try {
    		Integer payload = new Integer(counter);
    		memoryLeak.add(payload);
    		counter++;
    		
                 //USE THE CODE HERE!
    
    		if(memoryLeak != null){ 
    			memoryLeak.remove(payload);
    			garbageCollected++;
    		}
    			
    		
    		} catch(java.lang.OutOfMemoryError e){
    			System.out.println("Memory leak: collected "+garbageCollected);
    			System.exit(1);
    		} 
    		
    
        }
     }
    
    }
    Can u explain me why this is a memory leak , I dont realy get it
    You make an arraylist
    create 2 variables and set them to 0
    then make an infinite loop
    in which u make payload equal to counter (0)
    u add payload( = 0) to the arraylist
    then u remove the index 0 from the arraylist


    New Skype : samar.server
    Reply With Quote  
     

  10. #9  
    Registered Member
    Coder Alex's Avatar
    Join Date
    Apr 2009
    Age
    30
    Posts
    1,755
    Thanks given
    86
    Thanks received
    83
    Rep Power
    231
    It doesnt only add 0, it goes up , every 600 ms, there's a
    Code:
    counter++;
    the yellow zone, is where you can use your code.

    try running it without

    Code:
    if(memoryLeak != null){ 
    			memoryLeak.remove(payload);
    			garbageCollected++;
    		}
    and see the difference.
    My english skills back in the days.
    Quote Originally Posted by Coder Alex
    Well, if it's gooded decent, it's good.
    Reply With Quote  
     

  11. #10  
    RuneFatality

    Join Date
    May 2009
    Age
    27
    Posts
    2,350
    Thanks given
    1,099
    Thanks received
    388
    Rep Power
    531
    I've not looked at DSPK, but by the things you're making to fix this 'memory leak' I can already tell it's fucking awful.
    Reply With Quote  
     

  12. Thankful user:


Page 1 of 2 12 LastLast

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. Selling DSPK memory leak fix 25$
    By blood eater in forum Selling
    Replies: 13
    Last Post: 03-19-2011, 12:47 AM
  2. Project insanity (dspk) - Memory leak
    By Leanbow in forum Selling
    Replies: 16
    Last Post: 02-21-2011, 09:59 PM
  3. [DSPK] memory leak![DSPK]
    By blood eater in forum Help
    Replies: 27
    Last Post: 02-18-2011, 03:50 PM
  4. Replies: 5
    Last Post: 02-01-2011, 09:24 AM
  5. Replies: 10
    Last Post: 01-16-2011, 12:26 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
  •