XControl always locked when used in class -- possible bug?

Hi,
This is not dissimilar to this question. However, I think that the issue is slightly different and possibly a bug. If do the following:
create a project,
create an XControl,
create a class,
add an instance of the XControl to a class method
you should see that the XControl is locked all of the time. This only occurs when the XControl is used with a class. If the XControl is placed on a VI, in a project library or not, the XControl will only be locked when the VI which is using it is open (i.e., in memory and the XControl is running).
This may be expected behaviour due to the way classes are loaded; however, as a user I find it unexpected -- is it a bug?
Regards,
Steve.
Solved!
Go to Solution.

Unlike normal libraries (.lvlib), classes always load all their member VIs into memory when the class is loaded into memory.  So if one of those VIs uses an XControl, then it will become locked as soon as you load the owning class into memory, even if the VI is not open.  You might be able to get around this by right-clicking the XControl in the project and selecting "Unlock Library for Editing".  This will temporarily break any VIs that call the XControl until you are done editing it.
Chris M

Similar Messages

  • Hide passcode lock when using projector

    Is it possible to hide the passcode lock when using a projector? I'm a teacher so when my ipad locks and I want to unlock it the whole class can see my passcode unless I unplug it first!
    Thanks

    Many projectors have a button or option to 'black' the screen, which keeps the projector on, just in some way doesn't show any light, making it easy to show something else on the same screen. See if yours has the option, and if so, press it, put your code in, then press it again.

  • Locking when using a component as an object in the application scope...

    I have a component that I am building right now that hold
    application settings that are stored in a database table. The
    settings are maintained in a structure "variables.settings" within
    the component and can only be accessed by get and set methods. I
    use the following to create the instance of the object:
    <cfset application.settings =
    createObject("settings","component").init() />
    Now when getting a setting I do not think locking is needed
    as its just reading the value and I am not really concerned with a
    race condition...
    But when using the set method which will update the value of
    the setting.... should I be locking that as technically the object
    is in a shared variable scope? Or is it safe because its within the
    cfc/object?
    If locking is needed, would I need to lock when using the set
    method? or can I just build the lock into the set method so that
    its always there?

    To disagree with craigkaminsky, I think you only need to lock
    if you are
    concerned about race conditions and what could happen during
    a 'dirty
    read' and|or conflicting writes.
    A lot of developers have an old impression of ColdFusion that
    one *must*
    lock all shared scope variable access to maintain a stable
    application.
    This dates from the ColdFusion 4.5 days where there where
    bugs in
    ColdFusion that could cause memory leaks and eventual
    application
    instability if one did not lock shared scope reads and
    writes. This has
    long been fixed, but the advice persists.
    So now it is only a matter of your data and what would happen
    if one
    user read an old value while it was in the process of being
    updated by
    another user. Or could two users be updating the same value
    at the same
    time and cause conflict. If either of those two statements
    are true,
    then yes you should use locking as required by your
    application.
    But if they are both false and it does not matter that user A
    might get
    the old value microseconds before user B changes it. Or there
    is no
    concern with user A changing it once and user B changing it
    again to
    something different moments later without knowing the user A
    has already
    changed it. Then locking is probably unnecessary.
    There can be a cost to over locking shared variable writes
    and|or reads.
    Every time one creates a lock, one is single threading some
    portion of
    ones code. Depending on how the locking is done, this single
    threading
    may only apply to individual users or it may apply to every
    single user
    on the entire server. Either way, too much of this in the
    wrong places
    can create a significant bottle necks in ones application if
    too many
    user requests start piling up waiting for their turn through
    the locked
    block of code.

  • Shutter locks when using the camera in AV mode.

    EOS Rebel T3i - Shutter locks when using the camera in AV mode.  It actually freezes up when in this mode...no it's not just allowing more light in through the shutter but rather locking in the open position.  How can I resolve this? Thank you.

    Does it do this in bright sunlight at the lowest f/number?
    How do you know the shutter is locked open?
    Does it do this on multiple lenses?
    How long does the phenomenon last, and how do you stop it?
    Do you end up with an image? Is it totally overexposed and motion blurred?
    Positive it is not mirror lockup?
    Scott
    Canon 6D, Canon T3i, EF 70-200mm L f/2.8 IS mk2; EF 24-105 f/4 L; EF-S 17-55mm f/2.8 IS; EF 85mm f/1.8; Sigma 35mm f/1.4 "Art"; EF 1.4x extender mk. 3; 3x Phottix Mitros+ speedlites
    Why do so many people say "fer-tographer"? Do they take "fertographs"?

  • My track pad on my air doesn't always respond when using firefox and trying to scroll up or down in the page

    when in firefox my track pad doesn't always respond when I want to use fingers to scroll up or down in the screen...any thoughts?

    it is possible that zoom maybe enabled i think double taping with three fingers should disable it.
    or you can go into settings>general> assessability> zoom and turn it off.
    hope this helps

  • Screen locks when using earphones

    [Topic title updated by moderator to be more descriptive. Original topic title was: "skype"]
    I'm using Note 2 for skype. When I'm using my earphones to skype, my phone always lock the screen. I can still hear my friends my phone is lock. Everytime i unlock it, it will lock right away. So is my phone the problem or skype ?

    I have the same problem with my sony experia Z1 compact. plus even if i do not have the earphones skype is locking the screen from time to time it's really annoying as I can not send pictures or messages because it is still locking the screen. 

  • Error Message When Using a Class Files to Control Navigation

    This is my first attempt at using a class file in a flash project. My intent is to keep all of my navigation elements in class file called "Navigation".  However, I keep getting an error message when I publish.
    I am using a button to go back to the main screen and I gave that button the instance name of "bnt_home". I have also linked that button in the library to the class "Navigation".
    Here is the code:
    package
        import flash.display.SimpleButton;
        public class Navigation extends SimpleButton
            public function Navigation()
                bnt_home.addEventListener(MouseEvent.MOUSE_DOWN, goNavigation);
            private function goNavigation(event:MouseEvent):void
                gotoAndPlay(1,"Main");

    When I changed the code I got error (1046: Type was not found or was not a compile-time constant: MouseEvent).
    package
        import flash.display.SimpleButton;
        public class Navigation extends SimpleButton
            public function Navigation()
                this.addEventListener(MouseEvent.MOUSE_DOWN, goNavigation);
            private function goNavigation(event:MouseEvent):void
                root.gotoAndPlay(1,"Main");

  • Problem when used InetAddress class in Applet

    Hi all.
    I'DongPG from Vietnam.
    I have a question'How to get IP that different from IP default "127.0.0.1" address'.
    I've built an applet where i used InetAddress class to get browser'IP follow:
    InetAddress localIP = InetAddress.getLocalHost();
    String strIP=localIP.getHostAddress();
    I used JBuilder to build applet. It's gotten IP right. Ex:strIP='192.168.100.1'
    But when i used browser link to my Applet in WebServer, it only return strIP='127.0.0.1'
    Thank a lot!

    Wrong forum and cross posted as well.

  • Avoiding attributes when using transform class

    Hi,
    One more help pls!!!!!
    When I use transform class and create an XML file, it creates with attributes for the nodes.
    For exapmle,
    <MessageOwner type="type" name="name">
    How do I avoid this type and name attributes?????
    Thanx and Regards,
    Gayathri.

    create a XSL that will not output the attibutes.

  • Releasing locks when using "Navigate Pushbutton" in Web Interface Builder

    Hi
    I am creating a basic BPS application in Web Interface Builder for manual data entry into a Cube.
    I have a requirement for a user to navigate away from the data entry screen to a "Start Screen".  To do this, I am using the "Navigate Pushbutton" component.
    When the user navigates away from the data entry screen, I want the locks to be released.  I have attempted to do this using the "End Command" attribute of the Navigate Pushbutton to "True".  According to the Help for this attribute, the following should happen:
    " When this property has the value TRUE, the page context will be lost when you press the pushbutton (and all locks are deleted)."
    However, when I look at the locks in SM12, I can see that the locks remain, even after the user has clicked on the Navigate Button.
    Therefore, it would appear that the "End Command" attribute does not release the locks when it is set to True.
    (By the way, I have also tried setting it to false, but the same issue occurs).
    Has anyone got any advice on how I can solve this?
    (We are running BW 3.1).
    Thanks in advance for any thoughts.

    Hi,
    You are correct this is standard functionality that should work. Please post the solution proposed by SAP.
    As a stop gap you can look at this topic
    User Lock BPS Web interface
    thanks

  • Crash/lock when use special symbol palette in iDVD 6

    I tried to use the special symbol palette to try to insert special language characters in the comments on a picture in a slide show. On choosing special symbols from the menu line (Edit) all seemed to be fine until I tried to choose another category of symbol from the palette.
    At that point the symbol palette goes blank or only part of the information is visible and I can not close or move it. Often iDVD also locks and I have to force the application to quit.
    After that, the blank symbol palette keeps popping open (then closing) when working with other applications. Cold restarts do not cure the problem. Only solution I have found to stop the annoying pop up of the palette is to delete the file in user preference (com.apple.CharPaletteServer.plist)
    I try to do the same operation again with the same results. Do not know if this is a new problem or long standing since I had never used the palette before with iDVD. I can clear the created problem with the hanging palette, but the palette is esentially unusable. Character palette seems to be ok when using it from the international keyboard menu.
    (The reason to try to use the palette was I could not paste names in a language that do not use Mac's standard diacriticals. Why is there no font menu choice or ability to paste a name from another application that has font menus?)

    Wow-totally missed that-sorry. I guess i assumed that you didn't do that because that is about the only thing that I know of to fix it.
    I guess you could try Validating fonts
    http://docs.info.apple.com/article.html?path=FontBook/2.0/en/fb1003.html
    I'm out of ideas...but, I am certain that others will show up that have other ideas though.
    Sue

  • Passing argument to, when using one class for multiple assets

    I had a class that I was passing a simple argument to like so:
    var quiz_1_2:CaseStudyQuiz = new CaseStudyQuiz(2);
    addChild(quiz_1_2);
    I now would like to use this class for multiple MCs in my library. I thought I could let Flash create a class for each of them and specifying the CaseStudyQuiz class as the Base class. When I do that, I get the following error:
    1136: Incorrect number of arguments.  Expected 0.
    Obviously this is because the class created by flash does not except an argument. Does that mean, I would have to create a seperate class for each of the movies that use that class? And if so, what would I have to do in that class for it to except the parameter and pass it on to my base class?
    Thank you very much for any help with this!!!

    use the super() function and pass your parameter.  but you still might get a runtime error but i don't think that will cause a problem.

  • Compile error when using a class by fully-qualified name

    Hi... Is it an AS3 "feature" or a FB compiler bug that I cannot use a class without importing it?
    I have a statement such as
    if (de.codebank.util.StringUtilities.startsWith(status.name, phase.name+"_"))
    which does not compile until I import the StringUtilities class, which is pointless, of course.
    The compile error mentions an unknown property "util"

    I believe this is how AS3 works. Fully qualified class types require import statement.
    You use fully qualified name whenever you want to avoid ambiguity.
    However, when the code is like,
    import mx.collections.XMLListCollection;
    var arr:mx.collections.ArrayCollection;
    It works since compiler now understands that "mx.collections" is a package.

  • MBP with retina display always crash when using Final cut pro x and iMovie. Plz l need help

    HI, My MBP with retina display always crash when l am using Final cut pro x and iMovie and come up with gray screen. Plz l need help

    Take it back and get a refund. What are you waiting for, your new Mac does not work correctly.

  • Sharepoint Designer always crashes when using the Sharepoint people/group picker in a Workflow

    SharePoint designer 2013 (sp1) crashes consistently when doing the following:
    Create workflow
    Create email action
    In the email To field select People/Groups from SharePoint site
    SharePoint Designer crashed and says "Microsoft SharePoint Designer has stopped working"
    This issue has been reported before in SharePoint 2010 on TechNet as a bug in the software, but with no proper resolution.  I am very surprised that it is still an issue in 2013 version (sp1 which was released Feb 2014) and Microsoft have not tried
    to address this.
    I have read elsewhere that the fix for this is to only have a single IIS binding for the site being used (ie not have additional alternate access mappings).  However this is not possible for us as we need the additional alternate access mappings.
    Any help/suggestions gratefully received.
    Thanks
    Bill W

    One way is as you mentioned try the below link
    http://xblogs.kompas-xnet.si/post/SharePoint-Designer-2013-Crashing-when-using-select-peoplegroups-from-SharePoint-site.aspx
    Instead of  setting people picker's Return field as "As String" could you please try setting the return field as Email Address
    Destin -MCPD: SharePoint Developer 2010, MCTS:SharePoint 2007 Application Development

Maybe you are looking for

  • Form processing using getParameter Names() and Values() Seriously confused

    Hi all, I have an HTML table containing multiple <INPUT name='Flows[]' ...> to create arrays. However, when I try to process the code in my servlet it gets ignored and no excpetions are thrown. I know I must be doing something wrong but for the life

  • What is the problem with Adobe Customer/Tech support for Premiere Pro?!?!?!

    Today Adobe closed the NINTH support ticket - since mid-January - on my problem with Premiere Pro CC - it crashes on startup (just after the splash screen loads). From what I gather on here, I am not alone with this problem. It's apparently rather co

  • From AS/400 to SAP

    Dear all, I've got to integrate on a daily basis a file which is intially generated by an AS/400 system into SAP 5.0. Incoming data format RDB*? Data types are FI Volume not so big Frequency daily Would the batch input be the best way to do so? Regar

  • I want to save text presets in Final Cut

    every time I search for an answer to my problem all I get is "edit it in motion". I don't have motion.

  • What is he order of installion for the labview 7.1 cd's

    I aqm trying to install labview 7.1, everytime I try to install one thing, it tells me I need to install something else to intall all the features of that item. There must be some sequence you are supposed to follow, do you install the one labeled La