String control GPIB, too long when you use a multicore processor machine

I have a HP 3457 A multimeter I communicate with the help of GPIB. I have two machines that have identical operating systems installed. CentOS 4.8 (equivalent to Red Hat Enterprise Linux 4.8) with the version of the kernel: 2.6.9 - 89.0.25.ELsmp.

The first machine has a Pentium 2.8 GHz processor. We used this setup for a few years now without any problems. Given that the core processors go far, we need get our system working on a multi-core computer software. So, I loaded all our software on a new machine with an Intel Core 2 Duo processor. I have only this one all deadlines irregular left before calling this experience.

In our code, we issue the following command to the multimeter and check a response:

char * pm_init = "QR 0; PRESET; BACK OF THE TERM; END; LOCK ON; SREAL OFORMAT; « ;

If (!) () (er = ibwrt (pm_ud, pm_init, strlen (pm_init))) & ERR))

On the Pentium machine, it works fine. The multimeter does not have on the Core2 Duo computer. If I have this divide into two commands as follows:

ER = ibwrt (pm_ud, "QR 0;") PRESET; BACK of the TERM; ", strlen (" QR 0; ") PRESET; TERM BACK ;")) & ERR

If (!) () (er = ibwrt (pm_ud, "END; LOCK ON; OFORMAT SREAL. ", strlen ("END; LOCKING IN ONTARIO; OFORMAT SREAL ;"))) "& ERR))

It works on both machines. However, it is a ugly real difficulty. Can someone tell me what is so different from the way in which the driver NOR past the verses of the long chain the two shorter chains?

Thank you.

Sorry, I thought that VISA facility would bring along the difficulty that we need, but when I look back it did not include a fix for Linux.

This means that we don't currently have a driver available that will solve this problem, but there is a solution, if this is indeed the problem you see.

The workaround is to disable DMA for your GPIB interface. To do this, you will need to open a handle to the jury and use the ibdma command to disable DMA. For example:

handle = ibfind ("GPIB0");

ibdma (handle, 0);

At this point you should probably keep the handle open until your program is out, to ensure nothing resets the jury and allows again to DMA.

As you can imagine, disable DMA can have an impact on performance in your application. If you make small, such transfers would probably be with a multimeter, you are unlikely to notice a difference in performance. If you transfer large size pads, you may encounter CPU utilization and more low than you would when using DMA.

Please let me know if this workaround lets your program works, because this will tell us if this is the problem you are having, or if something goes wrong.

-Jason S.

Tags: NI Hardware

Similar Questions

  • Name of the item too long when you use ROWTYPE

    I encountered a problem with the xml elements names longer than 30 characters. Seems that it has something to do with ROWTYPE. Creation of this function is successful:

    < pre >
    FUNCTION to CREATE or REPLACE test_fnc
    RETURN OF XMLTYPE
    AS
    var_return XMLTYPE.
    l_dummy DUAL.dummy%TYPE;
    BEGIN
    SELECT dummy INTO l_dummy FROM DUAL;

    SELECT XMLCONCAT (XMLELEMENT)
    "TEST."
    XMLFOREST)
    l_dummy "THIS_IS_OVER_30_CHARACTERS_LONG".
    )
    ))
    data_set
    IN var_return
    FROM DUAL;


    RETURN var_return;
    END test_fnc;
    /
    < / pre >

    However, the specification of the ROWTYPE variable gives error ORA-00972 (except if I shorten the name of the item...):

    < pre >
    FUNCTION to CREATE or REPLACE test_fnc
    RETURN OF XMLTYPE
    AS
    var_return XMLTYPE.
    l_dummy DOUBLE % ROWTYPE;
    BEGIN
    SELECT dummy INTO l_dummy FROM DUAL;

    SELECT XMLCONCAT (XMLELEMENT)
    "TEST."
    XMLFOREST)
    l_dummy. Dummy "THIS_IS_OVER_30_CHARACTERS_LONG."
    )
    ))
    data_set
    IN var_return
    FROM DUAL;


    RETURN var_return;
    END test_fnc;
    /
    < / pre >

    Has anyone previously met, or have any ideas for a solution? I could specify all my variables as TYPE, but as there are many in the tables it would be easier to use ROWTYPE.

    Oracle Database 11 g Enterprise Edition Release 11.1.0.6.0 - 64 bit Production

    Thank you.

    This works if you add 'AS' after l_dummy.dummy

    SQL> CREATE OR REPLACE FUNCTION test_fnc
      2     RETURN XMLTYPE
      3  AS
      4     var_return   XMLTYPE;
      5     l_dummy      DUAL%ROWTYPE;
      6  BEGIN
      7     SELECT   dummy INTO l_dummy FROM DUAL;
      8
      9     SELECT   XMLCONCAT(XMLELEMENT (
     10                           "TEST",
     11                           XMLFOREST (
     12                              l_dummy.dummy AS "THIS_IS_OVER_30_CHARACTERS_LONG"
     13                           )
     14                        ))
     15                 data_set
     16       INTO   var_return
     17       FROM   DUAL;
     18  RETURN var_return;
     19  END test_fnc;
     20  /
    
    Function created.
    

    Ants

  • 'File name' error too long when you copy a folder to a DVD disc

    When I copy a folder that contains a large number of files on an external hard drive, I have no problem, but if I try to copy the same folder to a DVD disc, I get a message indicating that a file name is too long.  My first question is why do I get the message for DVD and not the external hard drive?  My second question is: How can I generate a list of files in my folder that have too long names? My second question is already other post on the forum, but there was no answer.  Is it because it is not possible to generate such a list?

    Thank you

    It depends on what is called the 'file system '. File systems are how files are stored on a disk. Many of them have limits on how long the total file path can be. DVD and external hard drives use different file systems.

    If you want a list of all the files in a folder, open a command prompt. Type this in:

    CD "C:\path\to\folder".

    and press ENTER. Replace path\to\folder with the path of the file in your file that you want to check to make sure this filepath is in quotes!

    Now type:

    dir /s > 'output.txt '.

    and press ENTER. This will tell the guest to make a list of all the files in this folder and in each subfolder, and then store in a text file. This will allow you to view the list and I hope to find the long file names. Once you have found the long file name, go to that file, and then change the name.

    Here is an example of the above commands. Let's say I have a folder named "foo" in the My Documents folder. I first type:

    CD "C:\Users\Entegy\Documents\foo".

    and press ENTER. Now, I want the list of files to be placed on my desk. Then I type:

    dir /s > "C:\Users\Entegy\Desktop\filelist.txt."

    And voila, I have a list of all the content of foo on my desktop files. Just make sure that your path ends with .txt and you'll be fine. And don't forget to put quotes around filepaths!

  • identifier is too long, when you create a view

    Hi all
    When I am trying to run the initial load using OBI apps 7.9.5.2 SCCM with I get the following error for the SDE mappings...
                72 : 42000 : java.sql.SQLException: ORA-00972: identifier is too long
    
    java.sql.SQLException: ORA-00972: identifier is too long
    
    
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
    
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
    
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
    
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
    
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:185)
    
         at oracle.jdbc.driver.T4CPreparedStatement.execute_for_rows(T4CPreparedStatement.java:633)
    
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1086)
    
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2984)
    
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3057)
    
         at com.sunopsis.sql.SnpsQuery.executeUpdate(SnpsQuery.java)
    
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execSrcOrders(SnpSessTaskSql.java)
    
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
    
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlC.treatTaskTrt(SnpSessTaskSqlC.java)
    
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
    
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
    
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
    
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
    
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
    
         at com.sunopsis.dwg.cmd.e.i(e.java)
    
         at com.sunopsis.dwg.cmd.g.y(g.java)
    
         at com.sunopsis.dwg.cmd.e.run(e.java)
    
         at java.lang.Thread.run(Unknown Source)   
    This is my sql code in the description tab

      
    create or replace view APPS.C$_0W_ORA_INT_ORG_D
    (
         C1_ORGANIZATION_ID,
         C2_ORGANIZATION_CODE,
         C3_ORGANIZATION_NAME,
         C4_BUSINESS_GROUP_ID,
         C5_BUSINESS_GROUP_NAME,
         C6_SET_OF_BOOKS_ID,
         C7_OPERATING_UNIT,
         C8_OPERATING_UNIT_NAME,
         C9_LEGAL_ENTITY,
         C10_LEGAL_ENTITY_NAME
    )
    as select     
         
         TO_CHAR(SQ_ORG_ORGANIZATION_DEFINITION.ORGANIZATION_ID)        C1_ORGANIZATION_ID,
         SQ_ORG_ORGANIZATION_DEFINITION.ORGANIZATION_CODE        C2_ORGANIZATION_CODE,
         SQ_ORG_ORGANIZATION_DEFINITION.ORGANIZATION_NAME        C3_ORGANIZATION_NAME,
         TO_CHAR(SQ_ORG_ORGANIZATION_DEFINITION.BUSINESS_GROUP_ID)        C4_BUSINESS_GROUP_ID,
         SQ_ORG_ORGANIZATION_DEFINITION.BUSINESS_GROUP_NAME        C5_BUSINESS_GROUP_NAME,
         TO_CHAR(SQ_ORG_ORGANIZATION_DEFINITION.SET_OF_BOOKS_ID)        C6_SET_OF_BOOKS_ID,
         TO_CHAR(SQ_ORG_ORGANIZATION_DEFINITION.OPERATING_UNIT)        C7_OPERATING_UNIT,
         SQ_ORG_ORGANIZATION_DEFINITION.OPERATING_UNIT_NAME        C8_OPERATING_UNIT_NAME,
         TO_CHAR(SQ_ORG_ORGANIZATION_DEFINITION.LEGAL_ENTITY)        C9_LEGAL_ENTITY,
         SQ_ORG_ORGANIZATION_DEFINITION.LEGAL_ENTITY_NAME        C10_LEGAL_ENTITY_NAME
    from     APPS.ODI_SQ_ORG_ORGANIZATION_DEFINITION   SQ_ORG_ORGANIZATION_DEFINITION
    where     (1=1)
    Any suggestions? Please help me

    Thank you
    saichand.v

    Hello

    Try changing the "maximum Table name length' and '"column name maximum length"in Manager topology ODI.» This is, in the "other" tab of the chosen technology.

    Set the new value = original value - 5

    You must assign the appropriate value to 'column name maximum length ".
    setting for staging technology.

    Thank you
    Fati

  • Control reference 1055 error when you use a loop for

    Hello

    I'm having a problem using control references to accomplish the following: I a VI that reads data from a text file, and then uses that automatically update the value of a control on front panel on two live different, then set the default values, and then save them. Comes from the array of control references, I tried looping on text labels until I have find the one corresponding to the order, I want to change and then update its value. The problem I have is that if I use a loop for, then 9times of LabVIEW 10 complains error 1055: "LabVIEW: object reference is not valid. If instead I the wiring to the index table and manually extract the reference, then it works every time and for each index of the reference of the order.

    Can someone take a look at my code and just see if its obvious what the problem is? In this case, I have a simple solution, but I would really like to understand what I did wrong. I have included as a code snippet, but also attached the files if that helps (Its Import_Colormap.vi, which is the problem). Persons with disabilities code fails, the active code works but I can't see what is really the difference between them - I can change the index of array 0,1,2, 3. and no mistake.

    Thank you.

    Your "Colormap.ctl" is a strict type def that contains a ring.  You define the elements programmatically, make the default values, and then save the "Colormap.ctl"?   I was never practicing this but here is a thread that covers this in detail. I do not understand what you expect reach by running.
    The next thing: at the same time (at the same time!), you open the Colormap.vi (this is what we see in yout PNG) that contains an instance of the Colormap.ctl on the front panel. I'm not pretty sure if LabVIEW can handle this correctly. This could be the reason why you sometimes get the error 1105.
    I prefer StringsAndValues and eventually the value of the ring running.  There is no need to do it with a def of strict type.

  • My type of size is too large when you use electronic mail. Other pages are OK. No problem when using IE.

    There must be a setting Foxfire. The entire page to fill the screen. Roll bars horiz. and green.

    Hello mryan07, try pressing ctrl + 0 ("zero") while you are on the page to put the zoom level or in the case where it does not browse the other troubleshooting procedures common to the Web sites look bad or appear differently than they should.

  • Get VPN error 809 when you use IKEv2 and the machine certificates

    The message of 809 "talks" about problems with a firewall blocking ports UDP 500 & 4500 (NAT Transversal)

    However, my client firewall (Professional 64 bits) of windows 7 is OFF.

    My at & t Pace 4111n wan-router firewall is set to allow UDP 500 packets and 4500 thru.

    Does anyone know a way to map network UDP package tracking in my client win7 to PACE 4111n wan-router?

    I want to set up a trace, then connect VPN problem.

    Best regards

    Guy

    Hi guy,

    Thanks for the reply.

    I understand that your problem is not related to the server, but the issue that you are facing is better suited for the TechNet Support forum link given below.

    https://social.technet.Microsoft.com/forums/Windows/en-us/home?Forum=w7itprovirt%2Cw7itpronetworking%2Cw7itproappcompat%2Cw7itprohardware&filter=AllTypes&sort=lastpostdesc

    Let us know if you have any further questions.

  • When you use Roland FC300 footswitch to control the transport, all the USB keyboard midi notes do not reach the logic. No help available on this?

    When you use Roland FC300 footswitch to control transport LOGIC, all midi keyboard USB (UMA25s) notes do not reach the logic.

    They are visible using MIDI Monitor s/w so reach the OS X - but do not make SENSE.

    I tried the function of the environment of the logic and the double check OS X Midi Setup but no difference statistically.

    I would appreciate any help on how to proceed.

    Thank you

    Paddy

    I do not understand your post. Your use the FC300 to control logic - how is it connected?   Is it plugged into the keyboard via middle or did you connect to logic directly via a midi interface?  (sense are the keyboard and the FC300 connected independently.

    When you say midi notes reached illogical (those transmitted by the FC300 or those via the USB keyboard do you mean?).

    First thing to do is to circumvent the control surfaces to exclude...

    Then, the control screen the custom value and see if data midi reached logical... If his hitting the midi monitor 99.9% sure it is hitting logic.

  • When you use the feature of period of Parental controls for my child's account, the session is saved, and although very convenient for the user, it's boring for the parent. How can I disconnect this acct when it expired already?

    When you use the period of Parental control feature, acct of my child receives the 15 min and 1 put min warning, and then the closure of the session. However, any Web site that it has a really annoying music keeps playing even when I connected under my account admin the only way I can disconnect the acct with Parental control game is to restart my whole machine. Is there another way to disconnect the user standard acct with this feature of limitation in time game? THX.

    Hi marion_librarian

    Thank you for using the Microsoft Answers Forums!

    This is the problem of design, the session remains active in the background, however, so the next time they connect, they can pick up where they left off without losing any of their work.

    In case if you complete the program, there is no these settings in the parental control to close the program, you can disconnect the program using the Task Manager.

    Check the link for more information:

    Explore the features: Parental controls:

    http://www.Microsoft.com/Windows/Windows-Vista/features/parental-controls.aspx

    Set up Parental controls:

    http://Windows.Microsoft.com/en-us/Windows-Vista/set-up-parental-controls

    NOTE: When you log in as an administrator you can connect to the wide of other users. Follow these steps to log on to the account with Parental control and/or any other user.

    1 click-right on the taskbar and open the Task Manager.

    2. Select users

    3. right click on the user name you want to disconnect, and then click close session.

    Hope this information was useful.

    Let me know if it worked.

    All the best!

    Thank you and best regards,

    R uma - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • I remain unplugged for a long period of receipt message that dns does not when you use windows 7

    I remains disconnected for long delivery message that dns does not when you use windows 7, wired LAN

    Concerning

    NAWAB IKRAMULLAH KHAN

    Hello

    ·          When the issue started?

    Method 1:

    Run the Windows 7 network troubleshooting and check if it can automatically find the fault.

    For more information about how to run the network troubleshooter, check this link:

    http://Windows.Microsoft.com/en-us/Windows7/using-the-network-troubleshooter-in-Windows-7

    Get the network store event of Event Viewer logs.

    Check out this link on the event logs of the resolution of network problems.

    http://Windows.Microsoft.com/en-us/Windows7/use-Network-Troubleshooter-event-logs-to-solve-network-problems

    Method 2:

    a. Click Start. Type cmd in the box start the search. Right click on cmd and select run as administrator.

    b. at the command prompt, type the following command and press ENTER:

    ipconfig/flushdns (there is a space between ipconfig and /)

    It will show you the message successfully empty the cache of DNS resolution.

    c. at the command prompt, type the following command and press ENTER:

    ipconfig/registerdns (there is a space between ipconfig and /)

    d. at the command prompt, type the following command and press ENTER:

    ipconfig/all (there is a space between ipconfig and /)

    e. the command ipconfig/all command displays for all your network adapters, TCP/IP in Windows settings.

    f. If your connection to the Local network IP address is 0.0.0.0 or 169.x.x.x (where x is a number any), then your computer does not receive an IP address from router.

    g. If this is the case, try this:

    ·          enough ipconfig at the command prompt and press ENTER.

    ·          ipconfig / renew in the command prompt and press ENTER.

    h. test it again by typing ipconfig/all to see what is the address?  (If you are on a router, it should start by or 192.168.0.x or 192.168.1.x 10.x.x.x)

  • When you use the "Fill &amp; sign PDF" feature, is there a way to stretch to resize the text box, to an area of the page... rather than through a long straight line...?

    When you use the "Fill & sign PDF" feature, is there a way to stretch to resize the text box on a specific area of the page... instead of the text box is in a long straight line...? I do not see there is an option or the ability to do so, just want to confirm.

    Improving the management of multiple line text fields is in our plans, but for now, you need to add manual carriage return (Enter).

    Thank you

    Josh

  • loss of control ipad (screen magnify in-app Youtube kids) when you use a bluetooth headset

    loss of orders for ipad from tap - specifically screen expand in the Youtube kids application when you use a bluetooth headset

    I would contact with the helmet manufacturer or the helper application developer. Maybe it's that the app may need to be updated.

    Barry

  • When you use Itunes on my Ipod Touch 5 generation, the Ipod is no longer automatically past from one song to another. This seems to be a novelty. There is a button on the RIGHT side of the upper third of the screen where you can choose options but go n0.

    When you use ITunes on my Ipod Touch 5 Gen, running IOS 9.2, he has recently stopped automatically switch a song on one album to another while listening to ITunes. I discovered a button with 3 points to the RIGHT side of each title of the song which, when typed gives a different options for example then played, add up to the next etc.. If you use these all this seems to get worse with more choices that appear. I know that sounds incredible, but I have owned several Ipods that I use just for listening to music. Mine is a 32 GB version that can store a large number of albums, most of which I bought and loaded into my Ipod. A few albums that I downloaded from ITunes. How can I get it from my Ipod to listen to music in the ITunes application without having to select one of the 55 options?

    See if the chapter of the music of the Manual:

    http://help.Apple.com/iPod-touch/9/#/iph3bd017b9

    Next:

    -Reset the device iOS. Nothing will be lost

    Device iOS Reset: Hold down the On / Off button and the Home button at the same time for to

    ten seconds, until the Apple logo appears.

    Unsync/delete all the music and Resync

    To remove all music go to settings > general > use > storage > storage management > music > tap Edit in the top-right, then press the sign less than all music

    -Reset all settings

    Go to settings > general > Reset and tap reset all settings.

    All your preferences and settings are reset. Information (such as your contacts and calendars) and media (such as songs and videos) are not affected.

    -Restore from backup. See:

    Restore your device from an iCloud or iTunes backup - Apple Support

    https://support.Apple.com/en-us/HT204184

    -Restore factory settings/new iOS device.

  • Loop Finder crash after upgrading to El Capitan.  'Finder close unexpectedly when you use the plug-in finder' - the message really is in Norwegian, so it may be different for the English operating system.

    'Finder close unexpectedly when you use the plug-in finder' - the message really is in Norwegian, so it may be different for the English.  The e is a compatibility issue with dropbox or Google drive in El Capitan?  Those are the plug-ins only that I could find.  Thank you very much.

    Please launch the Console application in one of the following ways:

    ☞ Enter the first letters of his name in a Spotlight search. Select from the results (it should be at the top).

    ☞ In the Finder, select go utilities ▹ of menu bar or press the combination of keys shift-command-U. The application is in the folder that opens.

    ☞ Open LaunchPad and start typing the name.

    Step 1

    For this step, the title of the Console window should be all Messages. If it isn't, select

    SYSTEM LOG QUERIES ▹ all Messages

    in the list of logs on the left. If you don't see this list, select

    List of newspapers seen ▹ display

    in the menu at the top of the screen bar.

    In the upper right corner of the Console window, there is a search box to filter. Enter the name of the application crashed or process. For example, if Safari has crashed, you would enter "Safari" (without the quotes).

    Each message in the journal begins with the date and time when it was entered. Select the messages since the time of the last fall, as appropriate. Copy to the Clipboard by pressing Control-C key combination. Paste into a reply to this message by pressing command + V.

    The journal contains a large amount of information, almost everything that is not relevant to solve a particular problem. When you post a journal excerpt, be selective. A few dozen lines are almost always more than enough.

    Please don't dump blindly thousands of lines in the journal in this discussion.

    Please do not post screenshots of log messages - text poster.

    Some private information, such as your name, may appear in the log. Anonymize before posting.

    Step 2

    In the Console window, clear the search box, and then select

    DIAGNOSIS AND diagnostic USE information reports ▹ user

    (not diagnose them and use Messages) in the list of logs on the left. There is a disclosure triangle to the left of the list item. If the triangle is pointing to the right, click it so that it points downwards. You will see a list of reports of incidents. The name of each report begins with the name of the process and ends with ".crash". Select the most recent report on the process in question. The content of the report is displayed at right. Allows you to copy and paste to validate all of the content, text, not a screenshot.

    I know that the report is long, perhaps several hundred lines. Please report all this anyway. If the report is only a few lines, make sure that you have disabled the search box.

    If you don't see any report, but you know, he had an accident, you have chosen diagnostic and using the list of Log Messages. INFORMATION on the USE of DIAGNOSTIC AND choose instead.

    In the interest of privacy, I suggest that, before posting, you change the UUID ' anonymous, ' a long string of letters, numbers and dashes in the header of the report, if it is present (it cannot be). "

    Please do not post other types of diagnostic report - they are very long and rarely useful.

    When you post the journal excerpt or the accident report, you might see an error message on the web page: "you have included content in your post that is not allowed", or "the message contains invalid characters." It's a bug in the forum software. Thanks for posting the text on Pastebin, then post here a link to the page you created.

    If you have an account on Pastebin, please do not select private in exposure menu to paste on the page, because no one else that you will be able to see it.

  • Why Oracle ManagedDataAccess (4.121.1.0) throws a System.FormatException "first chance" exception to the debugger when you use OracleCommand.BindByName (on some machines, but not others)?

    Why Oracle ManagedDataAccess (4.121.1.0) throws a System.FormatException "first chance" exception to the debugger when you use OracleCommand.BindByName (on some machines, but not others)?

    This occurs when calling a ref cursor-returning packaged function stored with OracleCommand.BindByName set to true.

    When BindByName undefined, it works as expected.

    I've only been able to recreate this problem on a machine in my control. This issue has also reported to me by a customer.

    I tried to change the locale of the system of EN - UK EN-US, but I was not aware of any change in behavior.

    Similarly, I've tried explicitly overriding the default locale of the system with the OracleGlobalization parameters, and it also had no effect.

    Please see the example below.

    ---

    Environment (default):

    Windows 7 Professional 64-bit SP1

    Visual Studio 12.0.21005.1 REL / / CAN BE SIGNIFICANT

    .NET framework 4.5.51209

    Local system: EN - UK (but also does not, EN-US).

    Oracle.ManagedDataAccess 4.121.1.0

    "< supportedRuntime version ="v4.0"sku =". NETFramework,Version=v4.5.1"/ >

    Environment (base):

    Windows 7 Professional 64-bit SP1

    Updated Visual Studio 12.0.31101.00 //SEE above 4

    .NET framework 4.5.51209

    Local system: EN - UK

    Oracle.ManagedDataAccess 4.121.1.0

    "< supportedRuntime version ="v4.0"sku =". NETFramework,Version=v4.5.1"/ >

    Call stack:

    mscorlib.dll. Unknown System.Number.StringToNumber(string str, System.Globalization.NumberStyles options, ref System.Number.NumberBuffer number, System.Globalization.NumberFormatInfo info, bool parseDecimal)
    mscorlib.dll. Unknown System.Number.ParseInt32(string s, System.Globalization.NumberStyles style, System.Globalization.NumberFormatInfo info)
    Oracle.ManagedDataAccess.dll! Oracle.ManagedDataAccess.Types.OracleRefCursor.OracleRefCursor (connection Oracle.ManagedDataAccess.Client.OracleConnection, OracleInternal.ServiceObjects.OracleRefCursorImpl refCursorImpl, Oracle.ManagedDataAccess.Types.OracleIntervalDS sessionTimeZone, string commandText, string paramPosOrName, long initialLongFS, long initialLobFS, long [] scnFromExecution) unknown
    Oracle.ManagedDataAccess.dll! OracleInternal.ServiceObjects.OracleParameterImpl.ExtractRefCursorFromAccessor (Oracle.ManagedDataAccess.Client.OracleConnection conn, accessor OracleInternal.TTC.Accessors.Accessor, long fetchSize, Oracle.ManagedDataAccess.Client.PrmEnumType enumType, Oracle.ManagedDataAccess.Types.OracleIntervalDS sessionTimeZone, string commandText, string paramPosOrName, long longFetchSize, long lobFetchSize, long [] scnFromExecution, int currentRow) unknown
    Oracle.ManagedDataAccess.dll! OracleInternal.ServiceObjects.OracleParameterImpl.GetRefCursorFromBytes unknown (Oracle.ManagedDataAccess.Client.OracleConnection conn, accessor OracleInternal.TTC.Accessors.Accessor, long fetchSize, Oracle.ManagedDataAccess.Client.PrmEnumType enumType, Oracle.ManagedDataAccess.Types.OracleIntervalDS sessionTimeZone, string commandText, string paramPosOrName, long longFetchSize, long lobFetchSize, long [] scnFromExecution)
    Oracle.ManagedDataAccess.dll! Oracle.ManagedDataAccess.Client.OracleParameter.PostBind_RefCursor (connection Oracle.ManagedDataAccess.Client.OracleConnection, OracleInternal.TTC.Accessors.Accessor bindAccessor, long fetchSize, Oracle.ManagedDataAccess.Types.OracleIntervalDS sessionTimeZone, string commandText, string paramPosOrName, long longFetchSize, long lobFetchSize, long [] scnFromExecution) unknown
    Oracle.ManagedDataAccess.dll! OracleInternal.ServiceObjects.OracleCommandImpl.ExtractAccessorValuesIntoParam (Oracle.ManagedDataAccess.Client.OracleParameterCollection paramColl, Oracle.ManagedDataAccess.Client.OracleConnection connection, string commandText, long longFetchSize, long lobFetchSize, long [] scnFromExecution) unknown
    Oracle.ManagedDataAccess.dll! Unknown Oracle.ManagedDataAccess.Client.OracleCommand.ExecuteReader(bool requery, bool fillRequest, System.Data.CommandBehavior behavior)
    Oracle.ManagedDataAccess.dll! Oracle.ManagedDataAccess.Client.OracleCommand.ExecuteReader (unknown)

    > ManagedSimpleRefCursor1.exe! NoddyConsole.Program.Command_ExecuteReader_BindByName_Fails (Line 63 c#)

    Example:

    ----

    using System;

    using System.Collections.Generic;

    using System.Linq;

    using System.Text;

    using Oracle.ManagedDataAccess.Client;

    using Oracle.ManagedDataAccess.Types;

    using System.Data;

    namespace NoddyConsole

    {

    public class Program

    {

    public static int Main (string [] args)

    {

    Error int = 0;

    Errors += Command_ExecuteReader_BindByName_Fails();

    Errors += UseReturnValue_Command_ExecuteNonQuery_BindByName_Fails();

    return errors;

    }

    public static int Command_ExecuteReader_BindByName_Fails()

    {

    Error int = 0;

    Try

    {

    var conn = new OracleConnection ("UID = USER; Password = PASS; ("Data Source = / / your-host: 1521 / yours-sid");

    var conn = new OracleConnection ("user Id = UNIT620; Password = UNIT620; ("Data Source = / / ln1apidb01:1521 / fm");

    Conn. Open();

    IRRELEVANT

    OracleGlobalization og is conn. GetSessionInfo();

    og. DateFormat = "HH24:MI:SS MON-DD-YYYY";

    Conn. SetSessionInfo (og);

    var cmd is conn. CreateCommand();

    cmd.CommandType = CommandType.Text;

    BindByName. cmd = true;

    cmd.CommandText = "START: rc: = SHAUN.recreate_issue_1 (in_code = >: in_code); END; « ;

    var prm1 is cmd. CreateParameter();

    PRM1. ParameterName = "rc";

    PRM1. Direction = ParameterDirection.ReturnValue;

    PRM1. OracleDbType = OracleDbType.RefCursor;

    cmd. Parameters.Add (prm1);

    / * SHAUN.recreate_issue_1 * /.

    var prm2 is cmd. CreateParameter();

    PRM2. ParameterName = "in_code";

    PRM2. Direction = ParameterDirection.Input;

    PRM2. OracleDbType = OracleDbType.Varchar2;

    PRM2. Value = "A";

    cmd. Parameters.Add (prm2);

    /* */

    var reader is cmd. ExecuteReader(); FAILS to System.Number.StringToNumber (String str, NumberStyles options, NumberBuffer & number, NumberFormatInfo info, Boolean parseDecimal)

    /* *-/

    OracleRefCursor orc = null;

    cmd ExecuteNonQuery()); must fail here

    ORC = cmd. Parameters ["rc"]. Value as OracleRefCursor;

    If (orc is nothing)

    throws InvalidOperationException new ("Invalid return the ref cursor type");

    var = orc player. GetDataReader();

    /* */

    While (reader. Read

    {

    var values = new object [reader. FieldCount];

    drive. GetOracleValues (values);

    for (int i = 0; i < values.) Length; (++ I)

    {

    Console.WriteLine(values[i]);

    }

    }

    drive. Dispose();

    cmd. Dispose();

    Conn. Dispose();

    }

    catch (Exception ex)

    {

    Console.Error.WriteLine (ex) Message);

    Errors ++;

    }

    Finally

    {

    Return (true);

    }

    return errors;

    }

    public static int UseReturnValue_Command_ExecuteNonQuery_BindByName_Fails()

    {

    Error int = 0;

    Try

    {

    var conn = new OracleConnection ("UID = USER; Password = PASS; ("Data Source = / / your-host: 1521 / yours-sid");

    Conn. Open();

    IRRELEVANT

    OracleGlobalization og is conn. GetSessionInfo();

    og. DateFormat = "HH24:MI:SS MON-DD-YYYY";

    Conn. SetSessionInfo (og);

    var cmd is conn. CreateCommand();

    BindByName. cmd = true; // ####

    cmd.CommandText = "START: rc: = SHAUN.recreate_issue_1 (in_code = >: in_code); END; « ;

    cmd.CommandText = "START: rc: = SHAUN.recreate_issue_2; END; « ; No params, works

    var prm1 is cmd. CreateParameter();

    PRM1. ParameterName = "rc";

    PRM1. Direction = ParameterDirection.ReturnValue;

    PRM1. OracleDbType = OracleDbType.RefCursor;

    cmd. Parameters.Add (prm1);

    / * SHAUN.recreate_issue_1 * /.

    var prm2 is cmd. CreateParameter();

    PRM2. ParameterName = "in_code";

    PRM2. Direction = ParameterDirection.Input;

    PRM2. OracleDbType = OracleDbType.Varchar2;

    PRM2. Value = "A";

    cmd. Parameters.Add (prm2);

    /* */

    var reader is cmd. ExecuteReader();

    OracleRefCursor orc = null;

    HERE does NOT cmd. BindByName = true; System.FormatException first-chance exception in at System.Number.StringToNumber (String str, NumberStyles options, NumberBuffer & number, NumberFormatInfo info, Boolean parseDecimal)

    cmd ExecuteNonQuery());

    ORC = cmd. Parameters ["rc"]. Value as OracleRefCursor;

    If (orc is nothing)

    throws InvalidOperationException new ("Invalid return the ref cursor type");

    var = orc player. GetDataReader();

    While (reader. Read

    {

    var values = new object [reader. FieldCount];

    drive. GetOracleValues (values);

    for (int i = 0; i < values.) Length; (++ I)

    {

    Console.WriteLine(values[i]);

    }

    }

    drive. Dispose();

    ORC. Dispose();

    cmd. Dispose();

    Conn. Dispose();

    }

    catch (Exception ex)

    {

    Console.Error.WriteLine (ex) Message);

    Errors ++;

    }

    Finally

    {

    Return (true);

    }

    return errors;

    }

    }

    }

    ---

    create or replace package THAT SHAUN is

    type ref_cur_type is ref cursor;

    function recreate_issue_1)

    in_code varchar2: = null

    ) return ref_cur_type;

    end SHAUN;

    /

    create or replace package body what SHAUN

    -TTS000233

    function recreate_issue_1)

    in_code varchar2: = null

    ) return ref_cur_type is ref_cur ref_cur_type;

    Start

    Open the ref_cur for

    Select UO.object_name from user_objects UO;

    Return ref_cur;

    end recreate_issue_1;

    end SHAUN;

    /

    ---

    Thanks a lot to qualify again for me Alex.  I'll try upgrading to the latest version of the provider.

    The difference in behavior between the two hosts was found to be reduced to differences in configuration VS.

    Checking 'Just my code' prevents the first chance thrown in the debugger exception. As in fact, the exception is handled in the provider, it is enough for me.

Maybe you are looking for

  • WT176EA: WiFi is disabled by hardware switch

    HelloMy WiFi does not, when I discovered the WiFi settings (where I turn it on), he said that the WiFi is disabled by the switch hardware. I'm on Ubuntu 14.04, a linux distribution, and I don't know what happened. I use a HP 620 Notebook Laptop. Can

  • 10 seconds after the alarm recording

    I mentioned this on the "Record button stuck" conversation but thought I should make a new post in case it is lost in there. Since the upgrade to v1.2, I now have a period of 10 seconds between pressing REC and the camera turning. Sure that this only

  • Get the Max values and average of the different cycles in the single channel

    Hello I'm trying to get the Max values and average of the single channel that has different cycles it contains. I tried to use commands such as Chnclasspeak3 and chnpeakfind, but they were not useful for me. What I need is the Max values and average

  • BlackBerry smartphones can someone help please?

    up to a few days a go, I was able to surf the web and send/receive surveys bbm so I was on the phone, I contacted blackberry and they said to contact my service provider, so I did it and then we me contact blackberry once again, so I don't have all t

  • When the Surface has a direct purchase for HBO Go app?

    When the Surface has a direct purchase for HBO Go app? Original title: HBO Go