in a built application object reference

Currently I have to refer to a directory of support in a VI of highest level using the [Path running VI], [path of the band] and adding "/ data" on the way to return file. When I build the application my reference is no longer valid because [Path running VI] returns 'Root/Directory/Application.exe/TopLevel.vi' instead of 'Root/Directory/TopLevel.vi '.

My question is how can I list my backup directory specified in the Application Builder in my code? If this is not possible how can I reference a file path that will remain valid in the source and as a built application? I wouldn't have to make sure that the default directories are the same on multiple computers.

Thank you

Mike

I would say something like this, because it will work in all combinations (IDE, EXE, LLB, etc.).

Note, however, that LV 2009 changed our way of screws go in an executable file. If you get the path of the highest level VI, you'll be fine. If you are a beginner in the middle of the hierarchy, however, you will get T from the output directory is always inside the EXE, because the folder structure is maintained inside the EXE.

To work around this problem, LV 2009 also has a new VI in the constants file palette which returns the directory of the current application. That's what you use if you use 2009.

Tags: NI Software

Similar Questions

  • HELP function - new VI doesn't seem to work in built Application

    My Application is designed to coordinate several separate test (16) of control stations. Test stations can operate independently. I have a Test Manager application that starts the execution independently Test Runner live when the user has selected a test to be performed and the conditions to run with. There may be 0 to 16 Test Runner screws running at any given time. Each Test Runner VI uses the same model code of Test Runner.VI but is given a unique name based on a randomly generated GUID. I use a sequence of the function again, VI, VI. FP. Open and VI. Run VI to create the VI based on the template, give it a unique name and then launch it to run independently. Fragment JPG see attached.

    This design works perfectly well when it is used in the LabView 2010 development environment. But it does not work when I build the Test Manager as an EXE application. There is no errors generated, but the new VI is not launched, and I think that one of the functions of the sequence never returns. I don't know if the new VI is created or not.

    Does anyone know how to change this option so that the screws news can be created, unique, named and launched, it will work properly, regardless of if the creation VI runs either development (for debugging) or as a built application?

    Because of the sequence of the new VI, VI. FP. Open and VI. Pass the VI when used in a built application? Is there another method that will strive to meet this need?

    Is there a function in LabView that will launch an exe as WinExec done? Maybe I can use it.

    Thank you VERY MUCH for any advice.

    'New VI' is scripting.  It is blue. Scripting is explicitly not accessible at run time.

    what you want is 'Open VI référence' on a VI that is configured for the execution of reentry, with appropriate options defined in the properties of the VI and wired at the entrance to the REF VI open node Options (you want to 0x08 to returning with placeholders for data).  You can use a .lives, but this is not what they are for.

    Take the time to read the help file for reference VI open, it'll be worth it.

    other comments:

    Use the method fp.open, not property.

    "Auto has Ref" = true acts more like a standard VI call: LV will automatically close the ref when the called VI is idle.

  • object reference not set

    I have a .net web service.

    I checked via the web service that it works correctly.

    Here is the SOAP 1.2

    POST /WebServices/MarketingWebServices.asmx HTTP/1.1
    Host: sdasapprdsvr
    Content-Type: application/soap+xml; charset=utf-8
    Content-Length: length
    
    
    http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
      
        
          string
          string
          int
          string
          string
          string
          string
          string
          string
          string
          string
          string
          string
          string
          string
          string
          string
          string
          string
          string
          string
          string
          string
          string
          string
          string
          string
        
      
    
    

    I get error "the server could not process the request. --> The object reference not set to an instance of an object"

    My code base to set up the soap request

    m_soap.setAction(hostServer + "/" + serverAction);
    m_soap.setHost(QUrl(hostServer).host());
    QtSoapMessage request;
    request.setMethod(QtSoapQName(serverAction, hostServer));
    
    request.addMethodArgument(new QtSoapSimpleType(QtSoapQName("AssociateEmail"),QString("[email protected]")));
    request.addMethodArgument(new QtSoapSimpleType(QtSoapQName("ShowName"),QString("print2013")));
    ....
    
    m_soap.submitRequest(request, endPointURI);
    

    I tried to addMethodArgument without the Type of SOAP

    That is to say.  request.addMethodArgument ("myParameter", "", "myValue");

    I tried to use a struct as shown in another post.

    QtSoapStruct* inputValues = new QtSoapStruct(QtSoapQName("Items"));
    request.addMethodArgument(inputValues);
    QtSoapStruct* item = new QtSoapStruct(QtSoapQName("Item"));
    item->insert(new QtSoapSimpleType(QtSoapQName("Name"), "_OS"));
    item->insert(new QtSoapSimpleType(QtSoapQName("Value"), "BB10"));
    inputValues->insert(item);
    

    It seems as if the arguments are not be attached to the request.

    I was getting an error that it lacked the required fields for the stored procedure.  So I adjusted the .net web service to set default values if the values sent via the web service were empty.  This moved me to the common mistake.

    So, apparently, it was matter of double.

    The first problem was in the client code:

    First of all, I needed to make sure that the parameters passed were in the correct order.

    Second, I found that the addMethodArgument was the right way

    request.addMethodArgument( new QtSoapSimpleType(QtSoapQName("AssociateEmail"), query.value(0).toString()));
    

    The second problem was with .net code.  I needed to make sure that the passed value is not zero.

    if (AssociateEmail == null || AssociateEmail == String.Empty || AssociateEmail.Trim().Length == 0)
                     { cmd.Parameters.Add(new SqlParameter("@IN_AssociateEmail", "No Associate Email")); }
                     else { cmd.Parameters.Add(new SqlParameter("@IN_AssociateEmail", AssociateEmail)); }
    

    And I had to make sure I have done this for each parameter.  Apparently, I sent a couple of empty values, and this caused the shot to the top.

    However, the return value is not always in the best format, but that's another thread.

  • setAreaOfInterest null object reference error

    Don't know what is happening with my application, works fine on the desktop.  I sent in my Playbook and now get errors.  I'm under what OS Version 1.0.8.6067 looks like something with the flash/Flex QNX conversion.  Does anyone have any ideas (or wrapper work)?

    Stacktrace shows

    TypeError: Error #1009: cannot access a property or method of a null object reference.
    at qnx.stagetext.ui.text::EditableText/setAreaOfInterest() [/ home/builder/hudson/workspace/Trunk-SWF_StageText/src/stagetext/src/qnx/stagetext/ui/text/EditableText.as:756]
    at qnx.stagetext.ui.text::EditableText/insertText() [/ home/builder/hudson/workspace/Trunk-SWF_StageText/src/stagetext/src/qnx/stagetext/ui/text/EditableText.as:972]
    to qnx.stagetext.ui.text::EditableText/set text() [/ home/builder/hudson/workspace/Trunk-SWF_StageText/src/stagetext/src/qnx/stagetext/ui/text/EditableText.as:300]
    to flash.text:tageText/set text()
    to StageTextPool$ /acquireStageText () [E:\dev\4.y\frameworks\projects\mobilecomponents\src\spark\components\supportClasses\StyleableStageText.as:3113]
    to spark.components.supportClasses:tyleableStageText /http://www.adobe.com/2006/flex/mx/internal:getStageText () [E:\dev\4.y\frameworks\projects\mobilecomponents\src\spark\components\supportClasses\StyleableStageText.as:2415]
    to spark.components.supportClasses:tyleableStageText() [E:\dev\4.y\frameworks\projects\mobilecomponents\src\spark\components\supportClasses\StyleableStageText.as:403]
    to spark.skins.mobile.supportClasses:tageTextSkinBase / createChildren() () [E:\dev\4.y\frameworks\projects\mobiletheme\src\spark\skins\mobile\supportClasses\StageTextSkinBase.as:185]
    at mx.core::UIComponent/initialize() [E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7634]
    to mx.core::UIComponent /() http://www.adobe.com/2006/flex/mx/internal:childAdded [E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7495]
    at mx.core::UIComponent/addChild() [E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7176]
    to spark.components.supportClasses:kinnableComponent / attachSkin () [E:\dev\4.y\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:692]
    to spark.components.supportClasses:kinnableComponent / validateSkinChange () [E:\dev\4.y\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:443]
    to spark.components.supportClasses:kinnableComponent / createChildren() () [E:\dev\4.y\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:406]
    at mx.core::UIComponent/initialize() [E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7634]
    to mx.core::UIComponent /() http://www.adobe.com/2006/flex/mx/internal:childAdded [E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7495]
    at mx.core::UIComponent/addChildAt() [E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7199]
    at::Group/addDisplayObjectToDisplayList() [E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:2037] spark.components
    to spark.components::Group /() http://www.adobe.com/2006/flex/mx/internal:elementAdded [E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:1628]
    at::Group/setMXMLContent() [E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:633] spark.components
    at::Group/createChildren() [E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:855] spark.components
    at mx.core::UIComponent/initialize() [E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7634]
    to mx.core::UIComponent /() http://www.adobe.com/2006/flex/mx/internal:childAdded [E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7495]
    at mx.core::UIComponent/addChildAt() [E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7199]
    at::Group/addDisplayObjectToDisplayList() [E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:2037] spark.components
    to spark.components::Group /() http://www.adobe.com/2006/flex/mx/internal:elementAdded [E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:1628]
    at::Group/setMXMLContent() [E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:633] spark.components
    to spark.components::Group / set mxmlContent() [E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:573]
    to spark.components:kinnableContainer/set mxmlContent() [E:\dev\4.y\frameworks\projects\spark\src\spark\components\SkinnableContainer.as:657]
    to spark.components:kinnableContainer / createDeferredContent () [E:\dev\4.y\frameworks\projects\spark\src\spark\components\SkinnableContainer.as:1050]
    to spark.components:kinnableContainer / createContentIfNeeded () [E:\dev\4.y\frameworks\projects\spark\src\spark\components\SkinnableContainer.as:1078]
    to spark.components:kinnableContainer / createChildren() () [E:\dev\4.y\frameworks\projects\spark\src\spark\components\SkinnableContainer.as:885]
    at mx.core::UIComponent/initialize() [E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7634]
    at::View/initialize() [E:\dev\4.y\frameworks\projects\mobilecomponents\src\spark\components\View.as:999] spark.components
    at com.qapable.view::FridgeContentForm/initialize()
    to mx.core::UIComponent /() http://www.adobe.com/2006/flex/mx/internal:childAdded [E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7495]
    at mx.core::UIComponent/addChildAt() [E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7199]
    at::Group/addDisplayObjectToDisplayList() [E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:2037] spark.components
    to spark.components::Group /() http://www.adobe.com/2006/flex/mx/internal:elementAdded [E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:1628]
    at::Group/addElementAt() [E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:1387] spark.components
    at::Group/addElement() [E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:1345] spark.components
    to spark.components:kinnableContainer / addElement () [E:\dev\4.y\frameworks\projects\spark\src\spark\components\SkinnableContainer.as:761]
    at::ViewNavigator/createViewInstance() [E:\dev\4.y\frameworks\projects\mobilecomponents\src\spark\components\ViewNavigator.as:2018] spark.components
    at::ViewNavigator/commitNavigatorAction() [E:\dev\4.y\frameworks\projects\mobilecomponents\src\spark\components\ViewNavigator.as:1932] spark.components
    at::ViewNavigator/commitProperties() [E:\dev\4.y\frameworks\projects\mobilecomponents\src\spark\components\ViewNavigator.as:1301] spark.components
    at mx.core::UIComponent/validateProperties() [E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:8219]
    at mx.managers::LayoutManager/validateProperties() [E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:597]
    at mx.managers::LayoutManager/doPhasedInstantiation() [E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:813]
    at mx.managers::LayoutManager/doPhasedInstantiationCallback() [E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1180]

    Found the solution (via the devgirl.org blog comments).  It turns out that this is a known problem in Flash Builder 4.6 with the TextInput skin.  Quick and simple solution is to add

    skinClass = "spark.skins.mobile.TextInputSkin"

    for the TextInput tag and everything works again (I heard him talk about a problem with StageText and as you can see, which appears in the stack trace I became).

    Also became strangeness when exporting for Android (entries endangered and appear outside the textinput).  I hope this will fix this problem too.

  • "Object reference not set to an instance of an object." on track

    Dear members,

    Today, I tried to "build and Run...". ' a rule base that I created some time ago and executed correctly. Now, I get the error "Object Reference." not set to an instance of an object When I try to run the basis of rules using Oracle Web determinations (construction is always successful). When I run the basis of rules by using "build and debug...". "no errors are presented and the basis of the rule is executed successfully as well. I can also access the basic rule in my web browser without having any problems. I expect that the cause of the problems lies in the recent installation of Google Chrome or Mozilla Firefox, but I don't know where to look for a solution. I already tried to install the latest version of the Oracle Policy Modeling, but the error has not been resolved by then.

    Dear Frank,

    Thanks for putting me in this direction. I never looked in the browser by default settings, because they never changed. In other words, Microsoft Internet Explorer is and has always been my default browser. Do even Mozilla FireFox or Google Chrome my default browser solved the problem (partially). Since we are analysts we of course want to know how the problem occurred. In addition, because the problem is not completely solved yet, it seems to be some sort of bug left in the Oracle strategy modeling.

    • I used the modeling of the Oracle strategy for six months without having any problems. The basis of rules was always run correctly in Microsoft Internet Explorer (which has been configured as the default browser).
    • I installed Google Chrome and Mozilla FireFox at the same time, but has not changed my default browser settings (so Microsoft Internet Explorer is the default browser).
    • Run a basic rule of now caused the "object reference is not set to an instance of an object." even if the default browser has been set successfully.
    • I changed the default browser to Google Chrome or Mozilla FireFox (which of the two is not serious) and rules was performed correctly in the specific browser.
    • I changed the default browser to Microsoft Internet Explorer, but the Oracle strategy modeling keeps using my default browser defined previously (Google Chrome or Mozilla FireFox).

    From there, I guess we can conclude that the Oracle Policy modeling does not resemble the right registry key to determine the default browser. In other words, Oracle Policy modeling is unable to identify Microsoft Internet Explorer as the default browser, where other applications (like Google Chrome and Mozilla FireFox) do this properly. I expect that the HKEY_CURRENT_USER\Software\Classes\http key is sought (which did not exist after I installed Google Chrome and Mozilla FireFox), but for the Windows operating system this key is only used until Windows XP. Windows Vista from the HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice key should be used to find the default browser settings.

  • store the object reference handle (MOR) to synchronize with the virtual center of vSphere

    Hello

    I am able to store a bit in my own DB and assume that they don't change, so that I can match the entities in the virtual centre with those of my database loading my application?

    Document best practices of Balaji Parimi (http://communities.vmware.com/docs/DOC-9912) States:

    Caching of managed object references rather than their
    Properties makes it easy to keep the cache to update. It is easier to maintain
    the cache, as the references remain unchanged until the managed object is removed from the inventory of managed object.

    Because of this comment, I am inclined to believe that I should be able to write the bit on my side in the DB and use them as described.

    Why I ask this is because:

    • It seems that a lot of people is keen to track VMs by uuid.  I'm guessing they are only followed VMs, otherwise they would probably have the same problem I'm having (ex: If a Resource Pool gets renamed while the application is down, how can you identify whether the same as the one you had).

    • The vSphere Web Services SDK Programming Guide seems to be confusing by having a section entitled Do not store Managed Object reference values.  This section seems just to point out that the MOR is not the same between the vCenter server and ESX box.  Because I don't like to manage the host communicating directly with it (and keep track of the GPR in this way), I don't see how this would apply.

    Has anyone been matching their own entities vmware with JAWS?  Is there a reason for (am I wrong something)?  Wouldn't be wonderful if this confusion has been cleared up by Balaji Parimi or VMware themselves.

    Thank you

    Ivan

    The recommendation contained in the best practices doc is right.

    You can store the MOR of an entity in your DB.

    For such objects as hosts, VMs data warehouses, etc... Essentially, this is the unique key that identifies the object.

    And the MOR will change during the lifetime of this object in the DB vCenter.

    The only way it modifies if it removes and adds the object. So for all practical purposes it is a new object anyway.

    What the program guide refers, is the fact that this MOR the 'ID' of the object is only within this system namespace.

    Thus, the VM MOR is unique within the Victoria Cross.

    That MOR are only may not or may not even be object even if you connect directly to the ESX host using the SDK.

    The guide is just trying to clarify that the MOR of a VMS in vCenter isn't the same as if you connect to the ESX host directly.

    That said, if you never connect to the ESX host directly you must not care about this specific recommendation in the guide.

    Hope that clarifies things.

  • Spark datagrid GridItemRenderer cannot access a property or method of a null object reference

    Hello

    I created a spark datagrid with a griditemrender, but when my application startup and the dataprovider is null and have not given.

    At the error

    "Cannot access a property or a method of a null object reference.

    When have given do not have problem

    I was used to the griditemrender:

    prepare method, creationComplete, updateComplete, and all have the same aplication error begins

    any idea of this error?

    +++ My itemrender +++

    <? XML version = "1.0" encoding = "utf-8"? >

    " < = xmlns:fx s:GridItemRenderer ' http://ns.Adobe.com/MXML/2009 "

    xmlns:s = "library://ns.adobe.com/flex/spark" >

    < fx:Script >

    <! [CDATA]

    override public function prepare(hasBeenRecycled:Boolean):void

    {

    valueDisplay.selected = data [column.dataField] as Boolean;

    }

    []] >

    < / fx:Script >

    < s:CheckBox id = "valueDisplay" / >

    < / s:GridItemRenderer >

    Maybe you can try a preliminary validation before the award of 'data '.

    Of

    valueDisplay.selected = data[column.dataField] as Boolean;
    

    TO:

    if(data)
    {
        valueDisplay.selected = data[column.dataField] as Boolean;
    }
    

    I would like to know if it works.

    Best regards

    Pablo Souza

  • [AS] Why not work object reference for each line of text with Leopard/Snow Leopard style

    script extract, in CS5 (but have the same problem with the version of the script for CS3):

    say theDoc

    ...

    tell theStory

    ...
    the value question (object reference each text style Beach where the style police is in boldStyles)

    In Tiger, it would generate a list of ranges of text, such as "character text 64-character 110 text stream code 55110 document"thisdoc.indd"

    Under Leopard and Snow Leopard, I get an error: can not get the object reference

    I did not write the original screenplay and I can find a solution by looping through the styles in the list but this good word seems to be better, if I can make it work!

    Thoughts?

    Thank you!

    It works in CS4 on Mac OS 10.5.8 Intel:

    Tell application "Adobe InDesign CS4"

    say 1 document

    say page 1

    say the text block 1

    tell of the history of parent

    the value question to (object of each text style reference range) which police style is in 'mainstream '.

    end say

    end say

    end say

    end say

    end say

    Which returns:

    { of character 1 to 22 character text 236 of the identity document 'Untitled 1' history application "Adobe InDesign CS4", text of character 23 to 23 character 236 of the identity document history "Untitled-1" application "Adobe InDesign CS4", text of the character 48 to 48 character 236 of the identity document history "Untitled-1" application "Adobe InDesign CS4", text of 49 to 62 character character 236 of the identity document history "Untitled-1" application "Adobe InDesign CS4" "" "} , of character 63 to 64 character text 236 of the identity document 'Untitled 1' history application "Adobe InDesign CS4", from 65 to 76 character character text 236 of the identity document history "Untitled-1" application "Adobe InDesign CS4", from 77 to 77 character character text 236 of the identity document history "Untitled-1" application "Adobe InDesign CS4", from 78 to 98 character character text history 236 of the document id "Untitled-1" application «Adobe InDesign CS4»»» " , from 99 to 129 character character text 236 of the identity document 'Untitled 1' history application "Adobe InDesign CS4", text of 130 to 153 character character 236 of the identity document history "Untitled-1" application "Adobe InDesign CS4", text of character 179 to character 228 236 of the identity document history "Untitled-1" application "Adobe InDesign CS4", text of character 229 to 245 to 236 of the document id story character "Untitled-1" application "Adobe InDesign CS4" text of character 246 to character 275 236 of the document history»»» identity 'Untitled 1' application "Adobe InDesign CS4", text of 276 to 292 character character 236 of the identity document history "Untitled-1" application "Adobe InDesign CS4", text of character 293 to character 361 236 of the identity document history "Untitled-1" application "Adobe InDesign CS4"}»»

  • Property or method of a null object reference. "OK, go crazy. account of $ 50 for a paypal account, if someone explains why &amp; solution - "cannot access a pro."

    I guess that's cheezy to offer money to help (and I guess this a little tied to a post being discussed yesterday), but I'm so tired of searching - been trying things ALL day and its value at a minimum of $ 50 if someone takes a while to help with an explanation of what is happening and how to fix it (hopefully it's just a matter of newbie that I) be cursing myself for lack.)

    I have things to a restricted version of the app to demonstrate the problem. You can download (link at the bottom of page) and just run the html/SWF in bin-debug and you will see the problem (or perhaps understand the linke also supplied code). Click Connect and then ' Add used ' and it just put the cursor in the firstname field and click. You'll find yourself with the following error:

    TypeError: Error #1009: cannot access a property or method of a null object reference.
    at mx.managers::FocusManager/focusInHandler() [C:\autobuild\galaga\frameworks\projects\framew ork\src\mx\managers\FocusManager.as:601]
    to flash. display::Stage / set focus()
    at mx.core::UITextField/setFocus() [C:\autobuild\galaga\frameworks\projects\framework\src\mx\ core\UITextField.as:1525]
    at mx.controls::TextInput/setFocus() [C:\autobuild\galaga\frameworks\projects\framework\src\m x\controls\TextInput.as:1832]
    at mx.managers::FocusManager/setFocus() [C:\autobuild\galaga\frameworks\projects\framework\sr c\mx\managers\FocusManager.as:553]
    at mx.managers::FocusManager/mouseDownHandler() [C:\autobuild\galaga\frameworks\projects\fram ework\src\mx\managers\FocusManager.as:1896]

    I know that the problem is related to _defaultButton null in FocusManager focusInHandler (at least the debugger shows the problem here), but do not know why this is * there. You will see in two simple display batteries, I've set creationPolicy = "all" (I even tried to set createionPolicy = 'all' on almost all the components.)

    View the main relevant files:

    http://Pastie.org/610389

    Download the sample application demonstrating the issue

    http://DL.getdropbox.com/u/86998/EmployeeMaintenanceTest.zip

    If you file a bug with your testcase, this will help to make sure we don't break it in Flex 4.  I don't know if there will be a new version 3.x.

    I got around the problem by adding to the level superior canvas in Main.mxml:

    defaultButton = "{mainNavigation.addEmployeeButton}" "

    In my view, that principle is once you assign a default button in a container, to keep something like the default button after that.  If the focus moves to a container without a default button, then I think he's in trouble.

    Alex Harui

    Flex SDK Developer

    Adobe Systems Inc..

    Blog: http://blogs.adobe.com/aharui

  • PopUpManager.centerPopUp gives cannot access a property or method of a null object reference

    Hi all

    PopUpManager.centerPopUp (this); in my code gives the following error:

    Main Thread (Suspended: TypeError: Error #1009: cannot access a property or method of a null object reference.)
    MX.managers::PopUpManagerImpl / findPopupInfoByOwner
    MX.managers::PopUpManagerImpl / centerPopUp
    MX.managers::PopUpManager$ /centerPopUp
    com.mycom.View::LoginView/doInit
    com.mycom.View::LoginView/___LoginView_TitleWindow1_creationComplete
    Flash. Events::EventDispatcher / dispatchEventFunction [source]
    Flash. Events::EventDispatcher / dispatchEvent [source]
    MX. Core::UIComponent/dispatchEvent
    MX. Core::UIComponent/Set initialized
    MX.managers::LayoutManager / doPhasedInstantiation
    Function / http://adobe.com/AS3/2006/builtin: applies [no source]
    MX. Core::UIComponent/callLaterDispatcher2
    MX. Core::UIComponent/callLaterDispatcher

    MyAppl.mxml

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:mx mx:Application ' http://www.Adobe.com/2006/MXML "layout ="absolute" "
    xmlns:view = "com.mycom.View. *" >

    < mx:Panel id = "applPanel" height = "100%" width = "100%" backgroundColor = "#3CACCC" >
    < view: LoginView / >
    < / mx:Panel >

    < / mx:Application >

    LoginView.mxml

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:mx mx:TitleWindow ' http://www.Adobe.com/2006/MXML "
    layout = "absolute" width = "400" height = "300" creationComplete = "doInit ()" >

    < mx:Script >
    <! [CDATA]
    Import mx.managers.PopUpManager;

    private function doInit (): void {}
    PopUpManager.centerPopUp (this);
    }

    private function login (): void {}
    trace ("clicked login");
    }

    []] >
    < / mx:Script >

    < mx:Form id = defaultButton "loginForm" = "{loginBtn}" >
    < mx:HBox >
    < mx:Button id = "loginBtn" label = "OK" click = "login ()" / > "
    < / mx:HBox >
    < / mx:Form >

    < / mx:TitleWindow >

    Someone please help me on this.
    Thank you.
    Roshni

    Pls find your solution below.

    MyAppl.mxml

    http://www.Adobe.com/2006/mxml"layout ="absolute ".

    creationComplete = "onCreationComplete ()" > "

    Import com.mycom.view.LoginView;

    Import mx.core.IFlexDisplayObject;

    Import mx.managers.PopUpManager;

    private var popUp: IFlexDisplayObject;

    private function onCreationComplete():void

    {

    popUp = PopUpManager.createPopUp (this, LoginView, true);

    popUp.move (((this.width/2)-(popUp.width/2)), (((this.height/2)-(popUp.height/2)));)

    }

    ]]>

    LoginView.mxml

    http://www.Adobe.com/2006/mxml '.

    layout = "absolute" width = "400" height = "300" >

    Import mx.managers.PopUpManager;

    private Function login()):void{}

    trace ("connection clicked");

    }

    ]]>

    PLS, let me know if you have a problem with this one code.

    with respect,

    Mayeul Singh Bartwal

  • Null object reference

    My application creates a series of buttons that if clicked on what they are supposed to be removed the parent DisplayObjectContainer, but I need to keep track of which buttons are deleted, because the buttons are removed, others can be added or maybe not.

    I am tracking these buttons in a table, I'm trying to override the method removeChild to update the chart, which is a global variable, and GameButton is a custom button class that I'm trying to delete.

    Simply write the loop in the method, like this, I get a "cannot access a property or method of a null object reference. then I tried to

    override public function removeChild(child:DisplayObject): DisplayObject

    {

    for (var r: int = buttonArray.length - 1; r > = 0; r-)

    {

    If (buttonArray [r] == child)

    {

    var removeNum:int = r;

    }

    parent.removeChild (child);

    buttonArray.splice(removeNum,1);

    }

    Return (Child);

    }

    It's very well (once you fix typos).  You can use:

    for (var i: uint = 0; i<>

    CBC GameButton (parent.getChildAt (i));  to reference the property src of the object of a child.

    }

  • TypeError: Error #1009: cannot access a property or method of a null object reference?

    Mr President.
    I updated firefox and always this type of problem
    every time I tried to open the flash game site iam getting this question. sometimes IE browser cannot open it too much.
    "".... TypeError: Error #1009: cannot access a property or method of a null object reference.
    to ASGames / fun_Menu)
    to ASGames / frame2)
    at flash.display::MovieClip/gotoAndStop()
    to WeddingTianaDressup_fla::Timeline_102 / playGames ()... » »

    but the same site can be opened in other browsers in the same pc... but the same site a user goes to another computer on the browser firefox itself. How do not know where is the problem... ?
    so please, some can help hu?

    Dear Sir.
    Thanks for your answer...! I did what you said but it doesn't work. new iam having the same problem...!

  • I get a "Application JavaScript - reference error: XPCSafeJSObjectWrapper is not defined ' error every time I try to open a new tab.

    As the title suggests, whenever I open a new empty tab on Firefox 4 Beta, I get an error that says "Application JavaScript - reference error: XPCSafeJSObjectWrapper is not defined" this never happened to me before moving on to a new version of the beta of Firefox some time ago... is it possible to fix this?

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the Add-ons is the cause of the problem (switch to the DEFAULT theme: Tools > Modules > themes).

    • Makes no changes on the start safe mode window.

    See:

  • invalid object reference

    I have a reference to the overall purpose of the station. Is there a way to check if the object reference is valid?

    Thank you.

    StationGlobals.MyRef! = null

    -Doug

  • Access to the elements of an array passed as object reference

    Hi all!

    I am quite new to TestStand and therefore, my question might be simple enough but I was not able to find the solution by looking at previous posts.

    I have a sequence that passes a custom array (of data type) to another to make basic on the table stuff (reverse the order of the elements, for example).

    I want to move to the sequence called an object table reference

    The problem is that I am not able to read the array element inside the sequence called using the object reference.

    I found the way get the number of items, but I'm not able to access the item

    In addition, the TestStand GUI is able to let me see the array pointed to by the object reference that is passed within the known sequence, so it is possible to access... but how?

    I want to do operations on the object reference passed within a 'No return' TestStand if possible.

    Thank you very much.

    Andrea

    In other words:

    How do I access the field 'temperatureTag' item number '0' from the object variable reference referenceToClone?

    Locals.referenceToClone [0] .temperatureTag does not work...

    I don't know what is the recommended method to solve your problem. When you try to few alternatives, I was able to get the value required by the following expression (tested with TestStand 2014):

    Locals.referenceToClone.GetPropertyObject("[0]",_0).temperatureTag

    Try and tell me if it works for you.

    Use this workaround with caution.

    -Shashidhar

Maybe you are looking for