-
Jan 28th, 2021, 06:36 AM
#1
[RESOLVED] Disappearing Add-Ins
Hi folks,
Hoping somebody can shed some light on a problem I have, per the thread title.
I'm not a great user of add-ins, so this problem has probably been around (for me) for some considerable time and I just haven't noticed. Anyway, whilst in the process of developing my own add-in, I noticed that it would occasionally fail to load with the IDE. Upon inspection, this was quite clearly due to the fact that it was no longer 'available' for some reason; i.e. it was missing from the Add-Ins Manager.
Assuming it was a problem with my add-in, I began to troubleshoot, gradually stripping-out functionality until I came across the troublesome part. In the end, I was left with just the Wizard template code (i.e. an add-in that did nothing), yet still the add-in would sporadically disappear.
It turned out, after several hours of painstaking observation, that this disappearance occurred only when I ran a project. In other words, I could fire up the IDE over-and-over, and the add-in would load. But, as soon as I hit F5, the add-in was destined to be gone the next time I started the IDE.
I just uninstalled and reinstalled VB6, and the problem hasn't gone away. Any suggestions? Has anybody else encountered this?
EDIT: Forgot to mention: Win 10, 64-bit
Last edited by ColinE66; Jan 28th, 2021 at 07:58 AM.
If you don't know where you're going, any road will take you there...
My VB6 love-children: Vee-Hive and Vee-Launcher
-
Jan 28th, 2021, 07:13 AM
#2
Re: Disappearing Add-Ins
I have multiple Add-Ins and never experienced this behavior.
-
Jan 28th, 2021, 07:44 AM
#3
-
Jan 28th, 2021, 07:59 AM
#4
Re: Disappearing Add-Ins
Win 10 64-bit. Edited original post to add that info.
If you don't know where you're going, any road will take you there...
My VB6 love-children: Vee-Hive and Vee-Launcher
-
Jan 28th, 2021, 08:21 AM
#5
Re: Disappearing Add-Ins
thats a weird one, I have never had that specific behavior but have had plenty of oddities when working with add-in.
The plugin model seems to be a bit fragile.
The problems I have noticed have been:
intermittent loading errors
icons not showing up when pasteface sporadically fails
adding menu items to some menus causes other items to start disappearing and have to reset the layout
Never had an addin go missing from the addin manager. Are you using the ini registration method or the activeX register server
when the addin is compiled.
-
Jan 28th, 2021, 08:49 AM
#6
Re: Disappearing Add-Ins
Originally Posted by dz32
Are you using the ini registration method or the activeX register server
when the addin is compiled.
My understanding was that, when the dll is compiled, it is automatically registered. Regardless, I have also regsvr32'd it with no change in outcome. As a newbie at Add-In development, I wasn't even aware of the INI file method. I'll look into that...
Funnily enough, I've yet to be hit by any of the more common add-in frailties, like the ones you described. I have been very careful to clean-up (and in a logical order, I should add), so hopefully I've immunised myself from them.
If you don't know where you're going, any road will take you there...
My VB6 love-children: Vee-Hive and Vee-Launcher
-
Jan 28th, 2021, 09:06 AM
#7
Re: Disappearing Add-Ins
Well, what do you know? Adding an entry to VBAddin.ini solved the problem.
According to the tutorial I was working with,
"VB6 does not require the vbaddin.ini file as VB5 does. Instead, the Add-In Manager looksdirectly to the Windows registry for the necessary information. "
Oh, well. Live and learn...
Thanks, dz32.
If you don't know where you're going, any road will take you there...
My VB6 love-children: Vee-Hive and Vee-Launcher
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|