Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A func.bas makes a func.exe - Can I Call(SHELL?) to func.exe?
#2
You're shelling to an external program, opening that program, running that program, closing that program... Of course it's going to be slow -- that's a lot of system calls to be making to get your result.

Instead, find some other way for your programs to communicate, without having to shell/load/run/close them each time you want something from them.

https://qb64phoenix.com/forum/showthread.php?tid=302 -- -like here, my mini messenger is using open connection to chat with each other.

If you've got a RAM Drive up and going, you could always write the data to a file with the first program, and then read the data with the second program, as needed. (I wouldn't want to beat my poor hard drive to death using such a means of interaction, but it'd be easy to do with a ram drive.)
Reply


Messages In This Thread
RE: A func.bas makes a func.exe - Can I Call(SHELL?) to func.exe? - by SMcNeill - 05-13-2022, 08:17 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  code locks up when SHELL paulel 4 296 02-15-2026, 08:04 PM
Last Post: madscijr
  Enlarging window for older BAS programs (ie. Screen 7 mode) paulel 5 425 12-24-2025, 09:36 PM
Last Post: paulel
  keyword to get the EXE name and the EXE path instead of parsing Command$(0) ? madscijr 8 1,162 07-22-2025, 08:35 PM
Last Post: hsiangch_ong
  Breaking out of a Shell PhilOfPerth 3 549 07-02-2025, 02:59 AM
Last Post: PhilOfPerth
  Shell issues eoredson 7 1,348 05-10-2025, 02:59 AM
Last Post: eoredson

Forum Jump:


Users browsing this thread: 1 Guest(s)