Questions tagged [multiple-instances]

Multiple-instances are two or more programs which share the same code and run at the same time

1018 questions
5
votes
5 answers

Using .setVisible() outside the constructor breaks my GUI

I am just now learning the basics of java GUI. I have this weird situation that I can't really explain. I have a GUI class, where I build a simple JFrame. If I use .setVisible(true) within the constructor everything works fine, if I use it outside,…
Kalec
  • 2,681
  • 9
  • 30
  • 49
5
votes
1 answer

Twisted-PyQt4 segmentation faults

I'm using PyQt 4.9.1 on Ubuntu 12.04 (amd64) (tried with both python 2.6 and 2.7) to make a headless browser, but i'm getting: Program received signal SIGSEGV, Segmentation fault. Here is a simplified version of the program (still long a bit): # -*-…
andrean
  • 6,717
  • 2
  • 36
  • 43
4
votes
3 answers

What is the safest way to prevent multiple instances of a program?

I am trying to prevent my program from running multiple instances at any given time. I have read about using mutex and windows events, however both threads were several years old, and I'm curious if with .net4 there is a more simple, and more…
Fuzz Evans
  • 2,893
  • 11
  • 44
  • 63
4
votes
2 answers

How do I make an array of another array's duplicate values only in Javascript?

I have an array with registrants from multiple companies (some from the same companies, some not) and I need to count how many people from the same company have registered. So I need a number that tells me how many extra people (after the first)…
Jiminy Cricket
  • 908
  • 1
  • 9
  • 24
4
votes
1 answer

deploy the same application multiple times on tomcat

I want to deploy the same applications multiple times on the same tomcat instance for different "customers". Since im not really experienced with tomcat and other application servers i dont have a point to start. When i simply generate war files…
user723812
  • 43
  • 4
4
votes
3 answers

Running more than one instance of Evince

I have a wxPython application and I'm using Evince to display the reports it generates. Since I'd like to delete every report after the user has closed the corresponding Evince instance, my application uses a thread that does a subprocess.call() to…
Joril
  • 19,961
  • 13
  • 71
  • 88
4
votes
2 answers

How cookie based authentication works in multiple instance web application?

I have a stateless application(asp.net mvc 4.7.2),Which runs on multiple instance.(azure). My application uses form authentication (cookie based). When I login in some cases I get response back from diffrent instance and system shows as not logged…
4
votes
2 answers

C# Instance copy / Passing object reference is different then Java?

class Player { private Location location; public Location getLocation() { return location; } public void setLocation(Location location) { this.location = location; } } ... class Location { int x,y,z; …
SSpoke
  • 5,656
  • 10
  • 72
  • 124
4
votes
3 answers

Best way to handle multiple instance of an activity in Android

I want to make dynamic Form(s) in my application, the number of forms will be decided at the run time(1 to n). To implement this I create a From Class which extends Activity. My application can have multiple instances of this Form class and navigate…
4
votes
1 answer

Can I append twice the same object to an InstrumentedList in SQLAlchemy?

I have a pretty simple N:M relationship in SqlAlchemy 0.6.6. I have a class "attractLoop" that can contain a bunch of Media (Images or Videos). I need to have a list in which the same Media (let's say image) can be appended twice. The relationship…
Savir
  • 17,568
  • 15
  • 82
  • 136
4
votes
5 answers

Nginx multiple instances

I have an EC2 instance with AWS and I have installed nginx and created multiple server blocks to server multiple applications. However, if nginx goes down, all the applications go down as well. Is there any way to setup seperate nginx instance for…
Vinod Kumar
  • 1,479
  • 3
  • 13
  • 23
4
votes
2 answers

Laravel cron/queue/workers setup on multiple servers

I've got multiple servers sharing a database - on each of them a cron job fires ever 5 min checking if a text message log entry doesn't exist, creates a text message log entry and sends out a text message. I thought that there would never be a…
eithed
  • 3,933
  • 6
  • 40
  • 60
4
votes
1 answer

Multiple instances of app in recent app list of tablet(android)

I have two activities in my app. First activity launchmode is singleInstance and second activity launchmode is singleTask. I am using these launchmodes because i don't want to destroy any of the activity while switching between them. App is working…
4
votes
5 answers

Many instances of a class

I am trying to write a life simulation in python with a variety of animals. It is impossible to name each instance of the classes I am going to use because I have no way of knowing how many there will be. So, my question: How can I automatically…
Joshua
4
votes
1 answer

Is it a bad idea to run two instances of a Cocoa application at the same time?

I am making a download and installing application that must run multiple times at the same time. However, is it smart to do so? My application uses the /tmp directory to save temporary downloads. Each instance of the application needs its own dock…
user142019