Console outputting other running gambas programs
Posted: Monday 9th October 2023 12:36pm
Suprise!!
I was programming and debuging a program in the the Gambas IDE that starts a 2nd compiled Gambas program with a shell statement. The 2nd program's console output is displaying while I'm running and debuging the 1st main program on the 1st main program's console. On the 2nd program a Shell started ffmpeg with -nostdin option results are displaying. It looked like the 1st main program was running code that shouldn't have ran. I hope the 2nd program's Wait's are not stopping the 1st main program execution! I thought that a bit strange. What I would think SHOULD be 2 independent programs. I don't know if its important or not but the outputs were in timers. Because of the time delay's of if Exist(filename) & wait 2 result waiting for a response the 2nd program is doing the waiting and lug and tug while the 1st Main program is maintaining a regular ryithmatic display output. The 2 program's communicate across a network node for continuous communications. I have also used the same process between Gambas and Python3 (Python3 supports IO cards with Include for data AQ). I also found that while communications are good calling from the 1st program to the 2nd program. I use a second form on the 1st main program for network communications for calling return responses. On it's textbox, I get the first 2 characters dropped even though the communications form show's them there. This is a old problem that I've had before on older versions of Gambas. I can usually write from a string on the communications form to a string on the main form successfully. Just some QuirkE's I have found.
Also....
I found that sliders written in RPI Buster, Gambas 3.12.2 don't show in RPI Bullseye, Gambas 3.15.2 with the same program code. Also if I save the program in 3.15.2 it may not load back into the IDE on 3.12.2 for more programing changes. (I was testing compatability between OS's.) I found Ubuntu 22.04 (64bit), Gambas 3.16.3 is close to RPI 3.15.2. I wonder.... Which version of gambas can I program on will work on all systems, runtime if possable? RPI Buster's Gambas seems to be stopped at 3.12.2 at least on a default repository install. I kind of want to write a Gambas program that can be used on all the systems that support a Gambas runtime. Incompatablities seem to be extreme. A Gambas program will only work on a system that its programmed and compiled on or another that's VERY close.
Sorry Python3 is Not a option, I use HUGE 3 dimensional array's (I do program in Python3 also & VB, php, html(&5), esp32, etc).
Current program I am working on about 5000 lines +. Time delays upset sound playback and generate skipped frames at 10fps. It supports Karaoke & most video formats at 32 minutes or less per song. Scheduler holds 50 songs in Que with nearly unlimited backgrounds and Hot audio shorts & singers. It even has a speaking clock & mp3 tag reader. The 2nd program helps a lot on the time delay's for the 1st Main program. I would like to publish this one soon as a Karaoke Hoster for linux OS's. This is a much scaled down version of another program I've written that support 20 catagories at 1/2 mil per Cat. Duel Screen outputs, I just got a new RPI 4 8Gig, I'm seeing what it will do! How much can I cram into a computer the size of a cigarette pack.
Been having FUN!
I was programming and debuging a program in the the Gambas IDE that starts a 2nd compiled Gambas program with a shell statement. The 2nd program's console output is displaying while I'm running and debuging the 1st main program on the 1st main program's console. On the 2nd program a Shell started ffmpeg with -nostdin option results are displaying. It looked like the 1st main program was running code that shouldn't have ran. I hope the 2nd program's Wait's are not stopping the 1st main program execution! I thought that a bit strange. What I would think SHOULD be 2 independent programs. I don't know if its important or not but the outputs were in timers. Because of the time delay's of if Exist(filename) & wait 2 result waiting for a response the 2nd program is doing the waiting and lug and tug while the 1st Main program is maintaining a regular ryithmatic display output. The 2 program's communicate across a network node for continuous communications. I have also used the same process between Gambas and Python3 (Python3 supports IO cards with Include for data AQ). I also found that while communications are good calling from the 1st program to the 2nd program. I use a second form on the 1st main program for network communications for calling return responses. On it's textbox, I get the first 2 characters dropped even though the communications form show's them there. This is a old problem that I've had before on older versions of Gambas. I can usually write from a string on the communications form to a string on the main form successfully. Just some QuirkE's I have found.
Also....
I found that sliders written in RPI Buster, Gambas 3.12.2 don't show in RPI Bullseye, Gambas 3.15.2 with the same program code. Also if I save the program in 3.15.2 it may not load back into the IDE on 3.12.2 for more programing changes. (I was testing compatability between OS's.) I found Ubuntu 22.04 (64bit), Gambas 3.16.3 is close to RPI 3.15.2. I wonder.... Which version of gambas can I program on will work on all systems, runtime if possable? RPI Buster's Gambas seems to be stopped at 3.12.2 at least on a default repository install. I kind of want to write a Gambas program that can be used on all the systems that support a Gambas runtime. Incompatablities seem to be extreme. A Gambas program will only work on a system that its programmed and compiled on or another that's VERY close.
Sorry Python3 is Not a option, I use HUGE 3 dimensional array's (I do program in Python3 also & VB, php, html(&5), esp32, etc).
Current program I am working on about 5000 lines +. Time delays upset sound playback and generate skipped frames at 10fps. It supports Karaoke & most video formats at 32 minutes or less per song. Scheduler holds 50 songs in Que with nearly unlimited backgrounds and Hot audio shorts & singers. It even has a speaking clock & mp3 tag reader. The 2nd program helps a lot on the time delay's for the 1st Main program. I would like to publish this one soon as a Karaoke Hoster for linux OS's. This is a much scaled down version of another program I've written that support 20 catagories at 1/2 mil per Cat. Duel Screen outputs, I just got a new RPI 4 8Gig, I'm seeing what it will do! How much can I cram into a computer the size of a cigarette pack.
Been having FUN!