Multiple instances of a subVI - problem if running as executable
Hello LabVIEW gurus,
I have written an application, which uses a VI-template to create multiple instances of this subVI which are
running independently. I use 'Open VI Referece' and the 'Call By Reference Node' VIs. My application works
fine if it is executed in the LabVIEW development environment.
But if I use the Application Builder to create a stand alone program, the 'Call By Reference' method seems
not to work. The program works without any error message, but the subVIs created by call by reference
deliveres no results. I suppose the subVIs are not created properly.
Has anybody an idea or hint to solve that problem. Are there any known issues with 'Call By Reference Node'
and 'executables'. Are there special points to pay attention for?
I have that problem with LabVIEW 7.0 and 7.1 (Windows2000 and WindowsXP(SP2))
Thanks for any hint that could be helpful.
Steffen
Sorry for the obvious question but did you include the templates as
dynamic VIs when building the application? Since these VIs are not part
of the Top Level hierachy, they have to be include explicitely as
dynamic VIs.
By the way, when VIs are included as dynamic VIs they are put in the
internal LLB of the executable file. When opening the VI reference,
that internal LLB is first looked into for a VI of that name and if it
is found there the actual path is ignored. The internal VI is opened so
you don't have to care about absolute paths when using inluded dynamic
VIs e.g. you can leave paths used during development. The actual path
is important only when the referenced VI is located outside the
executable.
LabVIEW, C'est LabVIEW
Similar Messages
-
Multiple instances of a subVi to display data
What
is the best method for creating and using a subVi that was created specifically
for displaying results?
I created a subVi for displaying stress (tension & compression). I started
with a Numeric Control/Vertical Pointer Slider which I changed to a Numeric
Indicator. I added 2 LEDs for out of bounds indicators (+ and -). I used the
Property Node for the Slider to permit setting the minimum and maximum values
for the scales. The subVi has only two inputs; the min/max scale value and the
data to be displayed. I added a Decoration in the form of a graduated color
scale to match that used in PTC's Pro/E.
When I use the subVi each instant in the Block Diagram uses the same Front
Panel. This makes the Slider or Needle flicker.
What I'd really like is for my subVi to work and act like the original Vertical
Pointer Slider and appear directly on the main Vi.
I know I can create multiple copies of the subVi's file in the folder on the
disk but that makes maintenance a pain because each change will require the duplication
once again. This will still create multiple Front Panels to display the data.
I need a solution that will work with the data for about 20 strain gauges
displayed on the screen at the same time.
Copying
and pasting the Block Diagram for my stress subVi into the main VI will work
but will also create a wiring nightmare
How
do create this type of display.Dynamik,
Thanks for "Slider2.vi" it was quite
informative! It's taken me a while to get back to working on my VI.
I tried to create a modified version of "slider2.vi" so I
would understand what you had done (I still don't understand everything) as
well as creating the vi I needed for my testing. I succeeded except for being
able to display the information on the front panel. For some reason I create a
cluster with 20 clusters within it each of them containing a slider (with a
multi-colored scale) and hi/lo out of bounds indicators. I used "Cluster
to Array" so I could use "Bundle by Name" within a "For
Loop" to set the values. The problem comes when I attempt to take the
array information and apply "Array to Cluster." The resulting cluster
only has 9 elements. What happened to the other 11 elements? The
"Help" has not been very helpful. With the broken wire deleted, I've
inserted an indicator for the "For Loop" index and a "Wait"
to slow down the loop so I can follow the values. The index goes from 0 to 19
as expected.
I'm at a loss as to how to proceed. I've attached my
"Test-problem.vi" to this message. Is there something fundamental
I've missed? Where is the problem?
Thanks
To answer your question: I've been programming for 25+ years, Everything
from assembly language, to procedural languages (FORTRAN, PL/I, PASCAL,
C), to object oriented languages (Java), to scripting languages (C
Shell, Perl).
Message Edited by JoeSz on 10-05-2005 06:17 PM
Attachments:
Test-problem.vi 227 KB -
Multiple instances of weblogic server 6.1 running on the same machine
Hi,
I need to run two instances of weblogic server 6.1 running on the same
machine. I need one for development and the other one running the live
applications. I need two instances to be independent of each other. I am
running weblogic server as an NT service. So I need two servers to start
from the service so they are independent of each other.
Thanks
MadhuHi.
You can create new servers in your domain via the console. Be sure they are
listening to different ports, however. If your NT machine supports more than
1 IP address then you could alternatively bind each server to a different
address.
I'm not sure if this answers your question?
Regards,
Michael
m holur wrote:
Hi,
I need to run two instances of weblogic server 6.1 running on the same
machine. I need one for development and the other one running the live
applications. I need two instances to be independent of each other. I am
running weblogic server as an NT service. So I need two servers to start
from the service so they are independent of each other.
Thanks
Madhu--
Developer Relations Engineer
BEA Support -
Multiple instances and listener/connect problem
Hi All
I Installed Oracle 8.0.5 on Redhat 6.2 , successfully. but I
have a problem Could any one please help me? Here i describe my
problem, please read patiently.
I am running three instances (t1,t2,t3). ( i started this
instances by logging in as 3 diferent users t1,t2,t3). and I
have included all this instances in the listener.ora properly.
now i start the listenr using LSNRCTL start, listener says 3
service handlers t1,t2,t3. ( all the t1,t2,t3 instances are up
and running i cheked using v$instance view by logging in as sys
as sysdba at svrmgrl)
now when i access t2 from the oracle client such as sqlplus
from a client machine, i get an error ORA-01034 Oracle Not
Avialable. this error i am getting only when i try to connect to
t2 and t3 instances. but when i connect to t1 the connection is
successful, one thing i observed here is i started the listener
from the login session of t1, so i stopped the listener and
started it again as the t2 user, now some thing strange ,
connection to t2 is successfull but t1 and t2 are giveing the
same error ORA-01034 Oracle not avialble. in the same way for
team3.
so if i start the listener from the same login session where
the instance is running ONLY that instance is accessible.
Could U please help me if any one has idea about this
situation.
Thanks in advance.The listener.ora configures the server. You should configure your
clients using tnsnames.ora. You could use a unified tnsnames.ora
by pointing the TNS_ADMIN to the same location. -
Multiple instances of the same VI running in parallel
Hi,
I have a timestamping subVI that looks at a counter channel and applies timestamps. I want to create multiple instances of this subVI (8 to be exact) and have them all run in parallel (looking at 8 different channels). Someone gave me the following advice:
>>
Also, in case you want to call multiple instances of the same SubVI, and you want these multiple instances to execute in parallel, you will have to set the SubVI to execute in reentrant mode. Do this by opening the SubVI and going to "Edit >> VI Properties >> Execution" and enable "Reentrant execution".
<<
I've tried this but only my second instance (I started simple with only 2 instances) seems to monitor its channel and pass data along to the queue. I've included my code below, I have two signal simulators which simulate singles coming in on channels 2 and 3. I'm using a PCQI 6602 counter/timer card.
Any help would be greatly appreciated, thanks in advance,
Chris
Attachments:
LabView App (June 28, 2005).zip 158 KBgood news! Your reentrant VI is working and all three instances are running (as execution highlighting clearly shows). The problem is going to be an error that is occuring but you don't see because you are ignoring the error clusters internally in the timer. It looks like at one point it was set to quit if an error occurred. That still needs to be there.
Always hookup error clusters...
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps -
Feedback nodes in subvis with multiple instances
I have a subvi that implements a state machine. I am using a feedback node to pass the state from one iteration to the next. I would like to have multiple instances of this subvi, but the problem is that the feedback is shared between all instances so the states get messed up. I need each instance of the subvi to run independent of the other instances and that its feedback only feeds back from the previous itereation of that subvi instance. Is this possible or do I need to rename the subvis to make them different and independent?
You will need to make the subVI's reentrant in order for them to maintain there own dataspace.
-
Problem running multiple instances of Creme JVM on Compaq IPaq
I have Creme JVM installed on my Compaq iPaq, along with the JVM plugin for Pocket IE registered.
I am running a socket server program on the Creme JVM on my PDA which listens on a particular port and outputs some response.
The client to this server is an Applet which is being run from the Pocket IE browser.
The problem is as the server program is already running on the Creme JVM, the applet is unable to start and says "Another instance of JVM is already running".
If i stop the server program and then start the applet, it runs fine.
I have tried running the server program with the option "-mi" which instructs the JVM to run in multiple instance mode, but to no avail.
Any pointers ??
TIA
HarishOk, maybe in 3.22 it was not yet solved, if you download the latest CrEme, this should work. If not, contact NSIcom support: [email protected]
-
Running multiple instances of program at same time problems
I have a c++ program that uses BerkeleyDB 4.8.26 with transactions. Program works well, and I can run multiple instances of program and they cooperate on database very well. Problem arises when I run a small test program that runs 10 instances of the same program at same time.
Test program opens database with transactions, it does some database reads and writes and quits. This test is run in 10 instances of the same program at the same time. Some instances run and finish well, other instances end up with some of these errors:
unable to allocate memory for the lock table
PANIC: Cannot allocate memory
Error opening environment: DB_RUNRECOVERY: Fatal error, run database recovery
another with:
db_files/__db.001: No such file or directory
db_files: No such file or directory
Error opening environment: Invalid argument
others with this one:
Log file corrupt at LSN: [1][84474]
fileops: close db_files/log.0000000001
PANIC: Invalid argument
unable to join the environment
db_files: No such file or directory
Error opening environment: DB_RUNRECOVERY: Fatal error, run database recovery
I don't understand reason of this error, as I thought (and read) that BerkeleyDB should be able to handle multiple instances accessing database and is thread-safe.
I tried to run the test on both NFS and local disk drive with same results.
Is there anyone with ide what could be causing this problem ? My platform is x86_64 GNU/Linux 2.6.18-164.el5
Edited by: Miro Janosik on 21.9.2010 22:42If there is someone who would like to look at this problem I'd like to show you program log files with verbose output turned on. There are 11 log files in the archive: http://bin.mypage.sk/FILES/log.rar
Log files that end up with lines like this one below mean that program finished running ok:
4000|0 4 20100922 07:07:24.094 20100922 07:07:24.094 FLOW_CMD
Here below is output from one of log files:
FilePersistentStorage::open() start
FilePersistentStorage::open() ReadDir
FilePersistentStorage::open() db_env_create
FilePersistentStorage::open() db_env_create ok
FilePersistentStorage::open() set cachesize
FilePersistentStorage::open() set_tx_max
FilePersistentStorage::open() set_timeout
FilePersistentStorage::open() set_lk_detect
FilePersistentStorage::open() exists homedir?
envp->open
FilePersistentStorage::open() envp->open
fileops: stat /var/tmp
fileops: open db_files/__db.rep.init
fileops: close db_files/__db.rep.init
fileops: open db_files/__db.001
fileops: close db_files/__db.001
fileops: open db_files/__db.001
fileops: mmap db_files/__db.001
fileops: close db_files/__db.001
unable to join the environment
fileops: directory list db_files
fileops: unlink db_files/__db.005
fileops: unlink db_files/__db.004
fileops: unlink db_files/__db.003
fileops: unlink db_files/__db.002
fileops: unlink db_files/__db.001
fileops: open db_files/__db.001
fileops: open db_files/__db.001
fileops: read db_files/log.0000000001: 12 bytes at offset 371
Finding last valid log LSN: file: 1 offset 371
fileops: close db_files/log.0000000001
fileops: open db_files/__db.005
fileops: seek db_files/__db.005 to 794624
fileops: write db_files/__db.005: 8192 bytes
fileops: mmap db_files/__db.005
fileops: close db_files/__db.005
fileops: open db_files/__db.006
fileops: seek db_files/__db.006 to 376832
fileops: write db_files/__db.006: 8192 bytes
fileops: mmap db_files/__db.006
fileops: close db_files/__db.006
fileops: open db_files/log.0000000001
fileops: read db_files/log.0000000001: 12 bytes at offset 335
fileops: read db_files/log.0000000001: 371 bytes at offset 0
fileops: directory list db_files
fileops: open db_files/log.0000000001
fileops: read db_files/log.0000000001: 28 bytes
fileops: close db_files/log.0000000001
Recovery starting from [1][243]
fileops: close db_files/log.0000000001
fileops: open db_files/log.0000000001
fileops: read db_files/log.0000000001: 28 bytes
fileops: write db_files/log.0000000001: 92 bytes at offset 371
fileops: flush db_files/log.0000000001
fileops: close db_files/log.0000000001
fileops: open db_files/log.0000000002
fileops: close db_files/log.0000000002
fileops: open db_files/log.00002
fileops: close db_files/log.00002
fileops: open db_files/log.0000000001
fileops: seek db_files/log.0000000001 to 463
fileops: write db_files/log.0000000001: 4096 bytes
fileops: write db_files/log.0000000001: 4096 bytes
fileops: write db_files/log.0000000001: 4096 bytes
fileops: write db_files/log.0000000001: 4096 bytes
fileops: write db_files/log.0000000001: 3633 bytes
fileops: close db_files/log.0000000001
Recovery complete at Wed Sep 22 07:07:23 2010
Maximum transaction ID 80000002 Recovery checkpoint [1][371]
FilePersistentStorage::open() ok
envp->lock_detect
FilePersistentStorage::open() lock_detect
rejected locks count: 0
db_create
dbp->open
fileops: stat db_files/test_aaps.db
fileops: stat db_files/test_aaps.db
fileops: stat db_files/__db.80000001.d9f23b56
fileops: open db_files/log.0000000001
fileops: read db_files/log.0000000001: 28 bytes
fileops: write db_files/log.0000000001: 67 bytes at offset 463
fileops: flush db_files/log.0000000001
fileops: open db_files/__db.80000001.d9f23b56
fileops: stat db_files/__db.80000001.d9f23b56
fileops: seek db_files/__db.80000001.d9f23b56 to 0
fileops: write db_files/__db.80000001.d9f23b56: 4096 bytes
fileops: seek db_files/__db.80000001.d9f23b56 to 4096
fileops: write db_files/__db.80000001.d9f23b56: 4096 bytes
fileops: flush db_files/__db.80000001.d9f23b56
fileops: close db_files/__db.80000001.d9f23b56
fileops: stat db_files/test_aaps.db
fileops: stat db_files/__db.80000001.d9f23b56
fileops: unlink db_files/__db.80000001.d9f23b56
fileops: open db_files/log.0000000001
fileops: read db_files/log.0000000001: 12 bytes at offset 463
DB_LOGC->get: LSN 1/463: invalid log record header
DB_TXN->abort: log undo failed for LSN: 1 463: Input/output error
fileops: close db_files/log.0000000001
PANIC: Input/output error
fileops: open db_files/log.0000000001
fileops: read db_files/log.0000000001: 12 bytes at offset 463
PANIC: fatal region error detected; run recovery
DB_LOGC->get: LSN: 1/463: read: DB_RUNRECOVERY: Fatal error, run database recovery
DB_TXN->abort: log undo failed for LSN: 1 463: DB_RUNRECOVERY: Fatal error, run database recovery
fileops: close db_files/log.0000000001
PANIC: DB_RUNRECOVERY: Fatal error, run database recovery
PANIC: DB_RUNRECOVERY: Fatal error, run database recovery
dbp->open end
dbp->close
PANIC: fatal region error detected; run recovery
envp->close
File handles still open at environment close
Open file handle: db_files/log.0000000001
fileops: close db_files/log.0000000001
PANIC: fatal region error detected; run recovery
Database 'db_files//test_aaps.db' open failed: DB_RUNRECOVERY: Fatal error, run database recoveryDatabase close failed: DB_RUNRECOVERY: Fatal error, run database recovery
environment close failed: -
Problem in creating multiple instance of Jboss running on same machine ???
Hi all
Please tell me steps to create multiple instance of Jboss with diffrent port number.
Actually i want multiple instance of Jboss with different port number running on same machine.
I tried with this steps, but it does not work for me.
In conf/jboss-service.xml i added
<mbean code="org.jboss.services.binding.ServiceBindingManager"
name="jboss.system:service=ServiceBindingManager">
<attribute name="ServerName">ports-01</attribute>
<attribute name="StoreURL">D:/dev/jboss-4.0.2/docs/examples/binding-manager/sample-indings.xml</attribute>
<attribute name="StoreFactoryClassName">
org.jboss.services.binding.XMLServicesStoreFactory
</attribute>
</mbean>
<mbean code="org.jboss.services.binding.ServiceBindingManager"
name="jboss.system:service=ServiceBindingManager">
<attribute name="ServerName">ports-02</attribute>
<attribute name="StoreURL">D:/dev/jboss-4.0.2/docs/examples/binding-manager/sample-bindings.xml</attribute>
<attribute name="StoreFactoryClassName">
org.jboss.services.binding.XMLServicesStoreFactory
</attribute>
</mbean>But i am getting an exception when i am trying to run jboss server
16:49:04,656 INFO [ServiceBindingManager] Using StoreURL: file:/D:/dev/jboss-4.0.2/docs/examples/binding-manager/sample-binding
16:49:04,750 ERROR [MainDeployer] could not create deployment: file:/D:/dev/jboss-4.0.2/server/default/conf/jboss-service.xml
org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.system:service=ServiceBindingMana
at org.jboss.system.ServiceCreator.install(ServiceCreator.java:70)
at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:153)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:118)
at org.jboss.system.ServiceController.install(ServiceController.java:202)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy4.install(Unknown Source)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:220)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:918)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:774)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:722)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:121)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:434)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:315)
at org.jboss.Main.boot(Main.java:195)
at org.jboss.Main$1.run(Main.java:463)
at java.lang.Thread.run(Thread.java:595)
Failed to boot JBoss:
org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.system:service=ServiceBindingMana
at org.jboss.system.ServiceCreator.install(ServiceCreator.java:70)
at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:153)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:118)
at org.jboss.system.ServiceController.install(ServiceController.java:202)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy4.install(Unknown Source)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:220)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:918)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:774)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:722)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:121)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:434)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:315)
at org.jboss.Main.boot(Main.java:195)
at org.jboss.Main$1.run(Main.java:463)
at java.lang.Thread.run(Thread.java:595)
16:49:05,125 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
Shutting down
16:49:05,156 INFO [Server] Shutdown complete
Shutdown complete
Halting VM
Press any key to continue . . .Please help me on this.
Thanks in advanceThen you haven't followed the method correctly. That error is
addressed specifcally on that site, as that error is the main
reason for the site. Did you read the note about the "known
bug" because of the one port that is not included in the
sample file?
If you had tried the first method (set up a second IP and
started both servers with the command line option providing
an IP) there is no way this error could happen.
If you followed the second method, and specified a different
port for every port listed (including the one that is not in the
sample file per default) then there is, once again, no way that
this error could happen.
The error happens on the second server because it is trying
to bind the same port, using the same address, as the first
server, which is impossible if you fully implement one of the
two methods described there. -
Running multiple instances of a top level vi
The following question is copied from a 1999 post which I am also interested in an answer to. It wasn't answered in '99, but maybe there are more people around today who could comment;
"I am interested in running multiple copies of a top-level vi in Labview
operating under Windows95/98/NT much like you could run several copies of
notepad.exe simultaneously. Whenever I attempt to start a second copy of a
vi (or .exe), in either the development or runtime environment, Labview just
brings the first copy to the foreground. Is it possible to alter this
behavior?"I think it is not a bug but an "open feature". What to do if there is 2 or more calls to the same VIT on the diagram? Should a new instance be created for each node or the same instance reused? It depends of the programmer's intents... The problem has been swept under the carpet allowing only one subVIT instanciation per diagram.
Back to the topic, one would have to be very careful to code an application where the same hierarchy of VIs has to run in multiple copies in parallel. User interface VIs has to be instanciated dynamically user VITs. What to do with subVIs with unitialized shift registers that shouldn't share their data amongst different hierachies? It is doable but requires a careful design. However for simple user display and
input, a VIT does the job.
The easiest way is to duplicate and run an executable file copy. That is because when a second instance of a LabVIEW executable is run, it detects the already running instance, passes the control to it and quit. With a different file copy of the executable, the application can be relaunched with its own application space where you can run the same hierarchy of VIs without conflicts.
LabVIEW, C'est LabVIEW -
Multiple instances of firefox running cannot kill in task manager "Access denied"
There's no issue with starting a new instance after closing one, the "firefox is already running" error is not occurring (ok maybe once or twice a month, but it's not related to this problem, as my problem happens all the time.)
Apparently when closing a ff window it never fully stops. My computer slows down because of it and these multiple instances of firefox show up in Task Manager. When I try to kill the extra processes it just goes "BANG" and the "access denied" error dialog box appears. They are all running under my user account, and in CPU some are just 10 or 25 and some are in the hundreds and some are over a million. what the heck is going on?
I'm running Windows 7 64 bit and ff 23.0 but this has been happening since about ff 15 (?)When closing Firefox completely, it is important to close it using the <i>Exit</i> button, located inside of the Firefox/File menu.
Another cause to this problem could be a Firefox preloader. Do you have any programs that will load Firefox automatically? They are supposed to improve start time.
You can also '''try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
''(If you're not using it, switch to the Default theme.)''
* Open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
''Once you get the pop-up, just select "'Start in Safe Mode"''
'''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
I hope that one of my solutions helps to fix your problem. Please report back with updates soon.
<b>NOTE: </b>You are using an outdated version of Firefox. This can cause security and functionality issue. Please update to the most recent version as soon as possible. -
Having trouble running multiple instances of Firefox in XenDesktop 7.1
We recently upgraded our Citrix environment to XenDesktop 7.1. We published Firefox, but only one user at a time can have the program open. When we try to run multiple sessions, we get this error message "Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system."
We've had it published in previous Citrix environments with no problems. How do we need to configure Firefox in XenDesktop so that multiple users can run the program at the same time? Thanks.I do not understand virtualisation.
I can however say that ordinarily Firefox needs each user to have a separate profile and for Firefox to open simultaneous multiple instances with separate profiles the ''-no-remote'' argument needs to be used.
* http://kb.mozillazine.org/Using_multiple_profiles_-_Firefox
* http://kb.mozillazine.org/Opening_a_new_instance_of_your_Mozilla_application_with_another_profile -
Problem:Multiple instances of the same applet on a webpage...
I have an applet which connects to a server to read an XML-file.
I use Doucument to parse the XML-file like this:
String xmlurl="http://www.somesite.com/somexmlpage.php";
Document d =DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(xmlurl);
(...read the XML-file...)
This works fine.
However, I need multiple instances of the same applet running at the same time on the same webpage.
Now, with multiple applets running at the same time the parsing no loger works. If one applet is doing some parsing and a taskswitch takes place to let another applet run, the applet which is interrupted is not able to continue the parsing as it looses its "incoming data" when another applet reads from the server.
How can different applets affect each other like this?
And how can I fix the problem?
Thanks in advance for any help!!However, I need multiple instances of the same applet running at the same time on the same webpage.
Why? But okay.Because the the different applets show information about different items.
Now, with multiple applets running at the same time the parsing no loger works. If one applet is doing some parsing and a
taskswitch takes place to let another applet run, the applet which is interrupted is not able to continue the
parsing as it looses its "incoming data" when another applet reads from the server.
How did you determine that's what's happening?By printing out debuginformation.
Each applet prints out a message (System.out.println) when it creates an instance of Document (ie. connects to the server) and the applet also prints out XML-information as the XML-file is processed.
But, actually, I was a bit quick in my first post; The applet doesen't neccesarily loose its "incoming data", but the parser looses the data it is parsing. I can download the data from the server first, and then start parsing it. If a taskswitch happens while one applet is parsing, it looses its data, even if the data is allready downloaded.
I see this since I see another applet making a printout, and when first applet starts again, the parser has lost track of its data.
It works fine if only one applet is running. And everything is fine until the next applets starts; I can see this from the printout.
Again, the appet prints out data as it parses the document. I see the next applet starting to work, and when the first one continues parsing again the printout shows that data is no longer there. It happens everytime the runtime switches to another applet, and it never happens if just one applet is running.
Googeling a little tells me that DocumentBuilder.parse() isn't thread-safe, but this shouldn't have anything to do with it, should it?
Each applet is a separate process, and not different threads in the same process, aren't they? (Not sure how the runtime treats multiple applets...)And secondly, the applets create their own instance of Document anyways. -
Static member problem in multiple instance of web application
Problem
I am working on a product which is java based. I have a war file. I have to deploy this war file in JBoss. Further, I need to run multiple instance of this war file in same JBoss instance.
Issue
In that war file there is servlet Start.java. That servlet calls an other class from its init method. Here is code
public class Start extends HttpServlet
public void init(ServletConfig config) throws ServletException
super.init(config);
DB.loadProperties (�db.properties�);
} // init
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
} // doGet
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
} // doPost
} // Start
public final class DB implements Serializable
public static final String P_UID = "ApplicationUserID";
private static final String DEFAULT_UID = "System";
public static final String P_PWD = "ApplicationPassword";
private static final String DEFAULT_PWD ="System";
public static final String P_STORE_PWD = "StorePassword";
private static Properties s_prop = new Properties();
public static boolean loadProperties (String filename)
{ // looks for properties file
s_prop = new Properties();
FileInputStream fis = null;
try
fis = new FileInputStream(filename);
s_prop.load(fis);
fis.close();
catch (FileNotFoundException e)
log.warning(filename + " not found");
loadOK = false;
�}
As you can see if I deployed two instance of this war in JBoss and assume each instance point to its own properties file. The �Static� members are problem.
Restriction
I am not allowed change the code or logic of the product. I must be able to get some thing outside or apply a patch to solve this problem.
Please Help
Possible option that I have thought
1 Using multiple JVM - Not an option in this project
2 Using multiple JBoss � Not the requirement (need to run only on single Instance of JBoss)
3 Use own class loader for war/ear � don�t know how in JBoss need help.
I am using JBoss 3.2.3
Thanks,
KumaranStatic members belong to the class. So, you needto
think of multiple JVMs for your problem.Thanks for reply.
don�t know how in JBoss need helpJust guessing... clustered environment MAYBE
RichThanks Rich,
I don�t know how Cluster environment solve my problem. I need more information on your thought. Cloud you explain it.
Kumaran -
Multiple instances of "plugin container" running
I have consistently had up to five instances of plugin container running in the background...
* Windows Vista 32 bit build Ver 6.0 SP 2
* Firefox 4.0x
So far nothing can be attributed to web browsing behavior.
ThanksThere is a known issue where multiple instances of plugin container open if history or cookies are cleared. Are you, or some utility clearing firefox cookies or history, that could be the reason. This problem continues even if plugins are disabled in Firefox.
*Are you opening multiple instances of Flash Player ?
* Is the problem reproducible ? <br/> for instance does it always crash the plugin or cause it to hang if you use a particular site ?
If you get the FlashPlayer plugin crashing use the option to submit the crash reports, it is then possible to follow them up. It is possible to stop the plugincontainer opening, but that could result in a firefox crash. Of course the firefox crash can also send crash reports out, and that could be useful.
* see [[plugin crash reports]]
* [[what is plugin-container]]
* [[firefox crashes]]
There are some problems with FlashPlayer currently under investigation, and there may be other threads in the forum about problems. (e.g. Bug 561019 - Plugin waveOutOpen hangs )
Sometimes using Firefox 3.6 is a workaround that helps with FlashPlayer problems, if you wish to experiment with that consider installing firefox Portable and using Firefox 3.6.23 (or soon 3.6.24) for tests with flash player, whilst keeping firefox 7 for day to day browsing.
* [[http://portableapps.com/apps/internet/firefox_portable/localization#legacy36]]
Maybe you are looking for
-
Phone and Tablet versions are too small
When using a phone or tablet to view my website www.elrocco.com.au the pages are too small. The desktop version is fine. I use GoDaddy for domain management and forward to elrocco.businesscatalyst.com When I use the url elrocco.businesscatalyst.com d
-
How to use 0EC_CJOB_ATTR instead of 0JOB_ATTR in 2004S ECC HR BI?
Situation: We did some enhancement (addition of fields) to the datasource 0EC_CJOB_ATTR. All the changes made to 0EC_CJOB_ATTR appear in 0JOB_ATTR as well. 1. But when trying to extract data in /nRSA3, 0JOB_ATTR is erroring out and 0EC_CJOB_ATTR doe
-
Hi, I am using the Ni 6221 card and I am stuck with this problem. I haven't figured out why it doesnt work. So I am running 7 valves (solenoids) in my system. I wanted to added 2 more. But I am facing a problem of controling the two new valves indepe
-
Adobe CS5 - InDesign V7.0 Mac OSX 10.6.8 Using InDesign, when I export this file to PDF (High Quality Print), the Outer Glow of some text and PSDs are being rendered as blobby outline strokes. However, when I export the same file as JPEG, the render
-
IPhone fails to locate a carrier when set to automatic ?
My iPhone 5 fails to find a carrier when set to Auto? If I reset it to 'manual' search, it will locate all available carriers. Why is the phones 'auto function' not working since the last iOS update?