Help me fix the errors

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BankApplication
class Program
static void Main(string[] args)
String AccountName = " ";
float Balance = 0f;
Boolean quit = false;
int userChoice;
Console.WriteLine("please Chose what to do:");
Console.WriteLine("1. Create Acount");
Console.WriteLine("2. Deposit cash");
Console.WriteLine("3. Withdraw Cash");
Console.WriteLine("4. Chech balance");
Console.WriteLine("or 0. to quit");
userChoice = Console.Read();
switch(userChoice)
case 1:
string name;
Console.WriteLine("please enter account name");
name = Console.ReadLine();
if (name==name)
Console.WriteLine("name alredy exist");
else
AccountName += name;
Console.WriteLine("Account Name ", name);
break;
case 2:
float amount;
Console.WriteLine("Amount to deposit: ");
amount = Console.Read();
if (amount <= 0){
Console.WriteLine("Can't deposit nonpositive amount.");
else {
Balance += amount;
Console.WriteLine("R" + amount + " has been deposited.");
break;
case 3:
Console.WriteLine("Amount to withdraw: ");
amount = Console.Read();
if (amount <= 0 || amount > Balance)
Console.WriteLine("Withdrawal can't be completed.");
else {
Balance -= amount;
Console.WriteLine("R" + amount + " has been withdrawn.");
break;
case 4:
Console.WriteLine("Your balance: R" + Balance);
break;
case 0:
quit = true;
break;
default:
Console.WriteLine("Wrong choice.");
break;
while(!quit);
Console.WriteLine("BIY!");

In addition to the other good advice already posted, I suggest that you NOT us the float datatype for the balance, as you may encounter rounding errors.
Use the decimal datatype instead.
Instead of:
float Balance
= 0f;
use:
decimal Balance = 0d;
Read here:
https://msdn.microsoft.com/en-us/library/364x0z75.aspx?f=255&MSPPError=-2147217396
"the decimal type has more precision and a smaller range, which makes it appropriate for financial and monetary calculations."

Similar Messages

  • Need help in fixing the error

    Hi All,
    could anybody help in fixing the following error.
    C:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_SAISTARS_SAISTARS\jsp_servlet\__listproject.java:1071: cannot resolve symbol
    probably occurred due to an error in /listProject.jsp line 221:
    <pg:pager maxIndexPages="<%=10%>" maxPageItems="<%=10%>">
    Thanks and Regards,
    shaik

    Hi abinash,
    Not enough information!
    Check the logs for errors and post the here.
    regards
    Juan

  • Please help me fix the error

    I am not done with the program but I get errors that I am not sure how to fix them. I was wondering if anyone can help me solve the problem.
    This program is a quiz program and has to handle 3 subjects. The user is able to select from these 3 categories. The program presents 3 questions and has to provide 4 option for each question. One would be to exit from the quiz. If the user responds to a question correctly, the program displays a positive feedback message. If the user responds incorrectly to the question, the program displays the correct answer. Exiting the questions menu returns the student to the topics menu. At the end of the quiz, the program displays the total number of correct and incorrect answers for each topic. Have a counter to count the correct answers.
    Plese help me fix the problem with the code
    import java.util.Scanner;
    import java.io.*;
    public class Test
    int correctAnswer = 0;
    String str;
    String q;
    Scanner scan = new Scanner (System.in);
    System.out.println("key in m for Math category, s for Science category, a for Art category, or x to exit the test");
    String str = scan.nextLine();
    while (str != 'x')
    if( str == m)
    System.out.println (" What is the area if Triangle? a) l*W b)S^2 c)1/2 b * h");
    q = scan.nextLine();
    if (q == c)
    System.out.println(" your answer is correct");
    correctAnswer = correctAnswer+1
    else System.out.println(" your answer is not correct");
    System.out.println ("What is the premiter? a)The distance of all the sides b)the parallel distance c)The angle of a shape");
    q = scan.nextLine();
    if (q == a)
    System.out.println(" your answer is correct");
    correctAnswer = correctAnswer+1
    else System.out.println(" your answer is not correct");
    System.out.println ("What is a right angle? a)100 degree b)180 degree c)90 degree");
    q = scan.nextLine();
    if (q == c)
    System.out.println(" your answer is correct");
    correctAnswer = correctAnswer+1
    else System.out.println(" your answer is not correct");
    if( str == s)
    System.out.println (" What is Diffusion? a)No movement between Molecules b)Movement of molecules high to low c)Movement of molecules high to low");
    q = scan.nextLine();
    if (q == c)
    System.out.println(" your answer is correct");
    correctAnswer = correctAnswer+1
    else System.out.println(" your answer is not correct");
    System.out.println ("What is the element sign for carbon dioxide? a)CO2 b)CO c)O2");
    q = scan.nextLine();
    if (q == a)
    System.out.println(" your answer is correct");
    correctAnswer = correctAnswer+1
    else System.out.println(" your answer is not correct");
    System.out.println ("What is the normal body temperature? a)98.5 b)99.0 c)102.1");
    q = scan.nextLine();
    if (q == a)
    System.out.println(" your answer is correct");
    correctAnswer = correctAnswer+1
    else System.out.println(" your answer is not correct");
    if( str == a)
    System.out.println ("which artist painted the Monalisa? a)Michael Angelo b)Leonardo De Vinci c)Pablo Picasso ");
    q = scan.nextLine();
    if (q == a)
    System.out.println(" your answer is correct");
    correctAnswer = correctAnswer+1
    else System.out.println(" your answer is not correct");
    System.out.println ("which artist painted the Sister Chapple? a)Michael Angelo b)Leonardo De Vinci c)Pablo Picasso ");
    q = scan.nextLine();
    if (q == a)
    System.out.println(" your answer is correct");
    correctAnswer = correctAnswer+1
    else System.out.println(" your answer is not correct");
    System.out.println ("which artist paint the Monalisa? a)Michael Angelo b)Leonardo De Vinci c)Pablo Picasso");
    q = scan.nextLine();
    if (q == b)
    System.out.println(" your answer is correct");
    correctAnswer = correctAnswer+1
    else System.out.println(" your answer is not correct");
    }}

    Here's a better version, fixing what I mentioned above. I haven't test compiled it, but it should work now. As a note, you might want to look into the ++ operator as well. And when you post code, enclose it in the "code" tags (see the code button above your posting). That makes it easier to read.
    Anyway, here it is:
    import java.util.Scanner;
    import java.io.*;
    public class Test {
         int correctAnswer = 0;
         String str;
         String q;
         Scanner scan = new Scanner (System.in);
         static public void main(String [] args) {
              System.out.println("key in m for Math category, s for Science category, a for Art category, or x to exit the test");
              String str = scan.nextLine();
              while (!str.equals("x")) {
                   if( str.equals("m")) {
                        System.out.println (" What is the area if Triangle? a) l*W b)S^2 c)1/2 b * h");
                        q = scan.nextLine();
                        if (q.equals("c")) {
                             System.out.println(" your answer is correct");
                             correctAnswer = correctAnswer+1;
                        } else {
                              System.out.println(" your answer is not correct");
                        System.out.println ("What is the premiter? a)The distance of all the sides b)the parallel distance c)The angle of a shape");
                        q = scan.nextLine();
                        if (q.equals("a")) {
                             System.out.println(" your answer is correct");
                             correctAnswer = correctAnswer+1;
                        } else {
                              System.out.println(" your answer is not correct");
                        System.out.println ("What is a right angle? a)100 degree b)180 degree c)90 degree");
                        q = scan.nextLine();
                        if (q.equals("c")) {
                             System.out.println(" your answer is correct");
                             correctAnswer = correctAnswer+1;
                        } else { System.out.println(" your answer is not correct");
                   if( str.equals("s")) {
                        System.out.println (" What is Diffusion? a)No movement between Molecules b)Movement of molecules high to low c)Movement of molecules high to low");
                        q = scan.nextLine();
                        if (q.equals("c")) {
                             System.out.println(" your answer is correct");
                             correctAnswer = correctAnswer+1;
                        } else {
                             System.out.println(" your answer is not correct");
                        System.out.println ("What is the element sign for carbon dioxide? a)CO2 b)CO c)O2");
                        q = scan.nextLine();
                        if (q.equals("a") {
                             System.out.println(" your answer is correct");
                             correctAnswer = correctAnswer+1;
                        } else {
                             System.out.println(" your answer is not correct");
                        System.out.println ("What is the normal body temperature? a)98.5 b)99.0 c)102.1");
                        q = scan.nextLine();
                        if (q.equals("a")) {
                             System.out.println(" your answer is correct");
                             correctAnswer = correctAnswer+1;
                        } else {
                             System.out.println(" your answer is not correct");
                   if( str.equals("a")) {
                        System.out.println ("which artist painted the Monalisa? a)Michael Angelo b)Leonardo De Vinci c)Pablo Picasso ");
                        q = scan.nextLine();
                        if (q.equals("a")) {
                             System.out.println(" your answer is correct");
                             correctAnswer = correctAnswer+1;
                        } else {
                             System.out.println(" your answer is not correct");
                        System.out.println ("which artist painted the Sister Chapple? a)Michael Angelo b)Leonardo De Vinci c)Pablo Picasso ");
                        q = scan.nextLine();
                        if (q.equals("a")) {
                             System.out.println(" your answer is correct");
                             correctAnswer = correctAnswer+1;
                        } else {
                              System.out.println(" your answer is not correct");
                        System.out.println ("which artist paint the Monalisa? a)Michael Angelo b)Leonardo De Vinci c)Pablo Picasso");
                        q = scan.nextLine();
                        if (q.equals("b")) {
                             System.out.println(" your answer is correct");
                             correctAnswer = correctAnswer+1;
                        } else {
                             System.out.println(" your answer is not correct");
    }

  • Help to fix the error message in proc? I could not understand the error and how to fix this issue?

    error
    19e529fd-3785-410e-ad4e-f4c8542ade52 2014-03-17T21:40:59.079Z err { message: '@D
    efault is not a parameter for procedure sp_Address_UPDATE.',? type: 'alert',?
    stack: 'Error: @Default is not a parameter for procedure sp_Address_UPDATE.\n
    at TDSStream.onRequestComplete (c:\Projects\caa-api\lib\data\tedious\TDSS
    tream.js:67:11)\n at Request.callback (c:\Projects\caa-api\node_modules\t
    edious\lib\request.js:24:27)\n at PooledConnection.Connection.STATE.SENT_CL
    IENT_REQUEST.events.message (c:\Projects\caa-api\node_modules\tedious\lib\
    connection.js:198:29)\n at PooledConnection.Connection.dispatchEvent (c:\Pro
    jects\caa-api\node_modules\tedious\lib\connection.js:465:59)\n at Messag
    eIO. (c:\Projects\caa-api\node_modules\tedious\lib\connection.j
    s:419:20)\n at MessageIO.EventEmitter.emit (events.js:92:17)\n at MessageI
    O.eventData (c:\Projects\caa-api\node_modules\tedious\lib\message-io.js:59
    :21)\n at CleartextStream. (c:\Projects\caa-api\node_modules\t
    edious\lib\message-io.js:3:59)\n at CleartextStream.EventEmitter.emit (even
    ts.js:95:17)\n at CleartextStream. (_stream_readable.js:746:14)' }
    existing Proc
    sp_helptext sp_Address_UPDATE
    CREATE PROCEDURE [dbo].[sp_Address_UPDATE]
      @AddressID             INT OUTPUT,
      @Line1                 NVARCHAR(400) = NULL,
      @Line2                 NVARCHAR(400) = NULL,
      @Line3                 NVARCHAR(400) = NULL,
      @UnitNumber            NVARCHAR(30) = NULL,
      @City                  NVARCHAR(400) = NULL,
      @StateProvinceID       INT = NULL,
      @PostalCode            NVARCHAR(50) = NULL,
      @CountryID             INT = NULL,
      @Latitude              NUMERIC(30, 8) = NULL,
      @Longitude             NUMERIC(30, 8) = NULL,
      @Elevation             NUMERIC(30, 8) = NULL,
      @Active                SMALLINT = NULL,
      @ModifiedBy            NVARCHAR(50) = NULL,
      @Error                 NVARCHAR(400) = NULL OUTPUT,
      @Locality              NVARCHAR(400)=NULL,
      @AdministrativeArea    NVARCHAR(400)=NULL,
      @AdministrativeSubArea NVARCHAR(400)=NULL,
      @Country               NVARCHAR(400)=NULL
    AS
        IF @Country IS NOT NULL
          SELECT @Countryid = CountryId
            FROM countries
           WHERE ( Country = @Country )
                  OR ( CountryAbrv2 = @Country )
                  OR ( CountryAbrv3 = @Country )
        IF @AdministrativeArea IS NOT NULL
          SELECT @StateProvinceID = StateProvinceID
            FROM StateProvince
           WHERE ( abbreviation = @AdministrativeArea )
                  OR ( name = @AdministrativeArea )
      --    BEGIN TRAN
        UPDATE a
           SET Line1 = ISNULL(@Line1, a.Line1),
               Line2 = ISNULL(@Line2, a.Line2),
               Line3 = ISNULL(@Line3, a.Line3),
               UnitNumber = ISNULL(@UnitNumber, a.UnitNumber),
               City = ISNULL(@City, a.City),
               StateProvinceID = CASE
                                   WHEN AdministrativeArea IS NOT NULL
                                        AND @StateProvinceID IS NULL THEN NULL
                                   ELSE ISNULL(@StateProvinceID, a.StateProvinceID)
                                 END,
               PostalCode = ISNULL(@PostalCode, a.PostalCode),
               CountryID = CASE
                             WHEN Country IS NOT NULL
                                  AND @CountryID IS NULL THEN NULL
                             ELSE ISNULL(@CountryID, a.CountryID)
                           END,
               Latitude = ISNULL(@Latitude, a.Latitude),
               Longitude = ISNULL(@Longitude, a.Longitude),
               Elevation = ISNULL(@Elevation, a.Elevation),
               Active = ISNULL(@Active, a.Active),
               ModifiedDate = GETDATE(),
               ModifiedBy = ISNULL(@ModifiedBy, ModifiedBy),
               locality = ISNULL(@locality, locality),
               AdministrativeArea = ISNULL(@AdministrativeArea, AdministrativeArea),
               AdministrativeSubArea = ISNULL(@AdministrativeSubArea, AdministrativeSubArea),
               Country = ISNULL(@Country, Country),
               geogcode = CASE
                            WHEN @latitude IS NOT NULL
                                 AND @longitude IS NOT NULL THEN geography::STPointFromText('POINT(' + CAST(@Longitude AS VARCHAR(20))
                  + ' ' + CAST(@Latitude AS VARCHAR(20)) + ')', 4326)
                            ELSE NULL
                          END,
               geocode = CASE
                           WHEN @latitude IS NOT NULL
                                AND @longitude IS NOT NULL THEN geometry::STPointFromText('POINT(' + CAST(@Longitude AS VARCHAR(20))
                + ' ' + CAST(@Latitude AS VARCHAR(20)) + ')', 4326)
                           ELSE NULL
                         END
          FROM [Address] a
         WHERE a.AddressID = @AddressID
        IF EXISTS(SELECT *
                    FROM address
                   WHERE Addressid = @addressid
                         AND ( locality IS NOT NULL
                                OR AdministrativeArea IS NOT NULL
                                OR country IS NOT NULL ))
          SELECT AddressID,
                 Line1,
                 Line2,
                 Line3,
                 UnitNumber,
                 isnull(Locality, City) AS 'Locality',
                 a.StateProvinceID,
                 isnull(administrativeArea, S.Name) AS 'AdministrativeArea',
                 AdministrativeSubArea,
                 a.PostalCode,
                 a.CountryID,
                 isnull(c.Country, a.Country) AS Country,
                 a.Latitude,
                 a.Longitude,
                 a.Elevation,
                 a.ModifiedBy,
                 a.ModifiedDate
            FROM [Address] a
                 LEFT JOIN stateprovince s
                        ON s.stateprovinceid = a.stateprovinceid
                 LEFT JOIN Countries c
                        ON c.Countryid = a.Countryid
           WHERE AddressID = @AddressID
        ELSE
          SELECT AddressID,
                 Line1,
                 Line2,
                 Line3,
                 UnitNumber,
                 City,
                 StateProvinceID,
                 PostalCode,
                 CountryID,
                 Latitude,
                 Longitude,
                 Elevation,
                 ModifiedBy,
                 ModifiedDate
            FROM [Address]
           WHERE AddressID = @AddressID
        RETURN @AddressID

    Nothing in the procedure is right. The “sp_” prefix has special meaning in T-SQL, so the name is wrong. THEN it gets even worse.
    No postal service in Earth uses 400 character address lineS. Can you give me an exampelf of a city_ with 400 characters? 
    Longitude and latitude are done with FLOAT because of the math used. ISO country codes are CHAR(3). Addresses do not have an id; we have “<something>_address” in RDBMS. Do you want some industry standard like the SAN? 
    The (ModIFiedBy, ModIFiedDate) pair is audit data, so it is illegal to have it in the table under audit. 
    Your code is BASIC or COBOL written in T-SQL with 1960's with  IF-THEN control flow and not in declarative SQL! Why did you fail to use COALESCE? 
    Look at how to write a MERGE statement and get rid of this procedure.  And look at an address scrubbing tool for the data. In the future, post DDL and follow minimal Netiquette. 
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • I'm getting this problem when trying to update my iphone 3gs it says that the iphone software could not be contacted and I went on youtube got some advise to go into my hard drive to fix the error I have nothing in my host file please help me if you can

    I'm getting this problem when trying to update my iphone 3gs it says that the iphone software could not be contacted and I went on youtube got some advise to go into my hard drive to fix the error I have nothing in my host file please help me if you can this is all new to me.

    Read this: iOS 4: Updating your device to iOS 5 or later
    ... oh I think it is a 3gs or a 3
    This makes a difference. What does it say in Settings > General > About?

  • Hi plZ help me to fix the error to my Blackberry 9300 Uncaught exception: java.lang.​NullPointe​rException

    ;   hi good plzz do help me to fix the error to my bb9300 i just update my bb9300 the the i see 
    error b    Uncaught exception: java.lang.NullPointerException    anyone here can help me to fix i appreciate

    I am guessing that you are not a Java developer, and it is not your application that is causing the Null Pointer Exception. 
    It sounds like you have updated the OS on your Blackberry device and one of the applications that you have installed is not coping with the upgrade.  
    If you press on an application icon and then that causes the error, then you know there is a problem with that application and so you need to report this to the developers of that application and get an updated version. 
    If this is happening when you restart your device, then it appears that one of the installed applications is failing at start up time and so it is not obvious which application.  So you need to see which of your applications doesn't appear to be providing all the functions it used to, and it would be a good guess that it is that application that is causing the problem.  Again you need to go back to the developer to get an update. 
    Let us know if that does not help.
    Also you have posted in the Java developer forum.  If this really is not your program causing the problem, then I suggest a better place to post a question relating to the 9300 is in the appropriate device forum here:
    http://supportforums.blackberry.com/t5/BlackBerry-​Curve/bd-p/Curve

  • I am having troubles, when I open LR I get a message that there is an error and it will try to fix the error next time it opens, but I get the error next time it opens, and this is going on and on where I can not use LR, any suggestions?

    I am having troubles, when I open LR I get a message that there is an error and it will try to fix the error next time it opens. LR closes on it's own, I reopen it and get that same message next time it opens, and this is going on and on where I can not use LR, any suggestions? If I click on a different set of photos in the libary before I get that message I might or might not get the message next time it oipens, but I still can not get to those photos, and it is not just one or two but most of my photos. HELP!!!!
    Thanks
    Carol

    The first thing I would suggest is for you to go to the folder containing your catalog, using your system browser. There will be a folder that has the extension .lrdata. Delete that folder, and then try to start Lightroom. If that doesn't work, replace your catalog with your most recent backup.

  • I recieve the following error when running an executable ("This VI is not Executable. The full development version of Labview is required to fix the errors"

    I recieve the following error when trying to build and run a labview executable. I am able to build the executable but when trying to run the executable, a pop up window comes up asking the user to select a dll. (please see screen shot attached). Once the DLL is selected, I get the error that This VI is not Executable. The full development version of Labview is required to fix the errors. (please see screen shot attached). I have also attached a snapshot of the project window.
    I have the professional development system
    I can run the main VI
    all the required DLL's are in the dependencies section of the project window.
    I am trying to find the root cause of this error but to no avail. can anyone give me a clue to what i am missing here. Any suggestions on where i should look to find the problem ?
    Thanks in advance to all labview users for your help
    Attachments:
    project window.PNG ‏36 KB

    other PNG
    Attachments:
    Broken Arrow on EXE.PNG ‏179 KB

  • When i try to open photoshop this shows up Please uninstall and reinstall the product.  If this problem still occurs, please contact Adobe technical support for help, and mention the error code shown at the bottom of this screen.  Error: 16

    i had to take my photoshop file into a hardrive because my dad was going to give me a new Mac and when things didn't work out and went back to my old one i use the time capsule thing to save everything before but didn't give me photoshop so i physically moved the file and tried to open it but then this error shows up
    Please uninstall and reinstall the product.
    If this problem still occurs, please contact Adobe technical support for help, and mention the error code shown at the bottom of this screen.
    Error: 16
    and when i click the uninstall app on the file it tells me this
    The alias “Uninstall Adobe Photoshop CS6 2” can’t be opened because the original item can’t be found
    and when i click fix alias i click on photoshop and the app just turns into photoshop and i just run in circles
    please help thank you

    Run the cleaner tool and reinstall.
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    Download CS6 products
    Mylenium

  • TS2529 how to fix the error message itunes can't sync apps because it can't determine what apps are installed

    how to fix the error message itunes can't sync apps because it can't determine what apps are installed

    Hi,
    This may be Helpful 
    AMDS for Windows
    http://support.apple.com/kb/TS1567

  • A full development version of labview required to fix the errors.

    When i tried to run my exe file, it gives following error.
    "A subvi is not executeable.A full development version of labview required to fix the errors."
    i do have full version of 6.02.
    Am i missing something something when i built exe?
    any Help will be appreciated.

    Well, here we go again...
    I have seen this error way too many times in my day.
    The problem is you have a bad linkage, or unsaved or compiled VI in your hierarchy when you built the application.
    Open your main, or otherwise open (into memory) ALL VIs in your hierarchy. Then, do a save all from the file menu. This should solve the issue.
    The other reason I have seen this is if you have bad linkage. As there is no real way to tell what your linkage is, you need to go into the hierarchy, select View Full Path in Title and make sure everything is where you think it is. I have often seen this occur even when the application I was building from was in perfect condition. Often times, when the app builder is used, VIs will be called from locations you
    don't expect.
    You have to be VERY careful about developing in a hierarchy. I actually got to a point where I had to even place all the NI VIs into my directory structure.
    Take a careful look at the hierarchy. Chances are the executable is calling the wrong code, or is compiling with the wrong version.
    If in doubt, go to a fresh machine, and move all of your VIs (individually if you have to, or as a .llb preferably) to the new machine and build it from there. Alternatively, you can try doing a save as from your main and select "application distribution" this will resolve any issue with VI locations, except where Dynamic VIs are being used.
    Good luck, 'cause you are going to need it.

  • How i fix the error 1015 for my iphone3g coz my phone i opining

    how i fix the error 1015 for my iphone3g coz my phone i opining and also i can use since i face that problem

    Yes, if it has been jailbroken, then there is probably nothing that you can do and you will never be able to use it, so ditch it and buy a new phone.
    If it's an iPhone 3g, then it is a very old phone anyway and you shoud consider buying a new one.

  • HOW I CAN FIX THE ERROR 69

    HOW I CAN FIX THE ERROR 69

    Hello victoro5961,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    iTunes displays a -69 error when syncing iPod
    http://support.apple.com/kb/ht1210
    Best of luck,
    Mario

  • "VI has error of type 1002288.The full development version of LabVIEW is required to fix the errors"

    Hi,
    I had created an executable in LabVIEW 8.6 on a windows XP 32 bit PC. The application uses some Vision VIs. The executable runs in most of the PCs except one. the PC is a windows 7 64bit. Initially i got the error "Labview Load error code 3: could not load front panel". I fixed this by changing the source file settings in the application builder. Now i am getting the error "VI has error of type 1002288.The full development version of LabVIEW is required to fix the errors" and the exe shows a broken run button.
    But if i build the exe in the same PC i get no errors and it works fine. Moreover i have tested this exe in a different PC with the same configuration, it works there. I have tried reinstalling labview in the PC the problem still persists.
    Solved!
    Go to Solution.

    Hi Rajshekar.
    > Which version of LabVIEW are you using on PC with Win7 64bit? would like to check if there are any issues with LV2009 32bit on 64bit OS..
          - The version of Labview on the win7 64bit PC is also lv8.6 full development system.
    > Do you get the same error on the other PC with same config(Win7) when running the .exe generated using LV 8.6 on WinXP 32bit? just to make sure the problem is with OS or LV..
          - the same problem occured at one more PC with the same configuration. but when i tested in an another PC of the same config it worked i am not able to isolate and decide that the error is based on one particular PC config.
    I have listed the environments in which application ran and how the application was put in to the PC.
    I would also like you to know that i have created an installer for the exe. I am also using NI vision in my application and this is the error "An error occured loading VI 'IMAQ GetImagePixelPtr'. LabVIEW load error code 3: could not load front panel"....and rest is what i said in my previous post
    1. Use the installer to install the application.
    2. just copy the exe created in LV 8.6 into a PC that already has LV development system installed in it
    3. The PCs might either be a blank one with no history of LV installed in them
    4. The PCs might have diffrent versions of LV development systems installed in them (8.2,8.5,8.6,2009)
    All PCs that have LV development system(s) installed in them, was able to run the application except the one with win7 64, where i have tried uninstalling all NI software and use only the installer to install, install LV 8.6 full development system and try runnning the exe, nothing works.
    Thanks

  • How do I fix the "error occurred when attempting to change modules on an I Mac". The solutions on the web are totally confusing to me?

    Does anybody know how to fix the "error occurred when attempting to change modules" on an I Mac??

    http://helpx.adobe.com/lightroom/kb/error-changing-modules-lightroom.html

Maybe you are looking for

  • Runtime Errors  CONVT_NO_NUMBER = IF mode(1) = 'I'.

    Hi all, When creating logical database, runtime errors while saving it. The details as below: "Unable to interpret "I" as a number.    Error in the ABAP Application Program    The current ABAP program "SAPLSEUQ" had to be terminated because    come a

  • Has anyone used BBP_CT_UPD_SCHEMA_MAPPING succesfully?

    Hello All, I was trying to programmatically load/update external category mappings using BADIs like BBP_CT_UPD_SCHEMA_MAPPING.  Has anyone done this sucessfully?  If so, can you provide sample code? Thanks in advance for any assitance. Regards, Dean.

  • N8 upload photo problem

    Hi, I had some problem with my N8 phone and i send it to Nokia service center. They reset tha phone for me and now everything is working fine. But I'm facing a small problem. Earlier my N8 had link on the photo and video browser to upload photos stra

  • DatagramSocket problem !!

    Hi, When I try to close DatagramSocket which is in receive mode gives me following error java.net.SocketException: socket closed         at java.net.PlainDatagramSocketImpl.receive0(Native Method)         at java.net.PlainDatagramSocketImpl.receive(U

  • Using a shutdown script to save files to local sever

    Hello, I am writing a shutdown script which runs when the use shuts their computer down. The goal is to back up some user files to a local sever. I am wondering if the shutdown will be delayed until the file is uploaded to the server. The file is app