Author Topic: Unloading forms  (Read 3607 times)


  • Junior Community Member
  • Posts: 3
  • Hero Points: 0
Unloading forms
« on: May 02, 2007, 03:39:13 pm »
Like Taki, I have noticed that if I unload a .e file that defines my form objects, and run save_config, those forms are still in my open forms list and I can still open and edit them.  Is there a way to ensure that if I unload my 'forms.e' file, I will also get rid of the associated forms?

I've quoted Taki's original post as he asks some good questions.  Thanks in advance...

(running version 11)

I have a question regarding some side effects of macro loading/unloading.

While experimenting with the genComment macro package (old and new), after unloading the modules
I noticed that ext_menu_default still contains the annotation references,
and still performs insertion when selected.

I know that I can delete the added items from the menu, but this strikes me as akin to
mucking in the registry after incomplete uninstalls of Windows programs  :)

Out of curiosity, where is the current content of menus such as ext_menu_default stored,
and where might the target code that was created by loading the macro be ?

Are there any guidelines/examples of how to setup macros for clean load and unload ?

Hope that this makes sense!


  • Senior Community Member
  • Posts: 2744
  • Hero Points: 288
Re: Unloading forms
« Reply #1 on: May 02, 2007, 03:57:48 pm »
Maybe this could provide some add. information:



  • Junior Community Member
  • Posts: 3
  • Hero Points: 0
Re: Unloading forms
« Reply #2 on: May 02, 2007, 07:19:01 pm »
Thanks HS2 - I appreciate the response.

I guess there is no way to ensure that when I load my forms.e macro my forms definitions don't also end up in vusrobjs.e?

Also, deleting my forms in vusrobjs.e and then reloading (I am unable to unload vusrobjs.ex as it's not in the unload list) the said module still doesn't delete my forms...I can still open them in the Macro->Open Forms menu.

As well, running list-objects always populates my vusrobjs.e file with my user-defined forms (even after unloading their respective macros, editing vusrobjs.e to no longer contain my forms, saving it, reloading it, and restarting VS).

Am I missing something obvious in my attempts to remove my user-defined forms??

Thanks in advance...