{"id":59368,"date":"2020-10-28T12:34:10","date_gmt":"2020-10-28T10:34:10","guid":{"rendered":"https:\/\/www.piigab.com\/?post_type=ufaq&#038;p=59368"},"modified":"2022-10-04T08:00:11","modified_gmt":"2022-10-04T06:00:11","slug":"efter-lang-korning-allokeras-mycket-minne-av-mitt-program-som-anvander-quickopc","status":"publish","type":"ufaq","link":"https:\/\/www.piigab.com\/en\/faq\/efter-lang-korning-allokeras-mycket-minne-av-mitt-program-som-anvander-quickopc\/","title":{"rendered":"After a long run, a lot of memory is allocated by my programme using QuickOPC."},"content":{"rendered":"<div  class=\"ewd-ufaq-faq-list ewd-ufaq-page-type-distinct\" id='ewd-ufaq-faq-list'>\n\n\t<input type='hidden' name='show_on_load' value='' id='ewd-ufaq-show-on-load' \/>\n<input type='hidden' name='include_category' value='' id='ewd-ufaq-include-category' \/>\n<input type='hidden' name='exclude_category' value='' id='ewd-ufaq-exclude-category' \/>\n<input type='hidden' name='orderby' value='title' id='ewd-ufaq-orderby' \/>\n<input type='hidden' name='order' value='asc' id='ewd-ufaq-order' \/>\n<input type='hidden' name='post_count' value='-1' id='ewd-ufaq-post-count' \/>\n<input type='hidden' name='current_url' value='\/en\/wp-json\/wp\/v2\/ufaq\/59368' id='ewd-ufaq-current-url' \/>\n\t\n\t\n\t<div class='ewd-ufaq-faqs'>\n\n\t\t<div  class=\"ewd-ufaq-faq-div ewd-ufaq-faq-column-count-two ewd-ufaq-faq-responsive-columns-1 ewd-ufaq-faq-display-style-minimalist ewd-ufaq-can-be-toggled\" id='ewd-ufaq-post-59368-LSavftIg4D' data-post_id='59368'>\n\n\t<div class='ewd-ufaq-faq-title ewd-ufaq-faq-toggle'>\n\t\n\t<a class='ewd-ufaq-post-margin'  href='#' role=\"button\">\n\n\t\t<div class='ewd-ufaq-post-margin-symbol ewd-ufaq-square'>\n\t\t\t<span >A<\/span>\n\t\t<\/div>\n\n\t\t<div class='ewd-ufaq-faq-title-text'>\n\n\t\t\t<h4>\n\t\t\t\tAfter a long run, a lot of memory is allocated by my programme using QuickOPC.\t\t\t<\/h4>\n\n\t\t<\/div>\n\n\t\t<div class='ewd-ufaq-clear'><\/div>\n\n\t<\/a>\n\t\n<\/div>\n\t\n\t<div class='ewd-ufaq-faq-body' >\n\n\t\t\n\t\t\t\n\t\t\n\t\t\t<div class='ewd-ufaq-post-margin ewd-ufaq-faq-post'>\n\t\n<p>This problem occurs when you instantiate the EasyDAClient class very often and do not clean up the instances correctly.<br>When an instance should not be used anymore call EasyDAClient.Dispose() to flag to the .NET GC (Garbage Collector) that the instance should be deleted. Alternatively, try to use one or few instances of EasyDAClient instead of several. But call EasyDAClient.Dispose() when the instances should be deleted.<\/p>\n<\/div>\n\t\t\n\t\t\t<div class='ewd-ufaq-faq-custom-fields'>\n\n\t\n<\/div>\n\t\t\n\t\t\t<div class='ewd-ufaq-faq-categories'>\n\t\n\tKategori\n\t\n\t\tOPC och Citect\n\t\n<\/div>\n\t\t\n\t\t\t\n\t\t\n\t\t\t<div class='ewd-ufaq-ratings'>\n\t\n\t<div class='ewd-ufaq-ratings-label'>\n\t\tDo you think the answer helped you?\t<\/div>\n\t\n\t<div class='ewd-ufaq-rating-button ewd-ufaq-up-vote ewd-ufaq-ratings-default-image' data-faq_id='59368'>\n\t\t<img decoding=\"async\" src=\"https:\/\/www.piigab.com\/wp-content\/plugins\/ultimate-faqs\/assets\/img\/Thumbs-up-icon.png\" alt=\"Thumbs Up Icon\">\t\t<span>0<\/span>\n\t<\/div>\n\t\n\t<div class='ewd-ufaq-rating-button ewd-ufaq-down-vote ewd-ufaq-ratings-default-image' data-faq_id='59368'>\n\t\t<img decoding=\"async\" src=\"https:\/\/www.piigab.com\/wp-content\/plugins\/ultimate-faqs\/assets\/img\/Thumbs-down-icon.png\" alt=\"Thumbs Down Icon\">\t\t<span>0<\/span>\n\t<\/div>\n<\/div>\n\n<div class='ewd-ufaq-clear'><\/div>\n\t\t\n\t\t\t\n\t\t\n\t\t\t<div class='ewd-ufaq-permalink'>\n\t\n\t<a href='https:\/\/www.piigab.com\/en\/faq\/efter-lang-korning-allokeras-mycket-minne-av-mitt-program-som-anvander-quickopc\/'>\n\t\t\n\t\tLink to this article\t\t\t\n\t<\/a>\n\n<\/div>\n\t\t\n\t\t\t\n\t\t\n\t\t\t\n\t\t\n\t<\/div>\n\n<\/div>\n\t<\/div>\n\n\t\n<\/div>","protected":false},"excerpt":{"rendered":"<p>A Efter l\u00e5ng k\u00f6rning allokeras mycket minne av mitt program som anv\u00e4nder QuickOPC. Detta problem uppst\u00e5r d\u00e5 man instansierar EasyDAClient klassen v\u00e4ldigt ofta och inte rensar undan instanserna p\u00e5 ett korrekt s\u00e4tt.N\u00e4r en instans inte ska anv\u00e4ndas mer kalla p\u00e5 EasyDAClient.Dispose() f\u00f6r att flagga f\u00f6r .NET GC (Garbage Collector) att instansen ska raderas. Alternativt f\u00f6rs\u00f6k [&hellip;]<\/p>","protected":false},"author":5,"comment_status":"open","ping_status":"closed","template":"","ufaq-category":[283],"ufaq-tag":[],"class_list":["post-59368","ufaq","type-ufaq","status-publish","hentry","ufaq-category-opc"],"_links":{"self":[{"href":"https:\/\/www.piigab.com\/en\/wp-json\/wp\/v2\/ufaq\/59368","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.piigab.com\/en\/wp-json\/wp\/v2\/ufaq"}],"about":[{"href":"https:\/\/www.piigab.com\/en\/wp-json\/wp\/v2\/types\/ufaq"}],"author":[{"embeddable":true,"href":"https:\/\/www.piigab.com\/en\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.piigab.com\/en\/wp-json\/wp\/v2\/comments?post=59368"}],"wp:attachment":[{"href":"https:\/\/www.piigab.com\/en\/wp-json\/wp\/v2\/media?parent=59368"}],"wp:term":[{"taxonomy":"ufaq-category","embeddable":true,"href":"https:\/\/www.piigab.com\/en\/wp-json\/wp\/v2\/ufaq-category?post=59368"},{"taxonomy":"ufaq-tag","embeddable":true,"href":"https:\/\/www.piigab.com\/en\/wp-json\/wp\/v2\/ufaq-tag?post=59368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}