Loading multiple instance of a

Hi,
I'm trying to develop a Java application with Avetana Bluetooth. This library is a complete stack for Bluetooth in Java. The big problem is the hardware interface: Avetana can get only one instance for each java application running on it. So, if I have multiple hardware interface on my system, I must run multiple JVM with my application...
This happen because the Avetana library have a lot of static variable to hold some reference to the bluetooth hardware.
The big question is: can I make some Java code to create & run multiple instance of my Bluetotth code, so each Avetana Library is TRULY loaded in a ISOLATED context (so the static variables are independent each from others)?
I've tryed with custom classloading but nothing...
Here is the code from main() on StaticTestClassLoader (a code used for testing).
MyBT is the Bluetooth class wich load the Avetana library on hardware interface (specified by the method initStack(int hardwareInterfaceID)).
URL[] url = { new File("subdir").toURL() }; // because MyBT.class is in the "subdir" folder
URLClassLoader cl1 = new URLClassLoader(url);
URLClassLoader cl2 = new URLClassLoader(url);
URLClassLoader cl3 = new URLClassLoader(url);
Class<MyBT> c1 = (Class<Dummy>)cl1.loadClass("MyBT");
Class<MyBT> c2 = (Class<Dummy>)cl2.loadClass("MyBT");
Class<MyBT> c3 = (Class<Dummy>)cl3.loadClass("MyBT");
Object bt1 = c1.newInstance(); // this is line 22 where exception rise up
Object bt2 = c2.newInstance();
Object bt3 = c3.newInstance();
((MyBT)bt1).initStack(0); // run my Bluetooth application on hardware interface #1
((MyBT)bt1).initStack(1); // the same but on hardware interface #2
((MyBT)bt1).initStack(2); // the same but on hardware interface #3No error while compiling, but when running:
Exception in thread "main" java.lang.NoClassDefFoundError: MyBT
        at StaticTestClassLoader.main(StaticTestClassLoader.java:22)this happen if I didn't add on classpath the MyBT class in the "subdir". If I add it, it works but all three instance are in the same context and the library doen't load the right hardware interface...
If I omit the obejct assignement with bt1, bt2 and bt3 it works in both scenarios, but I haven't any reference to the new instantiated classes ...(so I can't call methods on there!)
Any idea, web link or suggestion?
Thanks in advance, best regards,
Francesco Pessina.

I think the question is detalied in an unclear manner. The substance of my question is:
- I have some code in a library with static variables.
- if I load (instantiate) this library one, twice or more, this static variables have all the same value because are static and live in the same JVM/context
- the need is to load & use this library multiple time (two or more "instance" of it) from the same application in a single JVM.
So my trouble is to write some Java code that create a runtime different context spaces in the (single) JVM so I can run this "static" library more times (one library for each context).
I've tryed with classloader and singleton but all instantiated class have always the same context, so the library have (in all the created instance) always the same static variable values.
Sorry for my english, have a good new year!
Regards,
Francesco.

Similar Messages

  • Need help - Loading Multiple instance of the same image

    Hi guys,
    I have been trying for days now, to get this working but i'm not able to do so, i have been trying to get actionscript to load multiple instance of an image file using a for loop.
    Would anyone be able to enlighten me on this?  the other functions are located on a seperate actionscript file.
    many thanks
    part of the code is as follows: (it works if i use the graphic class)
    function makeRoad():void{
        var row:int = 0;//the current row we're working on
        var block;//this will act as the block that we're placing down
        for(var i:int=0;i<lvlArray.length;i++){//creating a loop that'll go through the level array
            if(lvlArray[i] == 0){//if the current index is set to 0
                block = new EmptyBlock();//create a gray empty block
                block.graphics.beginFill(0x333333);
                block.graphics.drawRect(0,0,25,25);
                block.graphics.endFill();
                addChild(block);
                //and set the coordinates to be relative to the place in the array
                block.x= (i-row*22)*25;
                block.y = row*25;
                } else if(lvlArray[i] == 1){//if there is supposed to be a row
                //just add a box that will be a darker color and won't have any actions
                block = new Shape();
                block.graphics.beginFill(0x111111);
                block.graphics.drawRect(0,0,25,25);
                block.graphics.endFill();       
                block.x= (i-row*22)*25;
                block.y = row*25;   
                roadHolder.addChild(block);//add it to the roadHolder
            } else if(lvlArray[i] is String){//if it's a string, meaning a special block
                //then create a special block
                block = new DirectBlock(lvlArray[i],(i-row*22)*25,row*25);
                addChild(block);
            for(var c:int = 1;c<=16;c++){
                if(i == c*22-1){
                    //if 22 columns have gone by, then we move onto the next row
                    row++;

    @Kalisto - i don't think that is the real issue here since we cannot see what is in the DirectBlock class and the OP has not mentioned any compiler errors.
    Desmond - it appears as though you are constructing this in the form of a 'grid' - correct?  but the problem i believe is that the positioning is not being determined properly - to do something like you want here (i think) you would use what known as a 'nested loop' - this means the 'outer' loop handles iteration of the 'rows' and an 'inner' loop handles the iteration of the columns.  the way you have this set up above, you are attempting to use the 'row' value to position both the row and column - this wont work and it's likely that everything is getting 'stacked' on top of one another.
    may want to structure things a bit more like this:
    function makeRoad():void {
         var index:int = 0;
         for(var row=0; row<22; row++) {
              for(var col=0; col<22; col++) {
                   index = (row*22)+col;
                   if(lvlArray[index] == 0) createBlock(0x333333, col*25, row*25);
                   if(lvlArray[index] == 1) createBlock(0x111111, col*25, row*25);
                   if(lvlArray[index] is String) roadHolder.addChild( new DirectBlock(lvlArray[index], col*25, row*25) );
    function createBlock(color, xp, yp):void {
         var block:Shape = new Shape();
         block.graphics.beginFill(color);
         block.graphics.drawRect(0,0,25,25);
         block.graphics.endFill();
         block.x = xp;
         block.y = yp;
         roadHolder.addChild(block);
    note: i do not know how many 'rows' you intend to have and are stored in the array so the row<22 will need adjustment

  • What is the best way to load multiple instances of a button into master index page?. I have looked a

    I have successfully created an animated button that opens to reveal a quotation with a nested clickable link to the source. What I would like to do is have several of these with different quotes inside them, scattered on the page. I have looked at the composition loader available via Edge Commons, and it seems that would require some sort of Edge animate Stage 'frame' to load the instances into? Is there any way to place them directly into the master page - as div elements...?
    The outer of the buttons is the same, on hover they open partialy on click fully, to reveal  their particular text - which I thought about loading it at runtime with json, or maybe handlebars...?
    I would also like to make the buttons only take the necessary space. ie. before they expand they are only buttons. ( I have set the stage to hidden but it still takes up space). To acheive this, I think perhaps I will have to target the inner components css, and set them as display:none until the button is hovered over, then set :hover and :active pseudo classes inside edge. Is this feasible?
    Thanks in advance for any ideas/suggestions...

    Hello, Thanks for your helpful input. Based on that, and the tutorial 'http://tv.adobe.com/watch/learn-edge-animate-cc/ingesting-external-data-dc/' - I have written code to drive my button's behaviour.  (copied below...)
    var textArray =new Array();
    var currentHead = 0;
    var currentText = 0;
    var currentFoot = 0;
    var s = sym.getSymbol("textContainer");
    sym.$("textContainer")$.("text").html("");
    var sh = sym.getSymbol("headContainer");
    sym.$("headContainer")$.("head").html("");
    var sf = sym.getSymbol("footContainer");
    sym.$("footContainer")$.("footer").html("");
    $.getJSON("assets/sources1.json", function(data){
              for (var i=0; i<data.length; i++){
                        textArray.push({"head":data[i].heading,
                                  "text":data[i].text,
                                  "footer":data[i].foot,
                                  "link":data[i].link});
              sym.$("headContainer")$.("head").html(textArray[currentHead]).heading;
              sym.$("textContainer")$.("text").html(textArray[currentText]).text;
              sym.$("footContainer")$.("foot").html(textArray[currentFoot]).foot;
              sym.$("footContainer")$.("link").html(textArray[currentLink]).link;
    But there is an error I don't understand at line 7...
    Also - as you can see, at present I have several symbols in parallel. Would I be better off nesting the text containers inside the outer button container? and would I be better off creating styled mini- pages of text data, and then loading them - instead of loading them as symbols? I have had to create seperate symbols because I cannot adequately stle the text - so some is bold, some is italic etc. within one text field. Or can I? I guess I could nest several text fields inside one symbol...?
    I remain unsure how to load the finished animation button instances. In your example you were still loading into an animation But from yor example, I guess I would need to place all my examples inside an outer edge composition... but then I think positioning them accurately with css, making adjustments etc. will be fairly tricky. Is there any way to place multiple instances directly into divs in index.html? Could I simply repeat the class...? I may be answering my own questions here.

  • Loading multiple instances of the same loader

    Hello everyone,
    I am trying to load in 5 pictures but 2 of those pictures need to be added multiple times to the same scene. For example you would use Loader to load one tree but would show that tree 9 times. The problem I am experiencing is that each object loads fine once but objects that are the same with different x and y values are placed at the last location that was set in the loop.
                for(var i=0; i < LoadedXml.resources.resource.(@type==LoadedXml.resources.resource.@type[fileCount]).@coun t; i++)
                    sprite.name = LoadedXml.resources.resource.@type[fileCount] + i;
                    sprite.x = LoadedXml.objects.object.(@type==LoadedXml.resources.resource.@type[fileCount] &&  @instance == i).@x;
                    sprite.y = LoadedXml.objects.object.(@type==LoadedXml.resources.resource.@type[fileCount] &&  @instance == i).@y;
                    table.push(sprite);
    this code sets the properties but say the count is equal to 9 and the last x and y set is 20 , 20. Then all of the objects are placed at 20,20. Even though they are clearly placed in there own element within the array. If anyone can help please please do it.
    Dexter

    then your xml parsing is faulty.

  • Loading Multiple Instances Of A Module

    I am creating an applciation that will control golf simulators from a central location. The application will display information panels about each simulator in a tile component. The panels are modules. The below code tries to load 6 info panels if your press the button. When you press it, only 1 panel appears. If you press it a second time, 6 more appear. Does anyone have any insight as to why this occurs?
    Main App:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/halo">
        <fx:Script>
            <![CDATA[
                import mx.core.Application;
                import mx.managers.PopUpManager;
                import mx.events.ListEvent;
                import mx.events.FlexEvent;
                import mx.controls.Alert;
                import mx.modules.ModuleManager;
                import mx.modules.IModuleInfo;
                import mx.controls.ProgressBar;
                import flash.events.TimerEvent;
                import flash.utils.Timer;
                import mx.events.ModuleEvent;
                public var info:IModuleInfo;
                public var mySimCount:int = 6;
                protected function button5_clickHandler(event:MouseEvent):void
                    testPanels();
                 public function testPanels():void
                    var i:int;
                    for (i = 0; i < mySimCount; i++)
                        info = ModuleManager.getModule("simPanel.swf");
                        info.addEventListener(ModuleEvent.READY, modEventHandler);          
                        // Load the module into memory. Calling load() makes the
                        // IFlexModuleFactory available. You can then get an
                        // instance of the class using the factory's create()
                        // method.
                        info.load();
                private function modEventHandler(e:ModuleEvent):void {
                    // Add an instance of the module's class to the
                    // display list.
                    myTile.addChild(info.factory.create() as DisplayObject);
            ]]>
        </fx:Script>
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <s:Button  x="562" y="20" label="Button" click="button5_clickHandler(event)"/>
        <mx:Tile x="10" y="66" width="100%" height="100%" id="myTile">
        </mx:Tile>
    </s:Application>
    Module:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Module xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark"
               xmlns:mx="library://ns.adobe.com/flex/halo" layout="absolute" width="250" height="350">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <s:Panel x="0" y="0" width="250" height="346" dropShadowVisible="false">
            <s:Label y="-21" text="Sim Name" left="10"/>
            <s:Label y="-21" text="Sim Status" right="6"/>
            <mx:TabNavigator x="10" y="10" width="228" height="252">
                <s:NavigatorContent label="View Stats" width="100%" height="100%">
                    <s:Label y="10" text="Course and Hole" left="10"/>
                    <mx:DataGrid x="10" y="24" height="190" width="206">
                        <mx:columns>
                            <mx:DataGridColumn headerText="Plyr" dataField="col1"/>
                            <mx:DataGridColumn headerText="Scr" dataField="col2" resizable="false"/>
                        </mx:columns>
                    </mx:DataGrid>
                </s:NavigatorContent>
                <s:NavigatorContent label="View Screen" width="100%" height="100%">
                </s:NavigatorContent>
            </mx:TabNavigator>
            <s:Label y="270" text="Time Information" x="84"/>
            <s:Label y="290" text="Alerts" height="18" x="109"/>
        </s:Panel>
    </mx:Module>

    Try something more like this:
              public function testPanels(event:Event = null):void
                    info = ModuleManager.getModule("simPanel.swf");
                    if (!info.ready)
                        info.addEventListener(ModuleEvent.READY, testPanels);                                            
                        // Load the module into memory. Calling load() makes the
                        // IFlexModuleFactory available. You can then get an
                        // instance of the class using the factory's create()
                        // method.
                        info.load();
                        return;
                    var i:int;
                    for (i = 0; i < mySimCount; i++)
                        myTile.addChild(info.factory.create() as DisplayObject);                   
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • Error while loading the multiple instance of Acrobat

    Dear all,
         While loading multiple instances of an acrobat application I get an error message stating that:
              "The organizer database is damaged and will be reset the next time Acrobat is launched.        
               Quit the Application and close any currently opened browsers."
         Can anyone tell me the reason why this occurs, the version of the acrobat is 8.0 (it is a licencedVersion).
    Note: The Snapshot of the image is attached for further reference.
    Regard's
    Amith Sai

    Dear brennao,
              Thank you for your reply, I followed the same procedure which you have mentioned in your reply, but still am facing the same problem is ther any other work around which would help me suppress this error.
    plzzzzzzzzz reply...
    Regard's
    Amith Sai

  • Is there anyway to open multiple instances of a dll?

    I have a dll in which controls an instrument. I need to communicate to multiple instruments with this dll. This dll only supports 1 instrument at a time. Is there anyway to load multiple instances of this dll and call same functions from each dll instance for different instrument.
    Thanks.
    CVI 2010
    LabVIEW 2011 SP1
    Vision Builder AI 2011 SP1

    The idea as I understand it is something like this:
    HANDLE MyLoadLibrary(LPSTR dllname)
    // check in a global list if the DLL is already loaded
    // if it is
    // copy it to the temp directory with a different name and load it from there with LoadLibrary()
    // else
    // LoadLibrary() the requested DLL
    // store the DLL name and handle in our global list
    // return the handle
    void MyFreeLibrary(HANDLE handle)
    // search the handle in our global list and remove the entry
    // FreeLibrary(handle);
    That all said it may work for a particular driver but more likely the driver will stumble somewhere over the fact that its functions expect to have exclusive control over certain lower level resources. It's definitely a sure way into maintenance nightmare and you should consider to use or create a different driver almost at all costs if possible at all.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Since upgrading my mid-2010 MacBook Pro from the original Snow Leopard to Yosemite 10.10.2 there have been multiple instances of restart (crash) also slow operation. Any suggestions?

    Since upgrading my mid-2010 MacBook Pro from the original Snow Leopard to Yosemite 10.10.2 there have been multiple instances of restart (crash) also slow operation & pop up message stating web content has failed. Any suggestions?

    Many thanks for your interest, I've downloaded & run the app as suggested, report copies & pasted below.
    Problem description:
    Following upgrade from Snow Leopard to Yosemite 10.10.2 machine is slower & suffers from shut down / reboot and closing web pages due to unexpected error
    EtreCheck version: 2.1.8 (121)
    Report generated 6 February 2015 08:40:29 GMT
    Download EtreCheck from http://etresoft.com/etrecheck
    Click the [Click for support] links for help with non-Apple products.
    Click the [Click for details] links for more information about that line.
    Hardware Information: ℹ️
        MacBook Pro (15-inch, Mid 2010) (Technical Specifications)
        MacBook Pro - model: MacBookPro6,2
        1 2.4 GHz Intel Core i5 CPU: 2-core
        4 GB RAM Upgradeable
            BANK 0/DIMM0
                2 GB DDR3 1067 MHz ok
            BANK 1/DIMM0
                2 GB DDR3 1067 MHz ok
        Bluetooth: Old - Handoff/Airdrop2 not supported
        Wireless:  en1: 802.11 a/b/g/n
        Battery Health: Normal - Cycle count 75
    Video Information: ℹ️
        Intel HD Graphics - VRAM: 288 MB
            Color LCD 1440 x 900
        NVIDIA GeForce GT 330M - VRAM: 256 MB
    System Software: ℹ️
        OS X 10.10.2 (14C109) - Time since boot: 0:13:14
    Disk Information: ℹ️
        Hitachi HTS545032B9SA02 disk0 : (320.07 GB)
            EFI (disk0s1) <not mounted> : 210 MB
            Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
            Macintosh HD (disk1) / : 318.84 GB (134.68 GB free)
                Core Storage: disk0s2 319.21 GB Online
        MATSHITADVD-R   UJ-898 
    USB Information: ℹ️
        BUFFALO HD-PVU2 500.11 GB
            EFI (disk2s1) <not mounted> : 210 MB
            Time Machine Backups (disk2s2) /Volumes/Time Machine Backups : 499.76 GB (257.33 GB free)
        Apple Internal Memory Card Reader
        Apple Inc. BRCM2070 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple Inc. Apple Internal Keyboard / Trackpad
        Apple Computer, Inc. IR Receiver
        Apple Inc. Built-in iSight
    Gatekeeper: ℹ️
        Mac App Store and identified developers
    Kernel Extensions: ℹ️
            /System/Library/Extensions
        [not loaded]    jp.co.buffalo.driver.turbousbhdd (1.0.0) [Click for support]
    Launch Agents: ℹ️
        [loaded]    com.hp.help.tocgenerator.plist [Click for support]
    Launch Daemons: ℹ️
        [loaded]    com.adobe.fpsaud.plist [Click for support]
    User Launch Agents: ℹ️
        [loaded]    com.google.keystone.agent.plist [Click for support]
    User Login Items: ℹ️
        Skype    UNKNOWN  (missing value)
        Safari    Application  (/Applications/Safari.app)
        Dropbox    Application  (/Applications/Dropbox.app)
        Android File Transfer Agent    Application  (/Users/[redacted]/Library/Application Support/Google/Android File Transfer/Android File Transfer Agent.app)
        ConnectService    Application  (/Library/Application Support/ArcSoft/Connect Service/ConnectService.app)
    Internet Plug-ins: ℹ️
        Flip4Mac WMV Plugin: Version: 2.4.4.2 [Click for support]
        FlashPlayer-10.6: Version: 16.0.0.305 - SDK 10.6 [Click for support]
        QuickTime Plugin: Version: 7.7.3
        Flash Player: Version: 16.0.0.305 - SDK 10.6 [Click for support]
        Default Browser: Version: 600 - SDK 10.10
        Google Earth Web Plug-in: Version: 7.1 [Click for support]
        Silverlight: Version: 4.0.60129.0 [Click for support]
        iPhotoPhotocast: Version: 7.0
    User internet Plug-ins: ℹ️
        CitrixOnlineWebDeploymentPlugin: Version: 1.0.105 [Click for support]
    3rd Party Preference Panes: ℹ️
        Flash Player  [Click for support]
        Flip4Mac WMV  [Click for support]
    Time Machine: ℹ️
        Skip System Files: NO
        Auto backup: YES
        Volumes being backed up:
            Macintosh HD: Disk size: 318.84 GB Disk used: 184.16 GB
        Destinations:
            Time Machine Backups [Local]
            Total size: 499.76 GB
            Total number of backups: 184
            Oldest backup: 2010-12-10 15:37:39 +0000
            Last backup: 2015-02-06 02:49:24 +0000
            Size of backup disk: Too small
                Backup size 499.76 GB < (Disk used 184.16 GB X 3)
    Top Processes by CPU: ℹ️
             5%    WindowServer
             1%    ConnectService
             1%    Skype
             0%    systemstatsd
             0%    launchd
    Top Processes by Memory: ℹ️
        193 MB    Skype
        168 MB    mds_stores
        132 MB    com.apple.WebKit.WebContent
        107 MB    Mail
        99 MB    ocspd
    Virtual Memory Information: ℹ️
        889 MB    Free RAM
        1.99 GB    Active RAM
        455 MB    Inactive RAM
        825 MB    Wired RAM
        1.11 GB    Page-ins
        0 B    Page-outs
    Diagnostics Information: ℹ️
        Feb 6, 2015, 08:27:32 AM    /Library/Logs/DiagnosticReports/com.apple.AmbientDisplayAgent_2015-02-06-082732 _[redacted].crash
        Feb 6, 2015, 08:25:19 AM    Self test - passed
        Feb 5, 2015, 04:37:08 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_20 15-02-05-163708_[redacted].crash
        Feb 5, 2015, 10:01:02 AM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_20 15-02-05-100102_[redacted].crash
        Feb 5, 2015, 12:03:59 AM    /Library/Logs/DiagnosticReports/HP Scan_2015-02-05-000359_[redacted].cpu_resource.diag [Click for details]
        Feb 4, 2015, 11:58:58 PM    /Library/Logs/DiagnosticReports/HP Scan_2015-02-04-235858_[redacted].cpu_resource.diag [Click for details]
        Feb 4, 2015, 11:54:35 PM    /Library/Logs/DiagnosticReports/HP Scan_2015-02-04-235435_[redacted].cpu_resource.diag [Click for details]
        Feb 4, 2015, 11:49:03 PM    /Library/Logs/DiagnosticReports/HP Scan_2015-02-04-234903_[redacted].cpu_resource.diag [Click for details]
        Feb 4, 2015, 09:40:16 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_20 15-02-04-214016_[redacted].crash
        Feb 4, 2015, 09:38:12 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_20 15-02-04-213812_[redacted].crash
        Feb 4, 2015, 09:27:56 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_20 15-02-04-212756_[redacted].crash
        Feb 4, 2015, 09:25:25 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_20 15-02-04-212525_[redacted].crash
        Feb 4, 2015, 09:20:16 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_20 15-02-04-212016_[redacted].crash
        Feb 4, 2015, 09:18:10 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_20 15-02-04-211810_[redacted].crash
        Feb 4, 2015, 09:12:54 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_20 15-02-04-211254_[redacted].crash
        Feb 4, 2015, 08:40:48 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_20 15-02-04-204048_[redacted].crash
        Feb 4, 2015, 08:22:04 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_20 15-02-04-202204_[redacted].crash
        Feb 4, 2015, 12:11:35 AM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_20 15-02-04-001135_[redacted].crash
        Feb 3, 2015, 09:44:33 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_20 15-02-03-214433_[redacted].crash
        Feb 3, 2015, 05:40:21 PM    /Library/Logs/DiagnosticReports/HP Scan_2015-02-03-174021_[redacted].cpu_resource.diag [Click for details]
        Feb 3, 2015, 09:05:45 AM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_20 15-02-03-090545_[redacted].crash
        Jan 28, 2015, 06:10:42 PM    /Library/Logs/DiagnosticReports/Kernel_2015-01-28-181042_[redacted].panic [Click for details]
        Jan 21, 2015, 10:51:25 PM    /Library/Logs/DiagnosticReports/Kernel_2015-01-21-225125_[redacted].panic [Click for details]
        Jan 20, 2015, 11:12:47 AM    /Library/Logs/DiagnosticReports/Kernel_2015-01-20-111247_[redacted].panic [Click for details]
        Jan 18, 2015, 09:57:31 AM    /Library/Logs/DiagnosticReports/Kernel_2015-01-18-095731_[redacted].panic [Click for details]
    The only observations are that the backup drive is deemed too small and the quite long list of diagnostic reports dated between  Jan 18, 2015 (which I believe is the day I upgraded to Yosemite) & today the latest Yosemite update was installed on Jan 28, 2015
    Any further assistance will be appreciated

  • 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.

  • How do I prevent a user from opening multiple instances on the same computer?

    On the site oldnavyweekly.com there is a .swf that prevents users from opening multiple instances of the site at the same time on the same computer. If you open the site, and try to open it a second time in another window, it won't load. You can't open the site again until the first window is closed. How did they implement this?
    From my analysis it is NOT:
    1. Cookies - The block still takes place if you try opening it in IE and also try opening it in Firefox simultaneously.
    2. Flash Cookies - The block still takes place if I disable flash cookies.
    3. IP Based Block - You are not blocked if you open the site on two separate computers with the same outbound IP address. From my analysis, their server does not assist in the block at all.
    It seems as if their .swf is creating some kind of global system-wide object that can be detected in other instances of the application on the same machine. How did they implement this?
    Thanks!

    you're welcome.
    actually, unless you take an extra step, the first opened swf will close.  if you want the 2nd to close, the initial receiving lc will send a message to sender that causes the sender to close.

  • How to use multiple instances of the same dll ?

    Hi,
    I'd like to use multiple instances of a jni dll . I have created
    different threads, in each thread, I have called System.loadLibrary(..),
    and I would like each thread to access a different instance of this
    library.
    Unfortunately, the loadLibrary function is effective only once so I
    can not find the way to do this.
    Can anyone help me on this ?
    Thanks.
    Francois.

    Hi, :)
    and I would like each thread to access a different
    instance of this library.In Win32, this is outright impossible. A DLL will only exist once in a process space.
    In Unix, or at least in Solaris, I think this is also not possible, as libraries are loaded by the dynamic linker, and it keeps tabs of which modules have already been loaded into the process space.
    I'm assuming your problem is that your native library has non-reentrant code.
    If so, there are two approaches you can take to this:
    1) If you have access to the source code for the native library, change it so that it is reentrant.
    2) If you do not, change your Java code so that access to the native code is made from whithin synchronize blocks.
    If your problem is of a different nature, I'll second the words of the previous poster and ask you what it is...
    Cheers,
    J.

  • Can I create multiple instances of  realplayer plug-in in one jsp page?

    I want to play meny video files in one jsp web page, these video files are to be played with the embeded plug-in of realplayer, each plug-in was linked(use its SRC property) a different video file. But, to my surprise, when I press the play button, every player played the same video file,not its specified file.
    I have no idea why it did so and what can I do?
    Whether can I create multiple instances of realplayer plug-in in one jsp page, that is to say, each instance is independent of others?
    thanks in advance!

    Generally speaking, Internet Explorer tries not to launch multiple versions of a plug-in. So what's happening is that you load the first video clip, and then before it has a chance to play, you load the second video clip into the same window. (It's like changing songs in WMA.)
    In some cases - this may not work for Real Player, but it's worth trying - if you spawn a new window through a hypertext link and then launch the plug-in in that window, IE will treat it separately. Otherwise, you could not, for example, run two Macromedia Flash applications from different web sites at the same time.
    Keep in mind that only one program can access the soundcard at a time, so Real Player may purposely "pause" or "cancel" other video streams until the active one finishes. If you were using the desktop version, selecting another video by any means aborts the currently running video (i.e., RP won't let you create a separate instance of it).
    The easiest solution is to create a wrapper JSP file that takes the name of the video clip, and plays it. Call that JSP and specify that it should be opened in a new window via the TARGET keyword in the anchor tag. Then hopefully RP itself won't block a second window from running.

  • Stop opening multiple instances of the same application

    I am used to having graphic files on my desktop, when editing one I would simply right-click and pick "open with" > Photoshop (which is always open in its own desktop in my computer). Now out of the blue, if I do that, it loads another instance of Photoshop, which is certainly what I don't want. I can have 2, 3, 4 Photoshops running at the same time and editing the same image!
    Any idea how to solve this? I searched but all I could find is people wanting the opposite i.e. opening multiple instances of the same app.

    Your best bet to prevent this is to detach or unmount this drive; however, you can also try resetting your Mac's launch services, to have it re-scan only the Applications folders on your boot drive for programs to associate with documents and services you are using. Running the following command in the OS X Terminal will kill the current launch services database (its long, but copy and paste the entire line):
    /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill
    Following this, run the following command to seed the database with the apps you currently have installed:
    /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -seed
    Note that these changes will only apply when opening documents that have not been specifically assigned to a program. If you find a specific document continues to open the program on the external drive, then you can get info on it and change the associated program in the "Open With" section of the info window. After doing this, you might need to re-run these commands above, as opening the program will register it with OS X's launch services and have it now be available for automatically handling other documents.

  • Opening multiple instances of the same vi

    Hi,
    I am having trouble opening multiple instances of the same vi.
    This vi that I am trying to create can be used like a message display window to display numbers, strings etc (just like labVIEW's display message control except that this vi will update the displayed controls every scan). So for example, I will like to have a subvi, lets call it popup.vi, where I wire in three inputs from my main vi (2 strings and 1 number). Now in my main.vi I have 2 numeric controls Num1 and Num2 with their KeyFocus property nodes.
    The intention is that when I select Num1 or Num2 numeric control with my mouse the KeyFocus boolean becomes true and the popup.vi logic kicks in. Meaning that the popup.vi runs and opens its front pane
    l displaying the two strings and one numeric value from the main.vi.
    The problem arises when I want to open and run multiple instances of the popup.vi.
    So when I click on Num1 with my mouse I want the popup.vi to open its front panel with a set of strings and number displayed. At the same time I would want to click on Num2 control and open another instance of the popup.vi with another set of strings and numeric value.
    Also, I saved the popup.vi as popup.vit but for some reason vi server will not open the popup.vit. I get a message that popup.vit is already in memory - cannot load.
    I have attached a sample of the main.vi and popup.vi program.
    Please let me know if you need further clarifications.
    I appreciate your help in this matter.
    Thanks
    Nish
    Attachments:
    popupVI.zip ‏37 KB

    You have to clone the VI. You say you have tried to use the .vit way of cloning...but in the example there is no use of VIT and the VI is called statically. If you want to open multiple instances of the same VI and the VI has a user interface (or needs to be a unique instance of the VI every time even though it's called the same place in the diagram, not the case here though) you need to do it dynamically, i.e. with an invoke node.
    There is actually a problem doing just that, it causes a memory leak...but that won't be a problem unless the VI is called frequently / the software will be running over very long periods of time. You can see an example of it here (attached to my reply to the question):
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&
    RPAGEID=135&HOID=506500000008000000A07D0000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0&USEARCHCONTEXT_QUESTION_0=VI+cloning&USEARCHCONTEXT_QUESTION_S=0
    About the memory leak problem:
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000B7A40000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0&USEARCHCONTEXT_QUESTION_0=VI+cloning&USEARCHCONTEXT_QUESTION_S=0
    MTO

  • How to use/sync single data (file) across multiple instances of same application

    Currently we have an application (a diagram editor), that have the ability to save and load (serialize) its state in a xml file.
    Now we want this application to behave like Microsoft OneNote application. Where multiple users have the ability to access the same file.
    Later we may also need to enhance with other things like, (1)what is changed and who changed it, (2)option to resolve conflicts if any.
    I came to know about sync framework to resolve this. so far, i have not tried it.
    All i want is,
    Virtually single file should be edited by multiple instances of same application.
    We need a dll (sync framework) that does following
    It takes complete responsibility of file handling.
    Using this dll, each instance of the application will notify their own changes.
    Each instance of the application should have the ability to detect the changes that is recently made (when, who, what are the changes).
    My question:
    Will sync framework be suitable for this requirement?
    If so, is there a demo application that represents this?
    - Jegan

    Seems like I have found the solution.
    In the taskflow there is a property named data-control-scope and I set it to isolated instead of the default (shared) and this seemed to do the trick.
    I can now have two instances of the same taskflow running with different ApplicationModules
    Cheers,
    Mark

Maybe you are looking for

  • Error message - no disk in drive

    On opening Elements 9 (& also when trying to save) I get the following error message. "There is no disk in the drive. Please insert a disk into drive E:." I have tried reinstalling, but to no avail. Please help!

  • Adobe Acrobat Reader 8 printing problems.

    I am currently using Adobe Acrobat Reader 8 with the following information ,and I have problems printing in system configurations (I have an old Brother HL-1060 Laser printer).... When I use the following defaultprinting preferences, the pages come o

  • Tools Palette Dropdown Issue

    None of the dropdowns on Tools Palette work ex: Type Tool, Pen Tool, Pencil Tool,etc. I cannot get the dropdowns for any of these to appear. I've tried uninstalling and reinstalling the entire suite - reinstalling each separately - no luck. I'm sure

  • Thank you BB for destroying a FATHER'S day SURPRISE gift

    I am so angry right now, I'm ready to return the Playbook I just bought. We received a welcome message when I registered the Playbook which I deleted from our joint email acct so that my husband wouldn't see it before tomorrow. But little did I know

  • BP of Copied DP must be same as BP of Target Document.

    Hi Experts, We are using SAP B1 8.8 version. When we post the Service type AP Invoices direct from PO cannot be posted and display the error message of " Business Partner of copied down payment document must be same as Business partner of Target Docu