Re: Procedure won't exit, EXE hangs

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



"Brian" <Brian@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1AAAFD5B-13C1-4DA6-A8BE-1E19E1C127BD@xxxxxxxxxxxxxxxx
> Hi,
>
> I have created a custom ActiveX control for an application. This control
> is
> on the main form of the program and works fine. I recently added it to a
> usercontrol that I have put on the main form as well. The control looks
> like
> a combo box, but has enhanced features. The problem is that the click
> event
> of the control won't exit correctly, causing the whole application to
> hang.
> Everything works for a few clicks, but the problem always occurs within a
> few
> clicks. This does not occur if you run the application from code. It
> only
> occurs in the compiled exe. If you put a message box just before the
> exit,
> the problem does not occur (in the exe). I have tried DoEvents calls, but
> this does not help. The original control that was placed directly on the
> main form works fine, so I tried taking the usercontrol's instance of the
> control and moving it to the main form. The problem still occurred.
>
> I am using VB 6 SP6. Any suggestions would be more than welcome. Thanks.

The only suggestion I have is..... post some code. There's really no way for
us to know why it's hanging without some code and a description of what
you're doing.

A wild guess here.... you aren't sitting in a loop waiting for something
else to complete, are you? If so, post the details....

--
Ken Halter - MS-MVP-VB - http://www.vbsight.com
DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
Please keep all discussions in the groups..


.



Relevant Pages

  • Re: Procedure wont exit, EXE hangs
    ... number of problems with SP6. ... You may want to try reverting to SP5 and see ... > I have created a custom ActiveX control for an application. ... > occurs in the compiled exe. ...
    (microsoft.public.vb.bugs)
  • Weird Happenings
    ... boxes and command buttons. ... This happens in both the IDE and compiled EXE. ... no longer over the control, ...
    (microsoft.public.fox.vfp.forms)
  • Re: IDE vs. EXE
    ... "DoEvents" fix has already caused the combo to act strangely in another ... a control or an event. ... You keep mentioning the "dreaded DoEvents". ... This comes in handy in doing various iterave processes ...
    (microsoft.public.vb.general.discussion)
  • Re: Polling, Interrupts, DMA, Synchronous, Asynchronous I/O Definitions
    ... "Jim Carlock" wrote in message ... > I'll add another definition to interrupts... ... > OS via DoEvents in timer operations or in waiting for info routines. ... > The DoEvents in VB programming passes some kind of control ...
    (alt.lang.asm)
  • Re: IDE vs. EXE
    ... "DoEvents" fix has already caused the combo to act strangely in another ... Whereas more often than not one message to a control ... You keep mentioning the "dreaded DoEvents". ... call to cycle through the message/hardware queues. ...
    (microsoft.public.vb.general.discussion)