{"id":504,"date":"2020-05-31T22:34:24","date_gmt":"2020-05-31T22:34:24","guid":{"rendered":"https:\/\/edupez.com\/labview\/?p=504"},"modified":"2020-05-31T22:42:12","modified_gmt":"2020-05-31T22:42:12","slug":"labview-tip-43-close-references-memory-leak","status":"publish","type":"post","link":"https:\/\/edupez.com\/labview\/2020\/05\/31\/labview-tip-43-close-references-memory-leak\/","title":{"rendered":"LABVIEW \u2013 Tip #43 \u2013 Close references (memory leak)"},"content":{"rendered":"\n<p>Level : Intermediate<\/p>\n\n\n\n<p>To avoid memory leaks from labview code you need to pay attention to references that are created and not yet closed. After create the code is a good practice to create a stress test and look for memory leaks.<\/p>\n\n\n\n<p>Memory leaks increase memory used from our program and somewhere in time  crashes the program. Like the critical races, the memory leaks is not easy to detect, you need to test, test, test.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"852\" src=\"https:\/\/edupez.com\/wp-content\/uploads\/2020\/05\/0-1024x852.png\" alt=\"\" class=\"wp-image-505\" srcset=\"https:\/\/edupez.com\/wp-content\/uploads\/2020\/05\/0-1024x852.png 1024w, https:\/\/edupez.com\/wp-content\/uploads\/2020\/05\/0-300x250.png 300w, https:\/\/edupez.com\/wp-content\/uploads\/2020\/05\/0-768x639.png 768w, https:\/\/edupez.com\/wp-content\/uploads\/2020\/05\/0-1200x999.png 1200w, https:\/\/edupez.com\/wp-content\/uploads\/2020\/05\/0.png 1335w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Level : Intermediate To avoid memory leaks from labview code you need to pay attention to references that are created and not yet closed. After create the code is a good practice to create a stress test and look for memory leaks. Memory leaks increase memory used from our program and somewhere in time crashes &hellip; <a href=\"https:\/\/edupez.com\/labview\/2020\/05\/31\/labview-tip-43-close-references-memory-leak\/\" class=\"more-link\">Continuar a ler<span class=\"screen-reader-text\"> &#8220;LABVIEW \u2013 Tip #43 \u2013 Close references (memory leak)&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[9],"tags":[],"_links":{"self":[{"href":"https:\/\/edupez.com\/labview\/wp-json\/wp\/v2\/posts\/504"}],"collection":[{"href":"https:\/\/edupez.com\/labview\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/edupez.com\/labview\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/edupez.com\/labview\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/edupez.com\/labview\/wp-json\/wp\/v2\/comments?post=504"}],"version-history":[{"count":2,"href":"https:\/\/edupez.com\/labview\/wp-json\/wp\/v2\/posts\/504\/revisions"}],"predecessor-version":[{"id":507,"href":"https:\/\/edupez.com\/labview\/wp-json\/wp\/v2\/posts\/504\/revisions\/507"}],"wp:attachment":[{"href":"https:\/\/edupez.com\/labview\/wp-json\/wp\/v2\/media?parent=504"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/edupez.com\/labview\/wp-json\/wp\/v2\/categories?post=504"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/edupez.com\/labview\/wp-json\/wp\/v2\/tags?post=504"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}