Multiple instances of application problem?

Hope that someone knows something because it's very strange.

OK here is my scenario:

-J' have a user interface application

-on one of the screen appears a list of pdf files

-When the user clicks on a file the program opens with associated pdf viewer, if necessary - this is done by using the Manager API content make a registry for my application and an invocation

-the problem is that when I open a file close, open another file, and then close the main method of my application is run again.

-by opening the files in my application remains in the background and when the user closes the pdf my application Viewer appears in the foreground

How it happens that several instances of the application are created? (via the main method)

OK, this is so weird. I think that I fixed it, but I don't know yet why it suits it.

My difficulty is that I added a listener response to the registry. Here's a sample:

registry.setListener(new ResponseListener() {

  public void invocationResponseNotify(Registry registry) {
    registry.getResponse(true);
  }

}

registry.getResponse (true) blocks and waits for the response. This seems to be the key. After the opening different pdf files and closing then I close my fine application and no other instances of it are created.

I'll be really really super happy to know what is happening and how is - what happened and why my fix fix it?

For me, this solves my problem and is a solution, but it will be fine if someone gives some info on it so this thread might be useful to other people, too.

Tags: BlackBerry Developers

Similar Questions

  • get all the screws in memory on multiple instances of application LabVIEW

    I try to get references to all of the screws in memory on multiple instances of LabVIEW application. Specifically, I'm trying to get the VI Refs screw (and their subVIs in memory) in another Explorer of projects at design time. (The other screws do not work.) For example, if you are only interested in VIs in the current instance of App (read the Project Explorer), you can use the following code:

    However, if you have multiple projects open, how can you get the references VI to the screw in the other project? It seems to me that it would be an another App Ref, but I guess I don't know how to get this reference. I'm assuming that if I could get this reference, I could use it in the same way as above for the list of App.AllVIs.

    Any help/clues would be appreciated. Thank you.

    I just tried the code below.  It runs in a single project; I have also open a second project with more than 300 screws and it opens a reference to each one without any error.  Are you the application instance reference wiring open Reference VI?

  • Multiple instances, simple applications of level

    Hi all

    I'm looking for a little guidance regarding having 2 separate EBS database instances, working from a single mid level Apps 11.5.10.
    I spent a few hours trying to dig up information on this topic (Metalink/internet), but most of the searches return top Appl sharing information of for multi mid level of nodes.

    Is it possible to run 2 databases under a middle layer? or should I clone just the whole environment? If possible, a link some with additional reading would be most appreciated.

    Thanks for any help.


    Andy.

    Hello

    You cannot configure the application for access to multiple databases at the same time. However, you can have multiple instances (CAR database) within a single application layer files - see (Note: 403347.1 - MAA road map for E-Business Suite) for more details.

    Kind regards
    Hussein

  • Multiple instances of Application when you use the background thread

    Hi all

    I recently added a background thread in an application that is launched from an other point of entry. This background thread will constantly (every X seconds) carry out checks of RMS and compares the timestamps. When recalcitrant, he sends a notification to the user who launches the application when clicked. The problem is...

    When the user clicks on the notification, it will open the application normally (with the icon and everything), but it also opens a second instance that does not have an icon. I have concluded that the code that actually launches the request isn't the culprit (because if I take out, it nevertheless opens the second instance). This makes me think that it has something to do with the ApplicationDescriptor.

    My notification Manager has this line:

    ApplicationDescriptor appDescriptor = new ApplicationDescriptor (ApplicationDescriptor.currentApplicationDescriptor (), application name, new String [] {});

    If I change this to only return the currentApplicationDescriptor() or add the arguments in the array of strings, notifications do not work.

    Can anyone think of a reason why this is happening?

    I solved the problem I had.

    In the end, I ended up changing this code:

    final ApplicationDescriptor mainDescription = ApplicationDescriptor.currentApplicationDescriptor ();
    final ApplicationDescriptor appDescriptor = new ApplicationDescriptor (mainDescription, application_name, new String [] {});

    TO:

    moduleHandle int = CodeModuleManager.getModuleHandle (APPLICATION_NAME);
    ApplicationDescriptor mainDescriptor;

    If (moduleHandle! = 0)
    {
    ApplicationDescriptor apDes [] = CodeModuleManager.getApplicationDescriptors (moduleHandle);
    apDes = mainDescriptor [0];

    ApplicationMessageFolderRegistry folderReg = ApplicationMessageFolderRegistry.getInstance ();

    If (folderReg.getApplicationFolder (NotificationManager.INBOX_FOLDER_ID) == null) {}
    notificationManager.init (folderReg, mainDescriptor);
    }
    }

    Instead of using the currentApplicationDescriptor(), I was referencing the module of the application itself using the CoreModuleManager. My init method takes in the ApplicationDescriptor and use it for everything.

    Thanks to all who have any time to read my post!

  • Volume mixer creates multiple instances of application

    I am running windows7 64 bit...

    Apllication for after effects cs4 32 bit creates a new instance every time I use the volume mixer to fight against it... and it delete or refresh after aftereffects is closed... How can I remove the additional instances?
    The rest of the applications are working fine...

    Hello

     
     
    The question you posted is more appropriate for the Adobe help support forum so I suggest you to post the question on the Adobe support forum help for assistance. Check out the link to send the same.
    http://www.Adobe.com/support/
     
     
    Thank you.
  • Multiple Instances of the Application to access the same DAQ hardware

    I have a relatively simple application that reads from a device of data acquisition (OR-9205 connected to NI WLS-9163) wireless.  I would like to run multiple instances of the executable, but I get the error-201105 (resource reserved) as soon as the DAQmx task starts on the second instance.  Each instance tries to acquire different channels of the same DAQ hardware.  Is this a problem with the data acquisition device, or DAQmx in general?  Thank you.

    -Joe

    Hey Joe,

    Unfortunately, you can only one type of access channel with each program.  For example, you might HAVE a program access and another use AO, but you can't have two programs different AI the same access card.  It is common among all of the DAQ hardware to NEITHER.

  • How to avoid multiple instances of the application

    Hello

    I would like to know how I can to avoid multiple instances of my request, my application have an option to "invoke later" which will awaken the application after xx minutes but where the user clicks on the icon of the application, for example, a few seconds before he must wake up he will see 2 instances open my application.

    Currently, the work around I did is check at every opening, if there is already an open instance and if so to 'kill' later, but I would like to know if there is a more elegant way to do it.

    THX.

    You create a new ApplicationDescriptor - you say the BlackBerry OS that it is a new Application.

    If you use this method, and then the user clicks on the new icon, they will get also running two instances.  Here is a code that restarts the application 'running', that I think that it what you want.

    ApplicationDescriptor current = ApplicationDescriptor.currentApplicationDescriptor ();
    ApplicationManager.getApplicationManager (.scheduleApplication) (current, System.currentTimeMillis (+ 2001), true);
    System.Exit (0);

  • How to avoid creating multiple instances of the application?

    Hello

    We have a user interface Application. The application has been set to Auto run at startup and as a Module system.

    The application has a file listener that checks all new emails.

    When we start the application from the user interface by clicking on the application icon, it seems that the multiple instance of the application is created. For this reason when send us an email to request it is receiving emails several times. Sometimes simple, double and sometimes even five times.

    public class MyApplication  extends UiApplication implements FolderListener,
            SystemListener, GlobalEventListener {
    
        // Boot
        public static void main(String[] args) {
            if (args != null && args.length > 0 && args[0].equals("gui")) {
                // code to initialize the app
                fromService = false;
                // register the notification
                Notification n = new Notification();
                n.registerNotificationObjects();
    
                Utilities.writeLog(GUID, "MyApplication GUI Starting up");
                MyApplication service = new MyApplication();
                service.enterEventDispatcher();
            } else {
                Utilities.writeLog(GUID, "OnBoardV2 Service Starting up");
                MyApplication service = new MyApplication();
                service.enterEventDispatcher();
            }
        }
    
        public void messagesAdded(FolderEvent e) {
            /// Receive messages
            }   
    
    }
    

    In this regard, any help will be apreciated!

    Thank you

    I don't know if it's your entire code, but if you register your application as a file time listener never, it is called, then you save several headphones. The listener does not cause deleted your app closes, you must explicitly remove the listener. You must either put the listener in its own class and only sign up to start or find a way to check if the listener is already registered whenever the application is called.

  • Reload applications multiple instances in a cluster

    My apologies if cela in another post, but did not find anything.

    I'm looking for strategies recharge vars app on multiple instances in a cluster.
    Any suggestions?

    Thank you

    Mike

    You can't change just the web root of TJS to point to where the lives of your code?

    See here:
    http://KB.Adobe.com/selfservice/viewContent.do?externalId=tn_19400

    I want to say... that is not something you're supposed to do anyway?

  • Explorer 8 opens multiple instances of rundll32.exe when closing

    When I close Explorer 8, rundll32.exe opens multiple instances and memory in the Task Manager go to more than 800,000 for each instance. After running this ram computer and virtually lock up the computer. If I stop the process, everything works normally until I opens and closes Explorer 8. It is repeatable and consistent.

    I use Vista Business, 4 concerts, Dell Latitude D830. Rundll32.exe have searched and found only one instance... located in C:\Windows\System32. I ran several programs of virus and malware and can't find any problems. Register is also good.

    I had similar problems with changing app crash of video files in a folder list to views of large icons.  I sent a problem report and in return had a fix, I unfortunately deleted after it corrected my problem.   I had to go to the command promp
    and in C:\Windows\System32 I had to modify the command that has been something like the pointed out below.

    Fault Module name: Mpeg2Parser.ax
    I think that if you send an error report that you receive a solution.

    It's because of the problem I had.
    Product

    Windows host process (Rundll32)

    Problem

    Stopped working

    Date

    18/06/2009 15:58

    Status

    More information

    Signature of the problem

    Additional information about the problem

    Bucket ID: 376914080

    Problem event name: APPCRASH

    Application name: RunDLL32.exe

    Application version: 6.0.6000.16386

    Application timestamp: 4549b0e1

    Fault Module name: Mpeg2Parser.ax

    Fault Module Version: 1.2.0.79

    Timestamp of Module error: 38e280dd

    Exception code: c0000005

    Exception offset: 00006210

    The system version: 6.0.6001.2.1.0.768.3

    Locale ID: 2057

    Additional information 1: fd00

    More information 2: ea6f5fe8924aaa756324d57f87834160

    Additional information 3: fd00

    Additional information 4: ea6f5fe8924aaa756324d57f87834160

  • Installation of multiple instances of Essbase on a single machine

    Dear gurus,

    I did the install vanilla of the costume of Hyperion (11.1.2.2) products on my machine (windows 2008 SP1, its a Virtual Machine) virtual machine (I installed Foundation, EAS and just Essbase)

    My first Essbase instance is running on default port 1423and I tried to configure the second instance of Essbase using port 1424 and all the donfiguration succeeded. I can see the 2nd service of essbase running at services.msc

    I followed the steps mentioned in the:

    http://docs.Oracle.com/CD/E17236_01/EPM.1112/epm_install_11121/frameset.htm?essbaseAgentPortPanel.html

    My 1st instance is installed to: D:\Oracle\Middleware\user_projects\epmsystem1

    My 2nd instance is installed to: D:\Oracle\Middleware\user_projects\epmsystem2

    Now the problem is that I can add and connect 1st instance of Essbase (SERVERNAME:1423) using the administrator account in the environmental assessment.

    but when I try to add 2nd Instance of Essbase as SERVERNAME:1424 using the administrator account, it throws the following error:

    Error on the Regional service console:

    Admin October 8, 2013 14:29:21 IST com.essbase.eas.admin.defs.AdminCommands.AddServerToUserList Succeeded

    Essbase Server: SERVERNAME:1424 com.essbase.eas.essbase.defs.ServerCommands.Connect IST 14:29:22 October 8, 2013

    Error: 104: username or password

    Error: 1051012: native://DN=cn=911 of the user, or = People, dc is css, dc = hyperion, dc = com? The USER does not exist

    Error on Essbase.log (of 2nd instance):

    [Mar Oct 08 10:59:22 2013] Local/ESSBASE0 / / / 7488/Error (1051012)

    The user native://DN=cn=911, or = People, dc is css, dc = hyperion, dc = com? The USER does not exist

    [Mar Oct 08 10:59:22 2013] Local/ESSBASE0 / / / 7488/Warning (1051003)

    Error 1051012 processing application [LoginEx] - disconnect

    EPM diagnosis system run on 2nd instance watch following under "Essbase/Essbase:

    FAILEDEE: Essbase ServerValidate the connection to the Essbase on servername Server
    Error: Cannot sign as an already logged in user.
    Recommended action: Check that essbase server is started.

    Can you please guide me what to do to access this 2nd Forum.

    (1) do I need to have a separate ADMIN user creation for this 2nd instance essbase? If Yes, then HOW?

    (2) I can just copy the essbase.sec of 1st instance of 2nd instance?

    Can you please point me to a reference to have multiple independent instances of Essbase on the same machine?

    I sincerely thank you for your time to this request.

    Best regards,

    Amit

    Do not copy the file s multiple instances.

    It seems that the 2nd day of the Essbase instance has not registered properly with Shared Services, you can try renaming the essbase.sec on the 2nd instance, erase the Essbase.log, resume Essbase, then check the Essbase.log to see if there are errors anyt'ing.

    See you soon

    John

    http://John-Goodwin.blogspot.com/

  • CF 11 Enterprise multiple instances are not created correctly with a separate service account.

    The company that multiple instances are not created correctly with a separate service account.

    The questions that I have are very similar to the issues identified in the link below.

    https://forums.Adobe.com/message/6584848#6584848

    My company of 11 CF will not create additional services for my sites of cold fusion beyond the initial service created during the installation process. My problems are compounded because when I try and uninstall the CF11 Uninstalling application crashes and generates the error below. I now have to try to manually uninstall to reinstall CF11. Any help or suggestion to get the problem solved is welcome.

    Description:

    A problem caused this program blocking interact with Windows.

    Signature of the problem:

    Problem event name: AppHangB1

    Application name: javaw.exe

    Application version: 7.0.510.13

    Application timestamp: 52b25e38

    Hang Signature: 0967

    Hanging Type: 6144

    OS version: 6.1.7601.2.1.0.274.10

    Locale ID: 1033

    Signing of additional blocking 1: 09675b5d8f587c9fd57b85cb72e629da

    Signing of additional blocking 2: 2cff

    Signing of additional blocking 3: 2cff32d5db809ac6ce8170a1d7ac1eb0

    Signature of blocking additional 4:0967

    Signing of additional blocking 5: 09675b5d8f587c9fd57b85cb72e629da

    Signing of additional blocking 6: 2cff

    Signing of additional blocking 7: 2cff32d5db809ac6ce8170a1d7ac1eb0

    I solved the problem with the implementation of Cold Fusion 11. I had to disable Windows server 2008 R2 UAC for all users in order to complete the installation with IIS as a web server. This also solves the problem with the inability to uninstall Cold Fusion.

  • How can I hide/show toolbar again operate independently on multiple instances of firefox?

    I run two instances of firefox.exe. One for the left monitor and one for the right. There is a toolbar that I want to see on the right screen, but I don't want to see it on the left screen. This used never to be a problem, but it is now. It seems as if well now why show/hide toolbars are inextricably linked, and by changing or watching a toolbar on a single instance simultaneously causes the exact change even on the other open instance. I'm hoping that it could be a simple solution to this effect in the subject: config, however, I would rather not tamper with these settings until I'm sure that settings with the fix for this particular problem.

    Thank you for your attention and for taking the time to read this post.

    Sincerely;
    DC

    Toolbar settings are common to all windows open in this instance of Firefox.
    I don't know if there is an extension that allows to fix this dependent window, so you can check the website of modules.
    If you can't find one then you would use a second instance with its own profile.

    You can add - no.-distance to the command line to open another instance of Firefox with its own profile and run multiple instances of Firefox at the same time.

  • Question about multiple instances of Thunderbird running at the same time

    I read that when you start Thunderbird by clicking on its icon or the shortcut must only load once, even if you click on it several times. It should be just a window of TB. If I click on the shortcut/TB desktop icon, it behaves like that. I can click several times and that a single TB window will open and be active.

    However, if I run the 'quick launch' TB on my windows 8.1 (or no matter what windows) taskbar, I get mulitple TB windows to open, as much as I want. So if I click on TB icon in the quick launch once, I get a single instance of it. Twice, I get two, and etc. In the quick launch any program behaves like that. He starts programs with a single click and launch again and again.

    Only, I click it once and get an instance which is good and how it should be. But this behavior with the quick launch is ok? It must do this not with Thunderbird? Thank you.

    There is usually no advantage by running multiple instances of Thunderbird, unless specifically do you these race with different profiles. In practice, if they are allowed to use the same profile, the first Thunderbird should should acquire the profile and therefore block the others, although this may not become apparent until you try to salvage something, for example, a message, or to change certain settings.

    Your multiple Thunderbird work successfully? They all show the same mixture of accounts, folders and address books? Can all or part of them save and make changes?

    If this is the expected behavior, (i.e. some "typical" windows) I do not like; He does not play well with profile blocking and I think that lead to problems.

  • Firefox does not work for multiple instances of the SAME user account on Windows Multipoint Server 2011

    We have a PC HP of MulitSeat MS6200
    It runs Microsoft Windows MultiPoint Server 2011 (which seems to be a twisted version of Windows 7)
    It is implemented in a laboratory of computer science and students connect you using their account for shared room - IE multiple instances of the same user accounts are currently running on the PC at the same time.
    The first student to run Firefox can work with it without a problem.
    However, when another student try to start firefox they get the following 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.

    Cannot start Firefox using a profile that is already used by someone else.
    Each Firefox instance needs its own profile or you will get this error message.

    Use-no.-line switch remote control to open another instance of Firefox with its own profile and to different instances of Firefox running concurrently.

Maybe you are looking for