It wants a char; then says it's too small

Hello,
I have created a UI for a TestStand program in LabWindows/CVI; and it's causing me headaches. The problem is two out of several dozen of (nearly) identical function calls:
GetCtrlVal(panel, UUT_Test4, &gTestTemp); basicTest[3] = gTestTemp;
GetCtrlVal(panel, UUT_Test5, &gTestTemp); basicTest[4] = gTestTemp; //Error here
GetCtrlVal(panel, UUT_Test6, &gTestTemp); basicTest[5] = gTestTemp; //Error here
GetCtrlVal(panel, UUT_Test7, &gTestTemp); basicTest[6] = gTestTemp;
gTestTemp is defined as a static int. The functions are called in a callback function, which runs when the user clicks the "Ok" button in my UI.
When I run my TestStand program and I press said OK button, I get a fatal runtime error: "Invalid argument type: found 'pointer to int', expected 'pointer to char'".
I attempted to fix this issue by defining a new value, gTestTempC, as a static char and using it to retrieve the result for only these two function calls:
GetCtrlVal(panel, UUT_Test4, &gTestTemp); basicTest[3] = gTestTemp;
GetCtrlVal(panel, UUT_Test5, &gTestTempC); basicTest[4] = gTestTempC; //Error here
GetCtrlVal(panel, UUT_Test6, &gTestTempC); basicTest[5] = gTestTempC; //Error here
GetCtrlVal(panel, UUT_Test7, &gTestTemp); basicTest[6] = gTestTemp;
This results in the fatal runtime error: "Argument too small".
I have gone into my *.uir file and have verified that there is absolutely no difference between the checkbox control elements of the functioning and the error-bringing function calls (apart from their name and their label).
Does anyone have any idea what may be the problem here?
~Cheers,
D.W.

The code that was giving me trouble is:
static int gTestTemp;
static int basicTest[7];
//Some code here
int CVICALLBACK DispTestUIDone (int panel, int control, int event,
void *callbackData, int eventData1, int eventData2) {
switch (event) {
case EVENT_COMMIT:
GetCtrlVal(panel, UUT_Test1, &gTestTemp); basicTest[0] = gTestTemp;
GetCtrlVal(panel, UUT_Test2, &gTestTemp); basicTest[1] = gTestTemp;
GetCtrlVal(panel, UUT_Test3, &gTestTemp); basicTest[2] = gTestTemp;
GetCtrlVal(panel, UUT_Test4, &gTestTemp); basicTest[3] = gTestTemp;
GetCtrlVal(panel, UUT_Test5, &gTestTemp); basicTest[4] = gTestTemp;
GetCtrlVal(panel, UUT_Test6, &gTestTemp); basicTest[5] = gTestTemp;
GetCtrlVal(panel, UUT_Test7, &gTestTemp); basicTest[6] = gTestTemp;
QuitUserInterface(0);
break;
return 0;
Upon calling the function TestUIDone with event EVENT_COMMIT, I got an error on the lines containing UUT_Test5, UUT_Test6 and UUT_Test7: "found 'pointer to int', expected 'pointer to char'".
As was suggested above, I declared an array of character values (char) that was, apparently, required to be at least 63 bytes in size (according to a new error):
static int gTestTemp;
static char gTestTempC[63];
static int basicTest[7];
//Some code here
int CVICALLBACK DispTestUIDone (int panel, int control, int event,
void *callbackData, int eventData1, int eventData2) {
switch (event) {
case EVENT_COMMIT:
GetCtrlVal(panel, UUT_Test1, &gTestTemp); basicTest[0] = gTestTemp;
GetCtrlVal(panel, UUT_Test2, &gTestTemp); basicTest[1] = gTestTemp;
GetCtrlVal(panel, UUT_Test3, &gTestTemp); basicTest[2] = gTestTemp;
GetCtrlVal(panel, UUT_Test4, &gTestTemp); basicTest[3] = gTestTemp;
GetCtrlVal(panel, UUT_Test5, gTestTempC); basicTest[4] = gTestTempC[0];
GetCtrlVal(panel, UUT_Test6, gTestTempC); basicTest[5] = gTestTempC[0];
GetCtrlVal(panel, UUT_Test7, gTestTempC); basicTest[6] = gTestTempC[0];
QuitUserInterface(0);
break;
return 0;
This no longer throws any errors, but the basicTest array in no way resembles anything I enter into the UI. Additionally, I find it very odd that 63 bytes are required to store three true/false values (the UI control elements are checkboxes).
I can't really give you any more information about how to reproduce the error, since I'm not even sure myself how it came to be. Like I said, the UI worked fine and then stopped working although I changed nothing on that part of the program.
I will try to reproduce the error in a seperate program and let you know how that goes.
After finishing this one UI, I added another four to the same program. Perhaps those conflict in some way? I doubt they do since the other UIs all work fine, but I can't tell for sure.

Similar Messages

  • When I try to upload a picture to my profile page on facebook it says it is too small

    when I try to uploiad a photo taken with my i-phone camera to my facebook profile page I recieve a message saying the photo is too small.

    Hello, MaximusIV.
    Thank you for visiting Apple Support Communities.
    Here is an article I would recommend going through when experiencing these issue.  See the sections that refer to Camera isn't functioning or has undesired image quality.
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/ts2802
    If none of the steps help resolve the issue, see the last section labeled Issue not resolved.
    Cheers,
    Jason H.

  • Why when i want to download a free app from app store it asks for my apple id and when i give my apple id it then says "this apple id has not yet been used in the itunes store". i dont even know what that means and it will this happen everytime?

    why when i want to download a free app from app store it asks for my apple id and when i give my apple id it then says "this apple id has not yet been used in the itunes store". i dont even know what that means and it will this happen everytime?

    If you are within 14 days of purchase you can still return the iPhone and get the phone that suits your needs, however, I think you will find that no matter which phone you get the content provider will want to know how you are going to pay for future purchases. For Android phones it is Google, and they will certainly want to know.
    To create an Apple account without a credit card see: http://support.apple.com/kb/HT2534

  • I have a Macbook Pro and have just purchased a GSP hidden objects game. It says on the box that it is compatible and when I try and install it it tells me that installation has been successful. However, it then says that PowerPC games not supported. Help?

    I have a Macbook Pro and have just purchased a GSP hidden objects game. It says on the box that it is compatible and when I try and install it it tells me that installation has been successful. However, it then says that PowerPC games not supported. Help?
    No game icon appears on my desktop and I don't know what I can do.
    Really ****** off as i've not played these games since switching from a windows PC to a Mac and was really excited!! All I want is to be able to play my new game that arrived in the post today. If anyone can help I would be really really grateful....
    The game says that it needs Mac OS X 10.3 or higher to run so I don't understand what the problem is or how I can fix it!!

    beckyj3,
    the last version of Mac OS X which supported running PowerPC apps on Intel Macs was Mac OS X 10.6.8 (Snow Leopard). If you’d like to play this PowerPC game on your Intel MacBook Pro, then you’ll need to install Snow Leopard on it and boot into Snow Leopard. (Note that the last MacBook Pro which natively supported Snow Leopard was the Early 2011 model.)
    The game was almost certainly published before Mac OS X 10.7 (Lion) was released, so back then, all versions of “Mac OS X 10.3 or higher” would have supported running that PowerPC game.

  • When I try to open facebook it keeps telling me I have to put password in for settings and then says "not communicating with server. What do I do?  It use to be fine

    when I try to open facebook it keeps telling me to put password in and then says"can't communicate with server.  Use to work fine  

    I had a very similar problem with using the Facebook App. I couldn't post a photo because the "Password was incorrect". When I went to input it, the email address it had as a Username was also incorrect. I placed a call to Apple Support (I'm within the free 90 days of phone help). They walked me through a few different attempts to fix it.
    I ended up Restoring the iPad altogether. Set up as "New". Download the Facebook App. Set that up. Make sure you can post status updates, post photos and attach locations to these. When all that is up and running well, select what you do and don't want to be sync'd to your iPad. Initiate the Sync.
    You'll be up and running then. Hope this helps...
    Ryan

  • My iPad mini keeps asking for apple ID to face time then says I'm not connected to Internet when I am. Help please

    My iPad mini keeps asking for apple ID to face time then says I'm not connected to Internet when I am. Help please

    Hi there Mullin1!
    I have a couple of articles here that can help you troubleshoot and resolve this issue. This first article will help walk you through some basic troubleshooting steps for FaceTime, and it can be found here:
    iOS: Troubleshooting FaceTime
    http://support.apple.com/kb/ts3367
    After going through those steps, if you are still having issues with your Wi-Fi connection, then you will want to reference the further steps located in this article:
    iOS: Troubleshooting Wi-Fi networks and connections
    http://support.apple.com/kb/TS1398
    Thanks for using the Apple Support Communities!
    Cheers,
    Braden

  • HT1725 Hi,i'm Mizanur Rahman,i want to buy poker chips from my iTunes account, but not do this when i want to buy that say "please contact iTunes support ti complete this transaction" for what is this i dunt understand this.plz solv this probleams

    Hi,i'm Mizanur Rahman,i want to buy poker chips from my iTunes account, but not do this when i want to buy that say "please contact iTunes support ti complete this transaction" for what is this i dunt understand this.plz solv this probleams.but i parseas software from this account.so why not parseas poker chips? i have lote of blance in my account.so plz plz solve this provleams.
    <Personal Information Edited by Host>
    iPhone 4, iOS 5.1.1

    You will need to do what it says, contact iTunes support. Click the Support tab above, then the Get Started link in the Contact Apple Support area and you'll be guided. We are all just fellow users here and so have no idea about the cause of the issue nor any ability to resolve it for you.
    Regards.

  • Have the iphone 4s and macbook picks it up as a camera then says no camera was found

    I plug my iphone in and the camera icon "jumps" then says no camera was found.  I just want to get my info back on my new phone!

    The answer is in another post - this is a copy (Paraphrased):
    1. Connect the iPad (or iPhone) is  to the computer
    2. On you Mac, open the Image Capture application. You should see a list of devices in the left-hand pane
    3. Select the iPad (or iPhone) from this list.  Note that at the bottom of this pane is a prompt that says:
    "Connecting this iPad opens:"
    4. Change the "Connecting this IPad opens" to an option of your choice. I chose "No application" in my case.
    Thanks to Don Bullock Jr  - he deserves the points for this!

  • Lightroom 4.1 - Shows 14 files to import/sync, then says none found

    I have Lightroom 4.1 for Win7x64.
    When I right-click on the folder where I keep all my photos, and choose synchronize, it says I have 14 images to import.
    I click import, it does it's thing, then says 'no photos or videos were found to import' and that's it.
    Tried closing/reopening and trying again, selecting/deselecting the options in the sync menu and still says 14 to import, then nothing found.
    ... is there a way to 'flush' the database or something?
    Currently downloading the 4.2 update... on a side note... what kind of "update" is 750MB???? seriously... most programs are smaller than that!

    A LR for Windows update contains an installer for both the 32-bit and the 64-bit versions of LR, but you usually only install one of those.
    I would guess that they are duplicates that have a different name from the initial instance of them, and the quick check during Synchronize doesn’t figure that out, but the more sophisticated check during Import does. 
    One way to determine this would be to show the Import dialog and enable the Allow Duplicates and see if the 14 are available for import, then.  I’m not saying you should import them, just determine if they are duplicates.  If they are duplicates then you can determine if you want to delete them.

  • My iphone phone wont turn on and when i plug into computer it wants to restore then gets stops at the 'waiting for iphone' what do i do? not jailbroken not damaged? HELP!!!!!

    my iphone phone wont turn on and when i plug into computer it wants to restore then gets stops at the 'waiting for iphone' what do i do? not jailbroken not damaged? HELP!!!!!

    i have, its connected to my sisters computer,it starts to restore then says there was a problem downloading the software for the iphone, the network connection has timed out. what does this mean?

  • Since my iPad updated inSeptember, my iCloud will not work. It tells me that I must accept the new Terms and Conditions, then says that iPad cannot access Terms and Conditions.....

    Since updating my iPad in September, I have not been able to access iCloud. It wants me to review Terms and Conditions, then says that it cannot connect to the server...

    Welcome to the Apple Community.
    Please try the following...
    Go to Settings > iCloud > Delete Account (This removes your data from your device, but not from your account, it will be added back later).
    Restart the device.
    Sign in again (Settings > iCloud, don't use the 'Create New Apple ID' button).

  • Ok, so I want to buy the new iPod touch 5g this week and I have an iPhone 4. I want to transfer all the data from the phone to the iPod and have the files the exact same. I don't want to redo data, say erase game data (campaigns, achievements)...

    Ok, so I want to buy the new iPod touch 5g this week and I have an iPhone 4. I want to transfer all the data from the iPhone to the iPod and have the files the exact same. I don't want to redo data, say erase game data (campaigns, achievements)... I have apps that have very important data on them and if I sync it to iTunes and then transfer all that data to the iPod Touch 5g, will that erase app data?

    iOS: Transferring information from your current iPhone, iPad, or iPod touch to a new device

  • Adobe Digital says I need to install updates.  Goes through motions then says it cannot inistall.  What to do?

    Adobe Digital says I need to install updates.  Goes through motions then says it cannot inistall.  What to do?  Otherwise, it seems to be working OK.

    jennifer.jaeger wrote:
    I dont want to print it i just want to be able to save it to a specific folder and not downloads and when i try and do that it says i must save it as a .webarchive and then when i agree to that it says it cannot export it
    If you do as I said you will get a pdf file,
    You need to read this, it will be easier to work on a Mac when you know how a Mac works.

  • How can you watch itunes purchased movies on apple tv. A click on to movies then into purchase thn a click on a movie i want to watch then my apple tv box light starts going on and off plus the screen is blank

    How can you watch itunes purchased movies on apple tv. A click on to movies then into purchase thn a click on a movie i want to watch then my apple tv box light starts going on and off plus the screen is blank

    JasonFromSK wrote:
    With the newest Airport firmware (7.6.1), it seems I should be able to do this.
    Really? I need to check that out!
    You should certainly be able to add content by reference to itunes from such a disk (even before the update) - so long as itunes knows the location of the file (set Preferences not to copy to local library when adding the media) it will stream it to AppleTV if the disk is available.
    I hope you're right, but I'd be surprised if current Extremes can be upgarded to provide a full Home Sharing service - marvellous if they can but I'd be surprised as i've long said we need an Apple media server either based on TC or AE to do this kind of thing.
    AC

  • Adobe creative cloud has stopped working, all my individual programmes from adobe open and work fine, but when I try to open adobe cloud it starts to open then says adobe cloud has stopped working, looking for a solution then shuts down, I can not open it

    Adobe creative cloud has stopped working, all my individual programmes from adobe open and work fine, but when I try to open adobe cloud it starts to open then says adobe cloud has stopped working, looking for a solution then shuts down, I can not open it at all.

    Without proper system information and the application logs nobody can tell you much.
    Troubleshoot Creative Cloud download and install issues
    Mylenium

Maybe you are looking for

  • HP Officejet Pro 8000 Wireless, Mac OS 10.7.2 can't get it set up to run wireless

    I have an iMac, OS 10.7.2, Airport Extreme router, and an HP Officejet Pro 8000 Wireless.  I recently replaced my router with an Airport Extreme.  My printer setup CD is for OS 10.4 or 10.5.  I'm trying to setup the 8000 wirelessly but without much l

  • Another victim of the suddenly-missing AppleTV in iTunes

    I picked up my AppleTV a couple of weeks ago, brought it home and synced it successfully to a G4 iMac. Put some content on it, and it ran quite well. Last night I get home, and iTunes cannot see the device any more. The only variable? Installed the Q

  • Dynamic Filter Selection in CUIC Reports

    Hi, I have come up with a new requirement in CUIC where i need to provide dynamic selection on the filter criteria. Ex: Assuming in a report i need a filter criteria as agent name, call type and skill group which can be availble in drop down control.

  • Initial Context prbm

    hi everybody, i am new to this forum. any body help me to solve the problem i am trying to communicate statelessbean with console client thro' weblogic 8.1 server. but i got an error during initial context object creation time. that error is Exceptio

  • Satellite P30 shuts down after some mins

    I have a Satellite P30 which is several months old. already I have had to restore the system after a crash and now the laptop powers down after 10 or 15 mins use. It doesn't seem to get excessively hot. has anyone had a similar experince and how did