I sent a matrix,its row and column to a child window. However "Acess violation" & 'Memory cannot be reference" error occurs when I try to plot the data in the child dialogue. Why?

My OS is Win200 professional.
I'm running a data acquisition program. I'd got this main dialog which the user selects the input channel.
The child dialog should show the graph.
I'd initialise all the NI_DAQ configuration in the main dialog class. After acquiring the data, I send the matrix to the child window for it to plot. There is no compilation error.
However when I try to plot the data, Windows complained about Acess violation and Memory cannot be accessed error.
I'd attached my program below.
Attachments:
DataAcqDlg.cpp ‏10 KB
Ch1Dlg.cpp ‏7 KB

Wynn:
I believe this problem is occurring because you are using the index operator (brackets "[","]") instead of the functional call operator (parentheses "(",")") in your code to access the matrix.
SigCh1Vect[i] = SigCh1Max[1,i];
The index operator is not defined for the matrix, because the C++ language does not allow a two-argument overload of this operator. Instead you have to use the function call operator for matrices and remember to use the index operator for vectors.
I believe that what is happening is that the compiler is using one of the defined cast operators on the matrix (operator DataType) to convert the symbol "SigCh1Max" into a double pointer. It then interprets the bracket as it would any array index operation. So the compile
r effectively sees:
SigCh1Vect[i] = *(((Real64*)SigCh1Max) + (1,i));
In this case, I believe the comma operator is defined to return the rightmost operand, or "i". Changing your code to
SigCh1Vect[i] = SigCh1Max(1,i);
should fix the problem. Please let me know if any issues exist after this fix.
In the next release of Measurement Studio, I will recommend that the index operator be defined on the matrix classes, even if it simply throws an exception. The existence of this operator will prevent problems like this from showing up.
Hope this helps,
-- Chris W.
Measurement Studio R&D
National Instruments

Similar Messages

  • When I try to disable cellular data in the settings for my apps it will toggle fine, but once I exit and go back in to the cellular settings its back on again all by itself.

    I have had a problem with my iphone 4s for some time now but I have just been so busy to try and fix it. When I try to disable cellular data in the settings for my apps it will toggle fine, but once I exit and go back in to the cellular settings its back on again all by itself. However, even though it says the data is on, I can’t use the data when I don’t have wifi. I tried restoring my phone a few times and the last time I did that, it wouldn’t turn my service on so I had to talk with a Verizon agent for a long time trying to fix it and finally they simply sent me another phone. I thought hey new phone, this part will be fixed. However, I got my service to work but it’s still the same problem with the cellular data. I have just left it alone and not worried about it, but it’s still not fixed and thought I could ask on here if anyone had any ideas. It has something to do with the apps actually installed on the iphone. Apps like the mail, safari, settings, itunes apps, etc. All my other apps turn on and off just fine. Does anyone have any ideas?

    Read the User's Guide... it covers how to backup and sync the device as designed.

  • Why does an unknown error occur when I try to save a document as a word file?

    why does an unknown error occur when I try to save a document as a Word file?

    Hi Judy,
    Deleting the Preferences files seems to be missing from your list.
    Quit AppleWorks,
    In the Finder, go to:
    username > Library > Preferences
    In the Preferences folder:
    Locate and Delete the File com.apple.appleworks.plist
    Locate and Open the Folder AppleWorks
    In the AppleWorks folder, delete the following files:
    AppleWorks 6 Assistants Cache
    AppleWorks 6 Preferences
    AppleWorks 6 Translators Cache
    Optional:
    AppleWorks Button Bars
    This file contains your Button Bar preferences. If you have made changes to the Button Bar, but hanve NO issues that can be traced to the Button Bar, it may be left in place.
    Regards,
    Barry

  • HT2409 I'm getting "can't add volume. Unknown error occured" when I try and add my Mac hard drive to the privacy settings

    I'm getting "can't add volume. Unknown error occured" when I try and add my Mac hard drive to the privacy settings

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Click the Clear Display icon in the toolbar. Then try the action that you're having trouble with again. Select any messages that appear in the Console window. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V).
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

  • Encountered an error when attempting to open Lightroom for the first time. Went to Lightroom Help and searched for the error "An error occurred when attempting to change modules". Non of the solutions helped. what now?

    Encountered an error when attempting to open Lightroom for the first time. Went to Lightroom Help and searched for the error "An error occurred when attempting to change modules". Non of the solutions helped. What now?

    I am getting this error message as well. I have just downloaded Lightroom recently. I try to click on Lightroom / preferences....and nothing happens. I tried to uninstall and it is greyed out so I can't do that either. Suggestions? Please help?

  • Why do I get an unexpected error occured when I try to save a form as a pdf file?

    Why do I get an unexpected error occured when I try to save a form as a pdf file?

    Hi MsSunnyD,
    Try uninstalling Adobe Acrobat using the Adobe cleaner Tool  http://labs.adobe.com/downloads/acrobatcleaner.html
    Then, try installing Adobe Reader XI. That should resolve the problem.
    Regards,
    Ajlan Huda.

  • Why am i getting an error message that says "an unknown error has occured" when i try to update my apps in the app store

    Can someone please offer some suggestions why I am getting an error message that says "an unknown error has occured" when I try to download or update my apps in the app store?
    Thanks!
    disregard! i noticed someone else's post about signing out of the app store and signing in again and it worked.....

    Hi ...
    Try here > Mac App Store: "An unknown error occurred (100)" when purchasing
    If that doesn't help, drag the App Store icon straight up off your Dock so it goes, "poof".
    Now drag the App Store icon from your Applications folder to the Dock. Try updating your apps.

  • HT4623 ios 7 says error occured when i try and download it

    whenever i try and download the new ios7 it says error occured and im currently backing my phone up to see if it helps

    My iPhone and iPad are both saying that and its SOOOO frustrating!!!!!!!! You just need to keep trying because so many people are downloading it and putting strain on the servers

  • I recently upgraded to an iphone 6 and before doing so backed up trhe data on my iphone 5.  When i try to restore my data to the iphone 6 i am asked for a password which i do not have.  Any way around this?

    I recently upgraded to an iphone 6 from an iphone 5.  I backed up my iphone 5 to my laptop and whan i tried to restore my data to the new Iphone 6 it a password which i dont have.  Is there any way to restore my data to the iphone 6 without using a password from my iphone 5?

    Can you do the backup again if you still have the iP5 ?

  • Why is there an error occurring when I try to load content from my iTunes  library? Home sharing is switched on.

    Recently I seem to be having a problem with my Apple tv when it comes to loading the content of my library. I am asked to turn on home sharing,which i have done, and then an error message comes up. When I close down my itunes and retry I am then asked to turn on home sharing on my computer.....

    This indicates an issue with the network.
    Power cycle the ATV, router, and computer.

  • For the last week Yahoo has selectively given an error message when I try to load some pages from the Yahoo home page. This does not occur with other browsers. I have deleted and reinstalled Firefox and still have the same problem. What gives?

    Error message is "Sorry, Bad Request. Your browser sent a request that this server could not understand. Size of a request header field exceeds server limit. Cookie: B=cgo701174km66&b=4&d=mIFL83hpYEI4WaDw62GIKnNXCb95iP.UD0gNdg--&s=51&i=lMZtgolka2FbY89JBnGs; CH=Ah4MDxEIFhwyBQbMJIM7EQ2UKOYvuDebN8k6TSLCGBgCVT3LMu8SGQZfJCIOAz+2L/sxlyyvB4s45D0GBoFO8hVAAC6lQAADqzBMDp4wTAgIMEwliDBMELQwTBq/MEwlkCBNAwgQTCgRMEwD+w==; ugccmt_comment_usortoptv1=d=PKwIz.2sSAIDWxtgcpvG2_ldXCQynCyPSSctRnomJ_6fTeXdIAk1g0zH7vZprBp0ZE.OOPe3nn6yyLFvGJaDJDhGXSKmz3dheRGDH269zecy3iaybBUJkheede_9oA--&v=1; __qca=P0-641454378-1313532947520; F=a=7KX501QMvTPE9y5mznAynjtAdhjpiSz2iQlKeUbA1LoQE9iYMod1DfWlw0J.H6YHd_GWtu4-&b=Z4MA; YLS=v=1&p=1&n=9; Y=v=1&n=4oghc47n5g4tm&l=0bm0oi6e8d620/o&p=m1e2oho513000600&r=5n&lg=en-US&intl=us; PH=fn=T..YbuatbezeL14tB3w-&l=en-US; T=z=DI.2OBDcl7OBd6ZTCLAtq70NjU2NAY2NzM3MTE1NE42&a=YAE&sk=DAAlruGTRGGYHT&ks=EAAhma3qRhEA1Tpf8wepAxBkg--~E&d=c2wBTVRJeE13RXhNRFF3TmpZeU16a3gBYQFZQUUBZwFRQVFUVTVQUlo0QzNBMkhDTEtSU0NDNlRaVQFvawFaVzAtAXRpcAFDdFJwcEQBenoBREkuMk9CQTdF; U=mt=j6dSP52MhYjRzSGknPFDhjZrJAPP70mxUtxt7mA-&ux=uie7OB&un=4oghc47n5g4tm; adxf=1071831@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@16@322; adxid=010d5a4e4dac3748; fpc10002067177062=p4SSoaFY|yqnYXxJLaa|fses10002067177062=|o80Kj8sLaa|p4SSoaFY|fvis10002067177062=ZT1odHRwJTNBJTJGJTJGd3d3LnlhaG9vLmNvbSUyRiZmPWh0dHAlM0ElMkYlMkZzaGluZS55YWhvby5jb20lMkZldmVudCUyRnZpdGFsaXR5JTJGd2F5cy10by1wcmVkaWN0LWhvdy13ZWxsLXlvdS13aWxsLWFnZS0yNTQ0NDUyJTJGJmI9V2F5cyUyMHRvJTIwUHJlZGljdCUyMEhvdyUyMFdlbGwlMjBZb3UlMjBXaWxsJTIwQWdlJTIwb24lMjBTaGluZQ==|8MsMY7111H|8MsMY7111H|8MsMY7111H|o|8MsMY7111H|8MsMY7111H; fpc1000290526762=miUEIJrj|nPLwyztLaa|fses1000290526762=|nPLwyztLaa|miUEIJrj|fvis1000290526762=ZT1odHRwJTNBJTJGJTJGbmV3cy55YWhvby5jb20lMkZjb3BzLWluY3JlYXNpbmdseS11bmRlci1zaWVnZS1ob21lbGVzcy1kZWF0aC0wOTE3NDM2NjMuaHRtbCZmPWh0dHAlM0ElMkYlMkZuZXdzLnlhaG9vLmNvbSUyRmJsb2dzJTJGdXBncmFkZS15b3VyLWxpZmUlMkZ1cGdyYWRlLWxpZmUtdGlwcy1sYXB0b3AtYmF0dGVyaWVzLWxhc3QtbG9uZ2VyLTE5MjQ1Njc2My5odG1sJTNCX3lsdCUzREFvUkFTZGpEUklaQVREX25mc1k1N1lwdHp3Y0YlM0JfeWx1JTNEWDNvRE1UUTViamRrTTJrMEJHTmpiMlJsQTN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3V0JTIwLSUyMFlhaG9vISUyME5ld3M=|8|8|8|s|8M8T7MY7s8|8; fpc100026140356=NwWsMjca|s34jofELaa|fses100026140356=|EOOJejvLaa|NwWsMjca|fvis100026140356=ZT1odHRwJTNBJTJGJTJGd3d3LnlhaG9vLmNvbSUyRiZmPWh0dHAlM0ElMkYlMkZuZXdzLnlhaG9vLmNvbSUyRmJsb2dzJTJGZW52b3klMkZsaWJ5YS1yZWJlbC1jb21tYW5kZXItY29udGVuZHMtdG9ydHVyZWQtcmVuZGVyZWQtY2lhLTE1MzAzNzg1MC5odG1sJmI9TGlieWElMjByZWJlbCUy.

    See:
    * [http://kb.mozillazine.org/Menu_differences Firefox (Tools) > Options] > Advanced > General : Accessibility : [ ] "Warn me when web sites try to redirect or reload the page"
    * [[Options window - Advanced panel#General_tab]]
    See also:
    * http://kb.mozillazine.org/accessibility.blockautorefresh

  • Why do I get a message reading "an error occurred" when I try to post a video to YouTube through iMovie?

    How do I fix this error on the iMovie software version 10.6.8?

    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274
    iTunes: Specific update-and-restore error messages and advanced troubleshooting
    http://support.apple.com/kb/TS3694
     Cheers, Tom

  • HT4972 my ipod keeps telling me a error occured when i try updating why

    my ipod will not update to ios 5.1  I get error message could someone please help

    What is the complete wording of the error message?
    What model iPod do you have?
    If a 2G can only go to 4.2.1 and no other
    A 3G can go to 5.1.1 and not other
    A 4G to 6.0.1 only.

  • JUST PURCHASED ADOBE ACCOUNT.  TRIED TO SIGN IN AND KEEP GETTING "AN ERROR OCCURRED WHEN SIGNING IN."  WHAT SEEMS TO BE THE PROBLEM?

    DON'T WISH TO START A DISCUSSION.  JUST WISH TO HAVE AN ANSWER TO MY QUESTION.

    Too late. The discussion has been started . Are you talking about the Adobe PDF Pack? If so the place to get help is  Adobe PDF Pack (read only)
    If you are talking about a subscription for Acrobat the place for answers is Acrobat Installation & Update Issues
    If this is a Create Cloud Issue, the place for help is Adobe Creative Cloud
    Alas, you still get to start a new discussion.

  • Row and Column Template in Hyperion Reporting

    Hi
    Whenver I am trying to save a column of a report as a template , it is giving an error :
    "The selected columns contain one or more of the items below that cannot be included in templates:
    Invalid Input "
    I am not sure what does this mean. Though I have already deselected the "Link to Source Object". Can anyone suggest ?

    it may also worth cross checking below form doc:
    a.If your row and column template contains formulas with external references (for
    example, to cells outside of the selected row and column template), you are prompted
    to modify those formulas before saving the row or column template.
    Note: You can save a row and column template that contains cell formulas, as these can
    be discarded. For more information, see step 9.c on page 115.
    b. If a secondary database connection was specified within the row and column template,
    a dialog box displays prompting you to continue saving the template. If you save the
    template, the secondary database connection you specified in the row and column
    template is discarded. The primary database connection is then used for the row and
    column template.
    c. If unsupported properties are found, an Information dialog box presents a list of
    properties to discard before saving the template. For example, if the row and column
    template contains a cell formula, you can choose to save the template without the
    formula or not save the template.

Maybe you are looking for

  • Deploy .par fiel in WEbdynpro

    Can anybody please tell me how to import and deploy .par file in WEbdynpro(NWDS)..awaiting

  • File Adapter in OSB 11g

    Hi I am using a File Adapter created to read a file using OSB 11.1.1.3.0. But after i publish that osb project, i am getting the below warning and file is not been polled by the proxy. ####<Feb 23, 2011 10:08:30 AM IST> <Warning> <JCA_FRAMEWORK_AND_A

  • Unable to create a first Domain in JDI CMS system

    Hello All, I have installed JDI and configured SLD and everything seems to be working properly.  However, when I go into the CMS service (http://localhost:devinf) and try to create a domain it tells me I am creatinga customer domain and will not be a

  • External Hard Disk & Macbook Pro

    hello, Ok enough searched so far, now I would like to know the reason that why i can not copy stuff form my Macbook Pro to External HD & what is the best possible way to get rid of it , keeping in mind i need to use External HD on windows as well. Th

  • Weird class cast exception

    Hi: I have a class name T_TargProcGroupUsers. I have the following method in my DAO Class      public List<T_TargProcGroupUsers> findByDisplayName(String displayName) {           @SuppressWarnings("unchecked")           List<T_TargProcGroupUsers> use