Does anyone know if there are any negative repercussions of running two BB4W sessions at the same time? i don't do this often, but have noticed when i do that programs sometimes seem to run a little differently from normal.
It's not a big issue at all in terms of how i use BB4W - and the only reason i'm doing it right now is to ensure some code i'm transplanting from one place to another goes across correctly/smoothly - but it got me wondering about possible issues arising from running multiple BB4W sessions.
Two sessions simultaneously?
- 5against4
- Posts: 21
- Joined: Tue 03 Apr 2018, 11:57
- Location: The Cotswolds
Re: Two sessions simultaneously?
Hi 5:4,
It should be fine to run two (or more) sessions in parallel. I often do, and have never noticed any problems, and I know Richard does it.
Best wishes,
D
It should be fine to run two (or more) sessions in parallel. I often do, and have never noticed any problems, and I know Richard does it.
Best wishes,
D
-
- Posts: 177
- Joined: Mon 02 Apr 2018, 21:51
Re: Two sessions simultaneously?
Hello,
I often run two or more instances of BBCSDL when I'm working on one of my projects. It's not a problem at all. I don't use BB4W often but I'm sure it shouldn't be a problem there either.
However, one thing you should be aware of is if you've written a program that uses temporary files. If the program always uses the same filenames for its temporary files, there could be a conflict if you run two instances of that program, with one instance overwriting the other's temporary data.
If you're writing programs that use temporary files, be sure to put some random characters in the file names, so that each instance of that program will have unique names for its temporary files. For example, something like this:
PM
Just out of interest, I'd like to ask you - would you describe the differences you noticed?i don't do this often, but have noticed when i do that programs sometimes seem to run a little differently from normal.
I often run two or more instances of BBCSDL when I'm working on one of my projects. It's not a problem at all. I don't use BB4W often but I'm sure it shouldn't be a problem there either.
However, one thing you should be aware of is if you've written a program that uses temporary files. If the program always uses the same filenames for its temporary files, there could be a conflict if you run two instances of that program, with one instance overwriting the other's temporary data.
If you're writing programs that use temporary files, be sure to put some random characters in the file names, so that each instance of that program will have unique names for its temporary files. For example, something like this:
Code: Select all
temp_text_file_path$=@tmp$+"temptext_"+STR$(RND(100000))+"_"+STR$(RND(100000))+".txt"
- 5against4
- Posts: 21
- Joined: Tue 03 Apr 2018, 11:57
- Location: The Cotswolds