Return of void functions inconsiste​ncy between CVI 2013 and older

Hello,
I have discovered an inconsistency using CVI 2013 (SP2 or not) compared to CVI 2010 and CVI 8.5 (the versions I have).
I have written, by mistake, a code where I'm returning a value for a void function. CVI 2013 does not complain (but should) while other CVI versions complain (and that's OK).
Here is the code:
static void pouet(void)
return;
static void hop(void)
return pouet();
int main(void)
hop();
return 0;
Could this behaviour be fixed for the next CVI update ?
Thanks.
Frédéric Lochon.

Well it's technically not causing wrong behaviour, but may cause less than best performance depending on the compiler code generation as the register usually used for function return values might be assigned some garbage value that never will get used though.
Causing an error is likely a bit strict, issueing a warning would be the prefered behaviour, not generating either a warning or error is a bit lazy. Problematic would be if you could write this without getting an error:
static void pouet(void)
return;
static int hop(void)
return pouet();
int main(void)
hop();
return 0;
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions

Similar Messages

  • The printing of .pdf file from Project 2013 stops when the file name should be written. Project 2013 crashes. Does someone know what is wrong between Project 2013 and Adobe Acrobat 9?

    The printing of .pdf file from Project 2013 stops when the file name should be written. Project 2013 crashes. Does someone know what is wrong between Project 2013 and Adobe Acrobat 9?

    The Acrobat 9.x product family passed into "End of Support" mid-year of 2013.
    Acrobat 9 support of MS Project via PDFMaker stops with Office 2007.
    For Office 2013 support you must use Acrobat XI (11.0.1) or newer. 
    A good to have reference:
    https://helpx.adobe.com/acrobat/kb/compatible-web-browsers-pdfmaker-applications.html
    Acrobat Pro and Standard DC are what are currently available for purchase. 
    Be well...

  • What's the difference between SharePoint 2013 and Office 365 Team Sites?

    Hi there,
    What are the differences between SharePoint 2013 and Office 365 Team Sites?
    If I would like to develop a professional corporate website with SharePoint technology (because the company allready uses Office 365), do you recommend using SharePoint 2013 (in the cloud) or Office 365 Team Sites? And why?
    Thank you very much!

    You cannot make SPO Team Sites anonymous-enabled, therefor they're a moot point for a public website.
    While slightly out of date, take a look at this:
    http://nikpatel.net/2013/01/17/new-sharepoint-2013-wcm-features-are-not-available-in-sharepoint-online-2013/
    http://technet.microsoft.com/en-us/library/sharepoint-online-content-service-description.aspx
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Is there difference between CVI dll and a normal C dll

    Hi All,
    I want to know is there any difference between C dll and CVI dll?
    If any body has idea on this, Pls reply back to me.
    Thanks,
    Harika

    Are you sure about that?  Visual C++ has runtime libraries that need to be deployed in order for an executable to work as described on this MS site:
    http://www.microsoft.com/downloads/details.aspx?fa​milyid=9b2da534-3e03-4391-8a4d-074b9f2bc1bf&displa​...
    So I'd be surprised that somehow they manage to statically link all the runtime dependencies for a DLL if they don't/can't do it for an executable.
    Even if you include the runtime support in the distribution, wouldn't they deploy as separate DLL's?   Are you saying that there's static library equivalents for all of VCPP runtime support?
    Menchar
    Message Edited by menchar on 05-21-2010 09:19 AM
    Message Edited by menchar on 05-21-2010 09:21 AM

  • CVI 2013 and Windows SDK

    Hi,
    I just downloaded and installed Labwindows/CVI 2013 full development system on my new computer.
    It's a Win7 64 bit computer.
    Do I have to do any additional installations to use Windows SDK functions, or is it included in the typical installation?
    Thanks,
    Kirk
    Solved!
    Go to Solution.

    Unless in 2013 something has changed, normally you must explicitly select the corresponding option in order to have the SDK installed. You must perform the setup again and expand the CVI item in the product tree, next select "Interface to the Win32 API" item: the appropriate libraries and include files  will then be installe on your system.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • What are the major differences between hana 2013 and 2014 release

    Hi Guys,
    I am planning to learn sap hana and write certification exam. As sap release new platform 2014, may I know what are the major deference between 2013 and 2014 release or its just enhancement pack on top of 2013.
    Please help me....thank you in advance.
    Regards,
    Tapas

    Hi,
    Good morning and greetings,
    Please use the following link
    http://solutionbrowser.erp.sap.fmpmedia.com
    Please reward points if found useful
    Thanking you
    With kindest regards
    Ramesh Padmanabhan

  • Sync calendar and contacts between Outlook 2013 and iPhone 4

    I am trying to sync my calendars and contacts between Outlook 2013 (Office 365 Home Premium) and my iPhone 4 (iOS 7.0.4).  I have created a confusing mess for myself and do not recognize all of the calendars that appear in Outlook or the iPhone.  I
    abandoned the use of the iCloud because the iCloud calendar invitations my coworkers received in MS Outlook are too confusing to read.
    Is there a proven process for syncing when i add a new contact or calendar event in one device so that it shows up simultaneously in the other?  If the process is too laborious, is there an Outlook add-on?
    I have tried the Exchange ActiveSync but I can't get this to work smoothly.  I can't move recurring calendar events that started in the past.  Further, I have to navigate 2 separate data files in outlook to find the right calendar or inbox.
    I am not sure if Exchange and Exchange ActiveSync are the same or not.
    Additionally, this is a private domain address (my work email).

    Hi,
    Basically, Exchange ActiveSync and Exchange are two different sets of protocols, but both of them have the feature to sync contacts and calendars between different devices.
    If your company provides an Exchange account for you, just setup it in Outlook Client, it will sync the contacts and calendars between clients and the Server.
    If you have an Outlook.com(Hotmail) or any other email account that supports Exchange Activesync, just set it up in Outlook, the contacts and calendars will also sync.
    As for iPhone, just make sure it also uses the same protocol.
    If there's anything wrong with the account sync on PC, rename the current data file to ".old", let Outlook create a new one to sync, or we can create a new profile to setup the account:
    http://support.microsoft.com/kb/829918/en-us
    Regards,
    Melon Chen
    TechNet Community Support

  • Keychain sync issues between new iMac and older 10.4.11 machine

    I am having a tough time since purchasing a new imac - I can get mobileme working reasonably well with few issues if I have keychain syncing disabled on both machines but I would like to get to the bottom of this and be able to sync it automatically.
    Here is a description of the issues I am getting in spite of performing the regular advice to set up a new account once the issue starts and move all my stuff into that new account.
    After a few syncs I get the advice "please enter the password for "(myname), Aos Powerbook G4 17""
    Now the A has a double dot (umlaut ?) above it and the o has a ^ above it - not sure how to get that with this keyboard or I would have done it ...
    This box is empty below this dialogue (expecting a passcode) and whatever password you enter (I have tried all of mine repeatedly over several weeks now !) it just doesn't accept it. It is as if someone else in a parallel universe has your mac and has entered a new passcode !
    Occasionally I will get 'the keychain on '^&G*)(" has been altered do you wish to merge' (not exact text but something like) and I am no longer able to send emails without entering my email account password first and every so often.
    There are other weird symptoms too - but does this trigger anyones grey matter ?
    IS there an issue between 105 and 104 syncing ?
    Thanks
    Andy

    I should also point out that I have an iphone and this poor puppy has tons of apps and data associated with the apps on it......
    Anyone have a clue as to how I back this up with the new pbook user account I have created to sidestep the keychain issue ?
    The only option it shows erases the iphone's applications and their assoc data from what I can see ....
    Thanks
    Andy

  • Problems with wireless connection between new macbook and older imac

    I have just bought a 2.0 ghz macbook core2duo and am unable to connect to my wireless internet network at home. My wireless connection is set up through the airport card in my 17" flat panel imac (i.e. I am using the imac as the internet base station). I had an old clam shell macbook (which just died hence the new macbook) and still have a 400 mhz graphite SE iMac which both connec(ed) to the network perfectly for years. But the new macbook will not connect. It will connect when connected via ethernet. The imac uses Tiger.
    I have tried resetting the name of the network, using encryption and not using encryption, but nothing helps. The macbook appears to see the network (although no bars register in the airport connection icon) but I always get an error message when trying to connect.
    Does anyone have any ideas?
    Thanks

    I am not actually using a router as I am using the airport card (non express i believe) in my iMac to send the wireless signal. My modem is Motorola but not sure which model. I have Comcast cable internet service
    Nick

  • Software Distribution Flow between SCCM (2013) and BMC (8.1), using Orchestrator

    Hi,
    I see same question has been asked in the past with older versions of SCCM, BMC and Opalis...but would like to know if there are any specific benefits or advancements or even higher feasibility of implementing below, using Orchestrator
    1) Data load: Load HW/SW Inventory from SCCM into BMC Remedy System. Is it even possible to load Asset Intelligence data so that both systems can correlate common data
    2) Create a flow which connects both BMC remedy & SCCM using Orchestrator
     a) End user to raise a request in BMC remedy system
     b) Shoots an email to Assset Mgmt & Mgr etc for approvals
     c) Record their approvals back (thru email or over webisite/url)
     d) If approved to create an instruction (deployment) in SCCM for that system
     e) Retrieve the status codes received by SCCM, if successful then short mails to user & service desk
     f) Modify BMC Remedy Asset Mgmt for that software to reduce availability by one count
     g) Close the ticket
    or any other simpler connectors available out there ?
    Vasu

    Hi,
    You can try IP for BMC Remedy from Kelverion’s website:
    http://blogs.technet.com/b/orchestrator/archive/2012/03/26/bmc-integration-packs-for-system-center-2012-orchestrator-are-released.aspx
    The website in the blog seems to be expired.
    http://www.kelverion.com/resources/download-request/
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Mail flow problem between Exchange 2013 and 2010

    Hi,
    we have 4 exchange 2010 servers, 2 mailbox and 2 hubcas. we are migration to 4 exchange 2013 servers, 2 mailbox and 2 hubcas.
    exchange 2013 user can send and receive emails  from/to internet without problems, but when i try to send email to internal users located to 2010 server i have no success.
    i also can receive from exchange 2010, so the problem is only i cannot sent emails to exchange 2010 users.
    is this a problem with receive connector of exchange 2010 or something else ???

    one more thing, when i open exchange queue i got this error:
    451 5.7.3 cannot achieve exchange server authentication. attempted failover to another host but that did not succeed. either there are no alternate hosts, or delivery fail
    For this error refer to the following article:
    http://support.microsoft.com/kb/979175
    Thanks, MikeV MCSE 2012

  • Request: Make Keyword 'function' Optional for Parameterless/Void Functions

    Say I have function
    doJob (startThis:function(), whenDone:function()) When I am using this function doJob(), it would be nice to be able to do
    doJob( {code_to_do_something}, {code_to_do_something});
    // instead of
    doJob( function(){code_to_do_something}, function(){code_to_do_something});Or be able to define a parameterless void function as
    var hello = {println ("Hello")}; and invoke that function using form
    hello();This would eliminate some verbosity introduced by the function keyword.

    @PhiLho
    Yes, to you just 10 character is not a big deal. But to the rest of us who have to keep repeating those 10 chars over and over in larger applications it does become a big deal.
    Your example of ar foo = {fooCall("Stuff"}; is misplaced. Why would you trap a non-void function call inside a void fn? If fooCall returns something then obviously the compiler would try to return via the calling function and this is a problem (as you point out) regardless of what the syntax is.
    My suggestion is more toward bringing sensible syntax shortcut/sugar in the language.

  • How to define a function that returns a void?

    Hi all,
    How can I define a custom function that returns a void?
    My understanding is simple UDF can only return a string.
    Is there any way around this limitation?
    Thanks.
    Ron

    > Hi,
    > User Defined Function in XI always return a String.
    >
    > If you requirement is that you want to perfrom some
    > operation in an user defined function, one option is
    > to move it to the Java Section in your mapping and do
    > it in the intialization / clean up section.
    >
    > Else, wite a UDF that will return a Blank string as
    > the output, and map it to the root node of the
    > target.
    >
    Hi all,
    Thank you all for your kind responses.
    The scenario I have is I need to insert the value of a particular field into a database table. E.g. MessageId, to keep track of the messages going through XI.
    Naturally, such operations return void. These operations are already encapsulated in a custom jar file.
    My purpose of using a UDF is solely to invoke the operation.
    But I realized I each UDF has to have a return type, and the output of this UDF must be mapped to a node in the outgoing message.
    Currently, my UDF returns an empty string, by using the implementation as below, I manage to perform my desired operation without affecting the result:
    MessageId -- UDF -- CONCAT -
    InstitutionCD_Transformed
    InstitutionCode_____
    But as you can see, this is not an elegant way of doing things.
    That's why I'm seeking alternative solutions for this problem.
    Bhavesh, you mentioned something about doing the operation in the initialization/cleanup section.
    Can you please explain more?
    Thanks.
    Ron

  • Difference between Java Method and a java function

    what is the difference between a method in java and a function
    in java ?
    ( i have seen that main() is called a function but the others
    are method )
    is it for main can only be called by JVM ?
    please help if u can...
    suman
    ( [email protected] )

    Though Ceci isn't a programmer, his answer is closer: strictly speaking, Java has no functions.
    The Java Language Specification, 2nd Ed, mentions the word "function" thrice: in the sense "to function as something", when talking about a C function, and in the index as "mathematical function". (Get the spec under "documentation" on the left hand side of your screen.)
    So, officially, no functions.
    Informally, many people use "function" and "method" as synonyms. You may even find some that calls a void-returning method "procedure" and value methods "function" (perhaps Pascal background?). And a Lisp programmer might call Runnable.run() a "thunk", but he'd just be pulling your leg.

  • [SOLVED] How to use return parameter of function as paramter of table?

    Hi all,
    As continue of post "ADF Faces: how to execute pl/sql function when page is loaded." I came up with an other problem where I can't find an easy solution for.
    The problem is easy.
    1) I execute a procedure, this returns a value
    2) I have a table which needs one input parameter
    3) How can I bind the return value of the procedure to the input paramter of the table:
    A simple example:
    1) I created a pl/sql function that returns 1
    CREATE FUNCTION zz_return_1
    is
    RETURN NUMBER
    BEGIN
      RETURN 1
    end;2) I exposed the function in my TestModule so I can use it on a jps page.
    3) I created a table TEST_PARAM_1_TABLE with two columns: a, b
    4) I created a view read-only object with one paramter
    SELECT a,b
    FROM zz_scn_test_tab
    where a = :var_15) I added the view object to a jps page as tabe > adf read-only
    6) I added a methodAction and invokeAction to execute the function on page load
    <executables>
          <iterator id="zzscntest1Iterator" RangeSize="10" Binds="zzscntest1"
                    DataControl="TestModuleDataControl"/>
                <invokeAction id="runProc" Binds="ftn_return_1"/>
          </executables>
    <bindings>
          <methodAction id="ftn_return_1"
                        InstanceName="TestModuleDataControl.dataProvider"
                        DataControl="TestModuleDataControl"
                        MethodName="ftn_return_1" RequiresUpdateModel="true"
                        Action="999" IsViewObjectMethod="false"
                        ReturnName="TestModuleDataControl.methodResults.TestModuleDataControl_dataProvider_ftn_return_1_result"/>
          <table id="zzscntest1" IterBinding="zzscntest1Iterator">
              <AttrNames>
                  <Item Value="A"/>
                  <Item Value="B"/>
              </AttrNames>
          </table>
    </bindings>how can I bind the return value of the function to the var_1 variable of the table?
    Additional to this: Is there a way to store the return value in a managed bean?
    for example: if I create a managed bean:
    public class globalVars {
        private Number ftnReturnValue;
        public globalVars() {
        public void setFtnReturnValue(Number ftnReturnValue) {
            System.out.println("return value is set to: " + ftnReturnValue);
            this.ftnReturnValue = ftnReturnValue;
        public Number getFtnReturnValue() {
            return ftnReturnValue;
    }how to store the return value in this ftnReturnValue variable?

    Thanks to Frank,
    I finally got it to work!
    For those with the same problem, this is what I did:
    - I created a VO material_details with one parameter :sequence_num
    - I created a master/detail viewlink from my materials list to the materials_details
    - In the application module, I created a call to the procedure, and within this procedure, I set the sequence_num variable.
        public Number f_ltf3_adf_syf_init(String reporting_group
                                         , String username
                                         , String RAG_code
                                         , String ABC_class
                                         , String SBU_code){
           CallableStatement st = null;
           String stmt = "M_LTF3_SFM_CALC.f_ltf3_adf_syf_init('"+ reporting_group
                                                           +"','"+ username
                                                           +"','"+ RAG_code
                                                           +"','"+ ABC_class
                                                           +"','"+ SBU_code+"')";
           try {
               // prepare the statement
               st = getDBTransaction().createCallableStatement("begin ? := "+stmt+";end;",0);
               st.registerOutParameter(1,2);  // register output parameter as Number
               //execute the statement
               st.executeUpdate();
               //set paramter in detail VO of master/view
               getLtfSyfRevDetails1().setNamedWhereClauseParam("session_seq", (Number)st.getObject(1));
               return (Number)st.getObject(1);
           }catch (Exception e){e.printStackTrace();}
           return null;
        }

Maybe you are looking for

  • Dynamic SQL in non oracle Data Template

    Hi All I am currently working on a project with BI Publisher and we are developing on an OBIEE data source using data templates. Does anyone know how to handle dynamic sql &Lexicals when your only data source is OBIEE. I have found some code in the h

  • Question about using iMessage

    is there any way to read the messages in email when sent to/from email? say I'm using a gmail account as an iMessage recipient, can i view the messages in gmail somehow? How does the sending of imessages work with email?

  • How to convert digital array data into analog signal

    i want help to convert digital data array into analog signal

  • "Unable to view properties​" Does someone knows how to fix it ?

    Hello, I am student, and during my internship I have to learn and use Labview. I work on a Macbook (mac os X snow leopard 10.6.2).   I downloaded and install the latest version of Labview, in evaluation mode. At the beginning, everything worked very

  • Different OS image

    I have different OS type , Like Windows 2008 SP2 and windows 2008 R2, windows 2007 and windows 2008. How i configure my infra to deploy new server or client . Example  I want my define  client connect to windows 7 image for OSD  Define server connect