Running process after closing app
Posted
#1
(In Topic #2080)
Enthusiast

Just debugging the mru/mp3 Player app I came to know, that the app doesn't
close the process it starts correctly if I played a stream.
Just opening or loading a playlist in the app and closing, will stop the process.
Opening the app for debugging and playing something, stopping occurs only
if I click the "stop" button in the IDE after exiting the app.
If I start the executable Gambas File and close the app after playing something,
the process is not closed, I can see it in the system monitoring - I have to kill the
process manually.
What I did after I realized this problem:
+) rebooted the system
+) set the mediaplayer/pipeline variables created to Null
+) started debugger profiling
I didn't find anything useful, any hints how to nail this down?
Regards,
Yogi
Edit:
The problem disappeared after making the 2nd form (=mp3 Playerform) before calling from
the 1st form in the source code the main window:
Code
Public sub btnmp3_clicked()
Application.MainWindow=mp3playerform.window
mp3playerform.show
End
Last edit: by Yogi
Posted
Administrator



So, you have a form , play music from there but when closing the application the process run from that form doesn't close.
And this form is not you main window to my understanding.
I suppose you have a stop button that, when playing a stream, can properly stop the stream so no process stays running. Is that so, or does the process prevail as well in that situation?
If stop button does stop the process , then in the Form_Close() event of that form, try running the stop button code to stop the stream. This ensures that the stop code is always excuted, when the form is closed, no matter what, and thus the process is terminated. The Form_Close code of an opened form will be run when application main window is closed. This might solve your issue.
If I misunderstood you try to explain to me what is happening where and when. Details matter in solving issues.
Last edit: by gbWilly
gbWilly
- Gambas Dutch translator
- Gambas wiki content contributor
- Gambas debian/ubuntu package recipe contributor
- GambOS, a distro for learning Gambas and more…
- Gambas3 Debian/Ubuntu repositories
… there is always a Catch if things go wrong!
- Gambas Dutch translator
- Gambas wiki content contributor
- Gambas debian/ubuntu package recipe contributor
- GambOS, a distro for learning Gambas and more…
- Gambas3 Debian/Ubuntu repositories
… there is always a Catch if things go wrong!
1 guest and 0 members have just viewed this.




