Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

App Suddenly Ends

Status
Not open for further replies.

alehawk

Programmer
Jun 18, 2003
332
AR
Hi!
I made an app that works fine and in some point (the compiled version) exits, it doesnt happen in the editor, only when its compiled...
Any Ideas?
Tnx!
 
Could be a bit more specific ?
Does it ends always at the same point ?
What are you doing at this point (code).
 
The app stays resident in tray and listens to opened procecess. I doesnt require action from the user and in some point I pass the mouse pointer over the tray and the icon disappears :S
 
does it still show up in the Task Manager... under Processes?

Are you using any On Error Resume Next commands?

Have Fun, Be Young... Code BASIC
-Josh

cubee101.gif


PROGRAMMER: (n) Red-eyed, mumbling mammal capable of conversing with inanimate objects.
 
No, it dissapears.
No I compiled PCODE cause optimizing it returned error 13 dont know where in the app cause in the editor works fine. Compiling it in PCODE doesnt return error but it ends :(
 
DO NOT compile in PCODE... EVER... ;-)

What exactly is error 13?

please post full error...

Have Fun, Be Young... Code BASIC
-Josh

cubee101.gif


PROGRAMMER: (n) Red-eyed, mumbling mammal capable of conversing with inanimate objects.
 
and once again... Are you using ON ERROR RETURN NEXT?

If so... the editor probably won't tell you when it gets an error because it ignores it...

Have Fun, Be Young... Code BASIC
-Josh

cubee101.gif


PROGRAMMER: (n) Red-eyed, mumbling mammal capable of conversing with inanimate objects.
 
>DO NOT compile in PCODE... EVER...

Oh, I would, where necessary.

>resident in tray and listens to opened procecess

Ah, I would suspect a bad API call
 
>>where necessary

Where is it necessary???

If memory serves... (and mine usually doesn't :p)

It seems like I had problems with that in one way or another...

I think I accidently compiled a program with P-Code and it would only run on my machine... Not on anyone else's I sent it too... ?

and... what is error 13...? (hense, memory not serving again ;-))

Have Fun, Be Young... Code BASIC
-Josh

cubee101.gif


PROGRAMMER: (n) Red-eyed, mumbling mammal capable of conversing with inanimate objects.
 
is your Option Explicit at the top of ALL modules?

That should find it for you, in most cases...

Have Fun, Be Young... Code BASIC
-Josh

cubee101.gif


PROGRAMMER: (n) Red-eyed, mumbling mammal capable of conversing with inanimate objects.
 
>Where is it necessary???

Oh...if you want to do reliable multithreading...
 
Yes, its option explicit.
I think the error was on some class module.
Tired of trapping the error I used resume next on each sub & function and the app didnt exit anymore. Now knowing that the problem is on a class module I will try to find where its the problem and why!
Thank you guys for your help & time, u rock!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top