Re: Procedure won't exit, EXE hangs
- From: "Ken Halter" <Ken_Halter@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 1 Nov 2005 15:25:01 -0800
"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..
.
- Prev by Date: Re: Add a new function in server side,the the old client can not work?
- Next by Date: Re: Add a new function in server side,the the old client can not work?
- Previous by thread: Re: Add a new function in server side,the the old client can not work?
- Next by thread: Re: Procedure won't exit, EXE hangs
- Index(es):
Relevant Pages
|