Despite the complexity of the application, I assure you my only error and
issue is when Windows NT shuts down. Otherwise, the program works without
any problems or errors.
My goal in asking this group is to see if anyone knows what would cause the
message "Cannot Quit". Something had to pop that message up, be it the VB
runtime libraries or the APIs.
Thanks,
BJ
"J French" <erewhon@nowhere.com> wrote in message
news:3f7c0604.18578596@news.btclick.com...[color=blue]
> I have an incredibly complicated App
>
> Parts are written in VBA
> Other bits are written in VB
> It makes extensive use of the API
> - and lots of Timers
> ... but there is something wrong ...
>
> Are there any psychics out there ?
>
>
> On Thu, 2 Oct 2003 03:40:15 -0700, "BJ" <ltgenANTI@SPAMcox.net> wrote:
>[color=green]
> >The application I have been developing is great except one flaw. When
> >Windows NT shuts down, it doesn't send the Event to my application (if it
> >did, it would close all of the open forms and kill an activity flag I[/color][/color]
create[color=blue][color=green]
> >on launch) and an error comes up that says "Cannot Quit". I have no idea
> >where this error is coming from as I did put it in there.
> >
> >I am unsure if this is because of the hidden form which has a bunch of
> >timers on it (I made it visible and it still did not work) or because my
> >primary form was orginally programmed with VBA and I don't have the time[/color][/color]
to[color=blue][color=green]
> >rewrite it in full VB (several thousand lines of code). I use a ton of[/color][/color]
APIs[color=blue][color=green]
> >for my application to do its work, but the most used is the rasapi32.dll[/color][/color]
(to[color=blue][color=green]
> >check for any connections), kernal32 (for drive data and process[/color][/color]
handling)[color=blue][color=green]
> >and mpr.dll (for mapped drives management). imcp.dll, advapi.dll and
> >wsock32.dll are also used infrequently. The primary form and the timer[/color][/color]
form[color=blue][color=green]
> >(which is in full VB) are the only two forms consistently loaded. I have[/color][/color]
no[color=blue][color=green]
> >errors if the program is shutdown via any other method (process kill,[/color][/color]
normal[color=blue][color=green]
> >shutdown, automated shutdown, etc). I am using Visual Basic 6.0 SP5.
> >
> >I am at a loss on this and would appreciate any feedback you can provide.
> >The program code itself is quite long and since it is work-for-hire, I
> >cannot post the code. My email is
ltgenANTI@SPAMcox.net - just remove[/color][/color]
the[color=blue][color=green]
> >ANTI and the SPAM.
> >
> >Thank you,
> >BJ
> >
> >[/color]
>[/color]