Results 1 to 2 of 2

Thread: Library C ดีๆในการช่วย Detect Memory Leak

  1. #1
    Administrator asylu3's Avatar
    Join Date
    Jun 2000
    Location
    Thailand
    Posts
    3,557


    การเขียนโปรแกรมนอกจากจะเขียนไม่ให้โปรแกรมมี Bug แล้วก็ต้องเขียนให้โปรแกรมทำงานให้มีประสิทธิภาพ
    ไม่กิน Resource เกินความเหมาะสมและที่สำคัญต้องใช้ resource แล้วก็คือให้ครบด้วยหลังเลิกใช้งาน
    หลายๆครั้งไม่เป็นเช่นนั้น สังเกตง่ายๆว่าตอนเราเริ่มโปรแกรมและปิดโปรแกรมไป ทำไม Memory ไม่เหลือเท่าเดิมก่อนการใช้งาน
    นั้นก็เพราะมันเกิด mem leakแล้ว หากใครอยากลองทดสอบว่าโปรแกรมที่เขียนมีปัญหานี้ไหมลองนำ header นี้ไปใช้ดูครับ

    http://www.linkdata.se/sourcecode.html

  2. #2
    Senior Member
    Join Date
    Jul 2004
    Location
    Bangkok
    Posts
    187


    โดยส่วนตัวชอบใช้ vld มากเพราะใช้งานง่ายแค่ include ก็ใช้ได้แล้ว แนะนำให้ลองใช้กันดูครับ ^^
    http://dmoulding.googlepages.com/vld

Similar Threads

  1. Replies: 0
    Last Post: 01-01-2009, 12:51 AM
  2. อะไรคือ Registered Memory และ unbuffered memory?
    By asylu3 in forum Operating System, Server and Networking
    Replies: 1
    Last Post: 05-06-2008, 08:00 PM
  3. Solaris fifofs I_PEEK Kernel Memory Leak
    By newsbot in forum Exploits
    Replies: 0
    Last Post: 12-03-2008, 03:22 PM
  4. Firefox and Opera Memory Information Leak
    By newsbot in forum Exploits
    Replies: 0
    Last Post: 17-02-2008, 02:39 PM
  5. TIBCO Rendezvous RVD Daemon Memory Leak DoS
    By newsbot in forum Exploits
    Replies: 0
    Last Post: 29-11-2007, 09:20 PM

Members who have read this thread : 0

Actions : (View-Readers)

There are no names to display.

Tags for this Thread

Posting Permissions

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