<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.blackbaud.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Search results matching tag 'memory leak'</title><link>http://forums.blackbaud.com/search/SearchResults.aspx?o=DateDescending&amp;tag=memory+leak&amp;orTags=0</link><description>Search results matching tag 'memory leak'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP2 (Debug Build: 20611.960)</generator><item><title>Forms</title><link>http://forums.blackbaud.com/forums/p/9187/31360.aspx#31360</link><pubDate>Wed, 11 Jun 2008 23:45:49 GMT</pubDate><guid isPermaLink="false">f90a95a0-00e2-4810-8af8-0bbdde08f853:31360</guid><dc:creator>EA510BD0-8193-4A50-9EAC-58C4C883D722</dc:creator><description>&lt;p&gt;I am creating a macro for entering a new individual consitutent. Unfortunately the only reference I have found so far to Forms in the RE VBA esentials guide is on page 98, where it indicates that &amp;quot;VBA provides full-featured forms design support&amp;quot;, where I &amp;quot;can design a custom data entry form&amp;quot;. It does not however, explain how to do this. After much reseach, trial, and error I have found that I must start the macro with the following code in the module named &amp;quot;User_Macros&amp;quot;:&lt;/p&gt;&lt;p&gt;Public Sub AddNewMember()&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load frmNewMembers&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; frmNewMembers.Show&lt;br /&gt;&lt;br /&gt;End Sub&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Where &amp;quot;AddNewMember&amp;quot; is the name of the macro. Now my macro is being terminated as follows:&lt;/p&gt;&lt;p&gt;Private Sub cmdExit_Click()&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; moCodeTablesServer.Closedown&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set moCodeTablesServer = Nothing&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;This is taking place in the form, not in the original User_Macro module. The &amp;quot;Closedown&amp;quot; and &amp;quot;Nothing&amp;quot; lines are to shut down the Code Tables Server that I am using to load a combo box -- it took me quite awhile to figure out how to do this also, especially since there was an error in the sample code. But I am wondering if I am going to end up with any memory leaks from not unloading the form? Is this done automatically as part of the &amp;quot;End&amp;quot; statement? I cannot figure out how to return to the original code and unload the form.&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>