For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic > February 2005 > MSGBOX disappears and I am clueless!!!









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author MSGBOX disappears and I am clueless!!!
Cloe

2005-02-27, 3:55 am

Hi all.
My application has a problem only when run as a compiled file (meaning in VB
its OK).
The form just disappears !
I put some msgbox commands between some lines just to figure out which line
causes :
e.g.

msgbox "step1"
some lines
msgbox "step2"
some more lines
msgbox "step3"
....
....

I saw one of the messages (e.g. "step 1")
However, without clicking it - it disappeared and the program closed.

Please advise!!!
Clueless Guy


BT3

2005-02-27, 3:55 am

Any events firing with a Me.Hide hidden in the code?
Form details, like child, MDI parent, Modal, etc would help us get a better
picture. Anything unusual about the code you are executing between "Step
1", "Step 2".
Try putting something in the Form_Unload event for the suspect form you
would notice, like a msgbox, or shelling Notepad or something.

BT3

"Cloe" <shanipinsker@hotmail.com> wrote in message
news:uG9n1tIHFHA.3108@tk2msftngp13.phx.gbl...
> Hi all.
> My application has a problem only when run as a compiled file (meaning in

VB
> its OK).
> The form just disappears !
> I put some msgbox commands between some lines just to figure out which

line
> causes :
> e.g.
>
> msgbox "step1"
> some lines
> msgbox "step2"
> some more lines
> msgbox "step3"
> ...
> ...
>
> I saw one of the messages (e.g. "step 1")
> However, without clicking it - it disappeared and the program closed.
>
> Please advise!!!
> Clueless Guy
>
>



Cloe

2005-02-27, 3:55 am

Thanks for trying...
I found the problem - I use hooks in an unsafe way.
Silly me!!!
Guy

"BT3" <honeypot@epmctc.com> wrote in message
news:yndUd.93461$GT.77274@okepread01...
> Any events firing with a Me.Hide hidden in the code?
> Form details, like child, MDI parent, Modal, etc would help us get a
> better
> picture. Anything unusual about the code you are executing between "Step
> 1", "Step 2".
> Try putting something in the Form_Unload event for the suspect form you
> would notice, like a msgbox, or shelling Notepad or something.
>
> BT3
>
> "Cloe" <shanipinsker@hotmail.com> wrote in message
> news:uG9n1tIHFHA.3108@tk2msftngp13.phx.gbl...
> VB
> line
>
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com