Questions tagged [object-sharing]

13 questions
9
votes
6 answers

How to share object between java applications?

I have 2 separate Java Applications running at a time. (Two separate javaw.exe) I need to share an object between them while they are running. What is the simplest way to achieve this without having any permanent storage?
Vishal
  • 2,711
  • 7
  • 33
  • 42
9
votes
1 answer

How to share pandas DataFrame object between processes?

This question has the same point of the link that I posted before. ( Is there a good way to avoid memory deep copy or to reduce time spent in multiprocessing? ) I'm getting nowhere with that since I faced the 'DataFrame' object sharing problem. I…
8
votes
3 answers

Python: how to share an object instance across multiple invocations of a script

I'm use a library which provides a python interface to an external program. This allows me to create: foo = Foo() The code above starts a new instance of the Foo program that I can control from within python. I have a python scripts which needs to…
wk1989
  • 611
  • 1
  • 8
  • 19
2
votes
1 answer

Sharing a nested object between Python processes with write access for tasklets(coroutines)?

How can I share a nested object between Python processes with write access for tasklets(coroutines)? Here is a simplified example with an analogy just I wrote for asking this question properly; First of all please install greenlet package with: sudo…
mertyildiran
  • 6,477
  • 5
  • 32
  • 55
2
votes
1 answer

Sinatra/Rails: Persisting custom class instances during app lifetime

Can I assert rails/sinatra apps are initialized only once and all requests share the same app instance? or do new requests spawn new app instances? Is it possible to instance custom classes and persist them during app lifetime without using…
knoopx
  • 17,089
  • 7
  • 36
  • 41
0
votes
1 answer

Injecting objects into servlet classes with JAX-RS

I am pretty new to this whole servlet thing, so please correct me if I mix or use incorrect/confusing terms for things. I am however writing a blog ping server in Java using JAX-RS (Jersey), and I'm facing a problem where I have one servlet class…
vrutberg
  • 1,981
  • 1
  • 20
  • 28
0
votes
0 answers

Share moving object in django video call using webRTC

I create a multi peer video chat using Django and WebRTC. I'm able to share the entire screen but I want to share only some object on the partecipants' screens. I have a separate python script made with pygame that create a GUI in which there are…
deidei
  • 11
  • 4
0
votes
1 answer

Is there any way to pass a process object between multiple processes in python?

I have two files in the same directory, A module has a function that is continously running and has no way to stop or pause in between, # script.py def run(): i = 0 while True: print('\r', i, '\r', end='') i += 1 Then…
0
votes
1 answer

C++ Object-sharing Errors LNK2005 and LNK 1169

I am currently trying to create a game of tic-tac-toe played alternatively by two player objects created from player class on a board object that is shared by the players. As far as I know I have completed the program, yet when I try to build I get…
0
votes
1 answer

iPhone OBJ-C: Sharing a MutableArray and moving between two ViewControllers

Classes: AppDelegate AppViewController OtherViewController Currently the application opens in the AppViewController. I want to add a new view, the OtherViewController. However I want the a method in the AppViewController to save to a…
0
votes
2 answers

reading data from an object that is populated from another thread

The language : c# (wpf) The situation : I have to load a 3D mesh from a file after which I populate a Viewport3D. What do I want to do : I want to load the 3D mesh in a BackgroundWorker, so the application does not need to stall while loading the 3D…
Victor
  • 1
0
votes
1 answer

Sharing CherryPy's BackgroundTaskQueue object between request handlers

I'm using cherrypy to build a web service. I came across the BackgroundTaskQueue plugin and I want to use it to handle specific time-consuming operations on a separate thread. The documentation states the usage should be like the following: import…
-1
votes
1 answer

Singleton vs Bundle to share/pass object from one activity to another

I want to share object from one activity to another activity. I know of 2 good ways: Using bundle: By making object's class implement Parcelable, can pass object in bundle via intent. Using singleton pattern: saving the object instance in this…