To more specific class - cursor reference - error 1057

I must be missing something very stupid here. Why is this cast not working? Thanks!

There are other questions to be answered:
1. Does the cursor exist on the graph?
2. What other errors are you getting earlier in the process?
3. Have you tried probing the cursor reference before you did the cast to a generic type?
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

Similar Messages

  • To more specific class: all return error after upgrade from LV2011 to 2012

    I have working projects/executables built in labview 2011. When loading the exact same project in 2012 EVERY 'to more specific class' returns an error.
    For example, making a generic control reference into a 'numeric'.
    Redoing the exact same action makes no difference. What has changed in LV2012?

    Can you post an example VI containing such code? Please post the original 2011 code.
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • To more specific class for waveform chart

    Dear All
    In the attached VI diagram the "To more specific class" gives an error messag:
    LabVIEW:  Type mismatch: Object cannot be type casted to the specified type.
    so it can not work for my waveform chart. I think I changed some properties or some thing similar for my chart that can not work with this routine because it works for new instances of waveform charts but whatever I try to find the difference between my waveform chart and a new instance of waveform chart I don't not find any difference.
     Do you have any clue?
    Best regards
    Afshin
    Attachments:
    VI2.JPG ‏59 KB

    Try to use the "Controls[]" and the "ClassName" property instead. See attachment.
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"
    Attachments:
    WaveformChart.JPG ‏61 KB
    WaveformChart_85.vi ‏18 KB
    WaveformChart_85_CTL.ctl ‏9 KB

  • Refnum more specific class error

    I am trying to make a general control reference number into the more specific TabControl refnumber, but when I try using the "To More Specific Class" VI with a TabControl reference constant, I get the following error:
    Code: 1057
    Error:  Type mismatch: Object cannot be type casted to the specified type.
    I have posted a picture of what I am trying to do (the false case just passes the boolean through).
    Is there a reason that I am not able to nake the more general control reference into a TabControl refnum?
    Thanks.
    --Robert
    Message Edited by knapkerd on 06-19-2008 11:28 AM
    Message Edited by knapkerd on 06-19-2008 11:28 AM
    Attachments:
    more_specific_class.PNG ‏11 KB

    knapkerd wrote:
    Is there a reason that I am not able to nake the more general control reference into a TabControl refnum?
    Yes, there is.
    What you're attempting to cast is not the tab control, but its owner, which would be either the panel or the pane. If you use the control reference it should work.
    As a side point, a simpler way to do this would simply be to type cast until you get no error (instead of comparing to the class name). If you need more than one class you can wire the string directly into the case structure selector.
    Try to take over the world!

  • To more specific class: Cant find strict numeric, only numeric

    Im trying to read a control property by reference from some controls that are in a cluster.
    I want to cast the property's reference to a more specific class: strict numeric, but I can only find 'Numeric' which leaves me with variant data.
    Any help?
    Solved!
    Go to Solution.

    Hello,
    I think you can't (not fully sure though). What you can do is get the "Representation" property, that tells you if it's I32 or DBL or else (as an enum) and with this information you can get the value from the variant.
    See :
    Hope this helps
    EDIT :
    Oh... I see now that there IS a way, thanks for that pincpanther :-o
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"

  • To More Specific Class & Plugin Architecture

    Hello there,
    I have a plugin architecture and I want to load a particular class on demand, when a user clicks a button etc.
    I can do this using 'Get LV Class Default Value.vi' knowing the path of the .lvclass file, and I can then use the 'To More Specific Class' vi to cast it from type LV Object to the specific class I know it to be.
    However if I have 30 different classes with this method I would have to have 30 different class constants in a case structure so I can cast to the right one.  This works but it means all the classes are loaded into memory when the program is run, even though the user may never want to use most of them, which is a waste of time/memory.
    Is there a better way of doing this please?
    Thanks,
    Martin

    I wonder if minute 4:00 in Michael's video will help you. It avoids the constants, as long as all the classes are descendants of a common class:
    http://vishots.com/005-visv-labview-class-factory-pattern/

  • More specifically here is the error message

    This is what the error message says. It also has the toast icon in it which suggests its a roxio issue but in case its not;;;
    The drive reported an error:
    Sense Key = MEDIUM ERROR
    Sense Code = 0x0C
    WRITE ERROR
    If anyone of you have seen this and know what it means please let me know

    It is saying the disc is bad. Try another brand of media, such as Verbatim.

  • How to capture the DB Errors to display more specific error on the screen

    HI,
    How to capture the DB Errors to display more specific error on the screen?
    Can any one suggest on this please.
    Thanks

    hi,
    in your db package or procedure write this in ur exception handler
    as
    excpetion when others
    FND_MSG_PUB.ADD_EXEC_MSG (pkg_name, proc_name,
    substr(sqlerrm, 1, 240))
    now in your java code you can catch and throw this excpetion by using
    OAExceptionHelper.checkErrors (Tx, messageCount, returnStatus, messageData);

  • I am having difficulties loading pages. For example: I am on the powerschool web site looking at my child's grades. I want to get into a specific class and the page either takes many minutes to load or I get the error message that the page can't load. He

    Can't get into specific class grades. It's not just here though; many pages load and load and load taking an extremely long time only to get an error message.
    == URL of affected sites ==
    http://ps.hibbing.k12.mn.us/public/home.html

    Hello, could this be it?
    Java for OS X 2012-006: How to re-enable the Apple-provided Java SE 6 applet plug-in and Web Start functionality
    http://support.apple.com/kb/HT5559

  • StartTransmit / stopTransmit reference error on NetStream when connecting to device

    Hi all,
    I'm trying to create a P2P connection between a mobile device (Android) and a PC using the NetStream class.
    When the connection is established, the Flash Player Instance on the PC is crashing with a reference error:
    “Property startTransmit not found on flash.net.NetStream”
    I have seen the thread located located here: http://stackoverflow.com/questions/9676496/adobe-cirrus-error-on-direct-connectproperty-st arttransmit-not-found-on-flash-n
    but was not successfull in making it work with my code.
    I have tried extending the NetStream class like so:
    import com.frimastudio.cosy.util.NetConsole;
    import flash.net.NetConnection;
    import flash.net.NetStream;
    public class NetStreamProvider extends NetStream
      public function NetStreamProvider (connection:NetConnection, peerID:String)
       super(connection, peerID);
      // For AIR Android projects: when the device is put to sleep for a moment, this function will be
      // called so we need to implement it to prevent flash from crashing.
      public function startTransmit($p1:*, $p2:*):void
       COSY::console { NetConsole.WarningInternal("NetInterfaceSlot", "startTransmit", "startTransmit called"); }
      public function stopTransmit():void
       COSY::console { NetConsole.WarningInternal("NetInterfaceSlot", "stopTransmit", "stopTransmit called"); }
    and using the NetStreamProvider instead. Without success.
    Any help would be greatly appreciated.
    Thanks.
    Guillaume

    >> i suspect this is AIR-specific (probably if AIR is the sender) -- in my experience it doesn't happen with plain Flash Player.
    [Guillaume] -> Right, it does not happen on NetStreams between 2 Flash Players and 2 AIR app. Only between AIR-FlashPlayer NetStreams. Basically, after a stream is opened between AIR and Flash Player, the AIR is calling "starTransmit" on the FlashPlayer NetStream, wich is not implemented.
    >> try making an object with those method names and assign it to netStream.client
    [Guillaume] -> I tried the following:
    Implement starTransmit/stopTransmit functions in the NetStream.client object
    Implement startTransmit/stopTransmit functions in the NetStream instance (subclassed)
    Without success. Basically, it works fine if I just create a "dummy" client object for the NetStream that has those 2 functions. But If I want to use my own client it was still crashing.
    I found a work around for my problem.
    My NetStream object is sub classed as such:
    public class NetStreamProvider extends NetStream
      public var customClient:Object;
      public function NetStreamProvider (connection:NetConnection, peerID:String)
       super(connection, peerID);
       customClient = new Object();
       this.client = customClient;
       // Implement startTransmit and stopTransmit here for dummy client
       customClient.onPeerConnect = function(subscriber:NetStream): Boolean{
        var subClient:Object=new Object();
        subClient.stopTransmit=function($p1:*,$p2:*):void{
         trace("Cosy: stopTransmit called",$p1,$p2);
        subClient.startTransmit=function():void{
         trace("Cosy: startTransmit called");
        subscriber.client = subClient;
        return true;
      public function SetClient(c:Object):void
       this.client = c;
      public function OnNetStreamAsyncError(event:AsyncErrorEvent):void
    And in the stream status event handler, when the stream is ready (events "NetStream.Play.PublishNotify" and "NetStream.Play.Start") I set the correct client, which has the receive handler. At that point startTransmit was already called:
    And in the stream status event handler, when the stream is ready (events "NetStream.Play.PublishNotify" and "NetStream.Play.Start") I set the correct client, which has the receive handler. At that point startTransmit was already called:
    private function OnNetStreamStatus(e:NetStatusEvent)
    switch(e.info.code)
      case "NetStream.Play.PublishNotify":
               stream = e.target as NetStreamProvider;
               stream.SetupClient(client);
      break;
      case "NetStream.Play.Start":
               stream = e.target as NetStreamProvider;
               stream.SetupClient(client);
      break;
    At this point, i'm not blocked anymore. However, it would be good to know why, when and who are calling those functions to understand the issue. this is not documented anywhere, and might be an issue to a lot of people now that we are starting to see more and more cross-platform connectivity.
    Cheers.
    Guillaume

  • Why is the static method in the superclass more specific?

    Why is the static method in the superclass more specific than the static method in the subclass? After all, int is a subtype of long, but Base is not a subtype of Sub.
    class Base {
        static void m(int i){ System.out.println("Base"); }
    class Sub extends Base {
        static void m(long l){ System.out.println("Sub"); }
    class Test {
        public static void main(String[] args) {
            int i = 10;
            Sub sub = new Sub();
            sub.m(i);
    }The first example compiles without error.
    Output: Base
    class Base {
        void m(int i){ System.out.println("Base"); }
    class Sub extends Base {
        void m(long l){ System.out.println("Sub"); }
    class Test {
        public static void main(String[] args) {
            int i = 10;
            Sub sub = new Sub();
            sub.m(i);
    }In the second example, both instance methods are applicable and accessible (JLS 15.12.2.1), but neither is more specific (JLS 12.2.2), so we get a compiler error as expected.
    : reference to m is ambiguous,
    both method m(int) in Base and method m(long) in Sub match
    sub.m(i);
    ^
    1 error
    Why don�t we get a compiler error for the static methods?

    Thank you for your ideas.
    ====
    OUNOS:
    I don't get Sylvia's response. This is about static methods, what are instances are needed for??Yes, the question is about static methods. I included the example with non-static methods for a comparison. According to JLS 15.12.2, both examples should cause a compiler error.
    And why you create a Sub object to call the method, and dont just call "Sub.m(..)"Yes, it would make more sense to call Sub.m(i). Let�s change it. Now, I ask the same question. Why is there no compiler error?
    ====
    DANPERKINS:
    The error in your logic stems from calling static methods on instances, as ounos pointed out. Solution: don't. You won't see any more ambiguities.A static member of a class may also be accessed via a reference to an object of that class. It is not an error. (The value of the reference can even be null.)
    Originally I was looking only at the case with non-static methods. Therefore, I used sub.m(i). Once I understood that case, I added the static modifiers. When posting my question, I wish I had also changed sub.m to Sub.m. Either way, according to JLS 15.12.2, a compiler error should occur due to ambiguous method invocation.
    ====
    SILVIAE:
    The question was not about finding an alternative approach that doesn't throw up an ambiguity. The question related to why, in the particular situations described, the ambiguity arises in only one of them.
    Yes.
    Proposing an alternative approach doesn't address the question.
    Yes.
    ====
    If anyone is really interested, here is some background to the question. Some people studying for a Sun Java certificate were investigating some subtleties of method invocations:
    http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=24&t=019182
    I remember seeing the non-static case discussed in this forum once before in a more practical context. jschell probably knows the link.

  • VI reference (error 1003) in executable

    Hello all,
    This is a branch-off from this thread.
    Thank you for your reply Rob, I also suspect that the problem is related to "second-tier" subVI calls made by the first-tier subVIs. Here are answers to the questions you asked in your post:
    -Yes, I am calling the VIs with absolute paths. To be more specific, I use the "VI Path" property of the VI (before exe) or "Directory Path" property of the Application (for exe).
    -The three large subVIs that are called dynamically all share several subVIs. I suspect the problem is somehow related to this. To clarify, all three VIs use several specific VIs that I have written to open/read/write/close an industry-formatted file. I verified that the three main subVIs all call the common subVIs from the same locations on disk, i.e. the same subVI should not be included twice under different file locations. For a quick test, I dropped the file-editing subVIs into the 4th subVI (which never fails to open/close) and rebuilt the application. The results are the same: The 2nd, 3rd, and 4th VIs can all be opened and closed multiple times with no error. The first VI can be opened and closed once with no error, but then none of the first three VIs can be opened again (error 1003). Meanwhile, the trusty 4th VI can still open and close after the error begins, now with the several common VIs included in its code.
    -I have the debug license, but I'm a little confused by what you suggested. At this point I am not running the subVIs (via invoke node) in order to produce the error, I need only try to open and close a reference to the VIs. I'm not sure if you meant to trace the execution of the subVIs when running them or if you had something else in mind. Can you please elaborate?
    I am attaching an image of the block diagram of the top-level VI in case that helps. In the meantime I will continue investigating subVIs and attempt to identify any more useful symptoms. Thanks Rob (and anyone else!), I really appreciate your help.

    Hmm... I thought I attached it. I'll try again.
    Attachments:
    080407_CompileError_BD1.jpg ‏81 KB

  • Re: More specific to two questions

     

    Hi everybody,
    I have been watching this debate with interest. I encountered similar
    situation and realised that even after calling the method
    ReleaseDistReference on DistObjectMgr, the object is live ( Probably
    some time before garbage collection kicks in) and can be binded using
    ObjectLocationManager.BindObject() method. This caused some problems to
    us. This object is not invalidated for further use. Can somebody from
    Forte answer this ?
    Pradnesh Dange
    Indus Consultancy Services
    140, E.Ridgewood Ave.
    Paramus, NJ 07652
    Ph: 201-261-3100 (x-234)
    Fax: 201-261-1399
    From: Shi-Long Yin[SMTP:[email protected]]
    Reply To: Shi-Long Yin
    Sent: Tuesday, December 22, 1998 12:19 PM
    To: Boris Berezetsky; 'Forte Users Mailing list'
    Subject: Re: More specific to two questions
    Hi, Boris
    Your helps are really appreciated!
    I've already read this part and other relevant materials of Forte
    document.
    So far, what I understand is if an object is anchored, the garbage
    collector
    will be not automatically applied to it. You must explicitly add it
    to the
    list of the garbage collection.
    Also, many thanks to all who have helped me in this topic.
    Merry Christmas!
    Shi-Long
    Boris Berezetsky wrote:
    Hi, Shi-Long
    I'm not sure if this has been mentioned already, but just in case...
    Take a look at ReleaseDistReference method of DistObjectMgr class.
    The following is an excert from Forte Help on the topic:
    "This method is needed because the distributed object manager keepsa
    list of all anchored objects that have been handed out asdistributed
    references, or are anchored objects that are being used asdistributed
    references in other partitions. Invoking the ReleaseDistReferencemethod
    lets the distributed object manager remove the object from itsinternal
    list, which can then allow memory management to occur on theobject."
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive
    <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • Thousands of reference errors in TCMRuntimeManager.as

    I'm working on a fairly large AIR app and in the process of trying to find the cause of an out of memory error, I see that the class TCMRuntimeManager.as is throwing thousands of reference errors...just letting my app sit for 10 minutes had over 350,000 reference errors.  The function checkTLFFontsLoaded is the culprit.  I'm not sure if the reference errors are directly related to the out of memory error, but I did notice that as I interact with the app not all the reference errors are getting garbage collected.  If I stop interacting with the app and force garbage collection a few times they all get cleared, but I think that under normal use the garbage collector is getting overwhelmed and doesn't clear out everything, and thus eventually these errors start piling up and contribute to the out of memory error.
    The way the project is built is Flash CS 5.5 is used to import psd files, I set up some linkage classes, then export as a swc.  The psd text fields are imported as TLFTextFields.  The swc assets are then used in a FDT project compiled with Flex SDK 4.5.1 with AIR SDK 3.1.  There are 5 products, each with its own swf.  The swfs are compiled as Flash browser swfs and they are debugged/profiled using the standalone Flash player.  When I profile the individual swfs there are no reference errors.  If I profile the main swf (using adl) without loading the individual swfs, there are no reference errors. It's only when one or more of the product swfs are loaded into the main swf that reference errors start piling up. I've tried conerting the static text fields into bitmaps and registering the fonts (all from the same swc) in each swf and it hasn't made the problem go away but the memory spikes are no longer so dramatic. Any ideas on what is the root cause of this error?

    fl.text.TCMRuntimeManager was implemented by Flash pro. Please forward the question to http://forums.adobe.com/community/flash. Thanks!

  • How to modify a specific class in jar file ?

    I've downloaded a jar file for applet, the jar file works fine... but when I extract a specific class file from the jar file and just recompie it from my IDE (Eclipse) without even making any change and then compress again jar class files including the new modified class file instead of the old one (without any modifications to other classes)... then I get
    (NoSuchMethodError ) exception whenever methods of other classes are invoked from within the modified class !!
    ...The manifist file of the jar file reads the following line
    Created-By: 1.4.0_01 (Sun Microsystems Inc.)
    I thought it means that jar class files were built using JDK 1.4.0_01 ...I used JDK 1.5.0_01 in my IDE...
    I thought JRE incompatiblity was the reason of the problem so I downloaded JRE 1.4.0_01 and used it to build this class file... but i got the same exception..
    so what is the main reason of the problem ? ...should I make changes to IDX files accompanying applet jar files ??
    If no, then how can I overcome this problem and be able to change and rebuild a specific class from this jar file ?
    (I cannot rebuild all classes in jar because there are errors I cannot resolve !!)

    Could you please clarify: do you want to run your project or a project from an independent jar?
    In the first case just select Run Project from the project context menu or select a class with main method and click Run File in the class context menu.
    Regarding the second case:
    - I don't think there is such a feature in the IDE (running third party jars is not an IDE function). Could you explain why you need this?

Maybe you are looking for

  • ITunes keeps resetting and asking me if I want to download album artwork!

    Hi, it seems as though every time I open iTunes these days the stupid window pops up asking if I want it to automatically download album artwork. I click "No, blah blah blah." And then iTunes opens. At the left is the "Download" option thing (in gree

  • I can't found the photo button on itunes11 !!!

    i can't found the photo button on itunes11 !!!

  • Can I order a free replacement USB docking cord?

    I recently received a new iPod Nano 5th Gen. 8GB as a Christmas gift. I have used it constantly. Unfortunately, after tons of use, my USB docking cord started to get a few little tiny tears in it. I don't know what happened but there it a hole at the

  • Slow opening of file to edit

    Hi there, I it very slow (up to four minutes) to open a photographic (jpg) file to edit with Photoshop (it is ridiculously slow)....should I uninstall it and then reinstall it again? Thank you

  • Stacked bar chart colors

    Post Author: mecca CA Forum: Charts and Graphs I hope someone knows the answer to this question. Can you change the color format of a stacked bar chart line individually (not the whole lines color), I need to hide the min field by using the color whi