[dba-VB] Odd problem with VB 6 application

Drew Wutka DWUTKA at Marlow.com
Fri Jul 27 10:13:27 CDT 2007


This is just an FYI to the VB list.  A week ago I made a modification to
a system I've been working on called the ISFE.  The ISFE was monitoring
for new requests and a few other things, but that background process was
slowing the interface down a bit.  The modification I made took those
processes and put it in another .exe (and the two talk through window
messages, something I posted on the AccessD list).  Anyhow, a few days
ago, someone submitted a request saying they were getting the following
error message 'Unexpected Application Error; quitting'.  

 

Here's what caused the problem.  The new 'monitor' application was setup
as an ActiveX .exe, because I created a generic 'event' class that each
monitor event was built on (implemented).  The main application tells
the monitor application what monitors to start (based on the users role)
by sending the class name.  The monitor application then used
CreateObject with that string. Can only do that in an ActiveX .exe.
Turns out, however, that a standard User in a 2000 or later environment
cannot start an ActiveX .exe for the first time, because the ActiveX
.exe tries to register itself, and users with the basic User permissions
don't have the ability to do so.  If a power user or admin runs the
program first, then the users can run it...go figure.

 

Just figured I'd pass this along in case anyone else is using VB 6
still.

 

Drew


The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited.






More information about the dba-VB mailing list