473,698 Members | 2,084 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Program works differently after it's installed on a machine.

I've been working on a problem which has me totally confused.

My application is checking a collection of objects to see if they have a
difference in one of it's properties. If it does, it's including a list if
different properties in its print-out. If not, it just prints the property
value of the first item.

Now here's my problem. When I'm running it in the IDE, everything works the
way it should work. (Both in release mode and debug mode.) After I install
the app on a machine (mine or anyone else's) it's printing all of the
objects' values in the collection, even when they are the same.

I've tried to uninstall the app from my machine, and then re-install it.
I've also completely removed those lines of code from the app and tried it
that way, just to check that the new versions are getting installed correctly.

When the App is installed in debug mode, it works correctly. If anyone
could help, I'd GREATLY appreciate it!

Richard Olson
Sep 19 '05 #1
3 1281
Radioflyer651 <Ra***********@ discussions.mic rosoft.com> wrote:
I've been working on a problem which has me totally confused.

My application is checking a collection of objects to see if they have a
difference in one of it's properties. If it does, it's including a list if
different properties in its print-out. If not, it just prints the property
value of the first item.

Now here's my problem. When I'm running it in the IDE, everything works the
way it should work. (Both in release mode and debug mode.) After I install
the app on a machine (mine or anyone else's) it's printing all of the
objects' values in the collection, even when they are the same.

I've tried to uninstall the app from my machine, and then re-install it.
I've also completely removed those lines of code from the app and tried it
that way, just to check that the new versions are getting installed correctly.

When the App is installed in debug mode, it works correctly. If anyone
could help, I'd GREATLY appreciate it!


It would really help if you'd say how this collection of objects is
being created, and what it's being compared with.

Could you post a short but complete program which demonstrates the
problem?

See http://www.pobox.com/~skeet/csharp/complete.html for details of
what I mean by that.

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Sep 19 '05 #2
I wish I did this before I posted, but I had the values rounded to 3 place
decimals when it compared the two. It seemes to work. My only question now
is, why do the values differ when I run the program in windows and in the IDE?

Thanks in advance
Richard

"Radioflyer 651" wrote:
I've been working on a problem which has me totally confused.

My application is checking a collection of objects to see if they have a
difference in one of it's properties. If it does, it's including a list if
different properties in its print-out. If not, it just prints the property
value of the first item.

Now here's my problem. When I'm running it in the IDE, everything works the
way it should work. (Both in release mode and debug mode.) After I install
the app on a machine (mine or anyone else's) it's printing all of the
objects' values in the collection, even when they are the same.

I've tried to uninstall the app from my machine, and then re-install it.
I've also completely removed those lines of code from the app and tried it
that way, just to check that the new versions are getting installed correctly.

When the App is installed in debug mode, it works correctly. If anyone
could help, I'd GREATLY appreciate it!

Richard Olson

Sep 19 '05 #3
Radioflyer651 <Ra***********@ discussions.mic rosoft.com> wrote:
I wish I did this before I posted, but I had the values rounded to 3 place
decimals when it compared the two. It seemes to work. My only question now
is, why do the values differ when I run the program in windows and in the IDE?


Running in debug mode turns off some optimisations. That can affect how
accurately things are stored and compared, often in very surprising
ways.

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Sep 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
1377
by: devesh.agrawal | last post by:
Hi , this program does a segfault in g++3.2 onwards , works with g++2.95 , Any ideas are welcome , basically there is this instruction when compiled with -S option , call *%eax , where the one with 2.95 goes on to execude the given machine code , whereas the one compiled in g++3.2 segfaults. Also if you feel , this is not an appropriate group to post this , I would be obliged if you could pardon me for the mistake and guide me to a...
0
1502
by: Chucker | last post by:
Hi Folks, I got an Auto-Updating Application that is supposed to download all the assemblies needed from a deployment machine when started. Here ist the Code for the Launcher that has to be deployed to the Machine actually running the Code. All other Stuff should be downloaded upon execution time. using System;
5
27695
by: Bryan | last post by:
I am writing a C# program that needs to see if a particular program is installed (it would be listed in the "Add or Remove Programs" list from the Control Panel) and uninstall it. Is there a way to do this?.. Thanks for any help... Bryan
1
1233
by: Samuel | last post by:
Why my Crystal Report form works on the machine I installed VB.NET, not works on the machine without VB.NET? Thanks.
2
341
by: Radioflyer651 | last post by:
I've been working on a problem which has me totally confused. My application is checking a collection of objects to see if they have a difference in one of it's properties. If it does, it's including a list if different properties in its print-out. If not, it just prints the property value of the first item. Now here's my problem. When I'm running it in the IDE, everything works the way it should work. (Both in release mode and...
5
2628
by: Igor | last post by:
Hi! We built VB6 application to work with Reporting Services server. To connect to reporting server has been created a special assembly with .NET VS2003. While we execute our program on local machine, every thing works. But when we put the whole program on network drive, the VB6 program could not create required object from .NET assembly. Nothing we done were not useful to help to solve the problem. Does anybody have idea?
4
1298
by: =?Utf-8?B?UGFycm90?= | last post by:
I am attempting to import a DLL function from a COBOL program using the DLLImport function but I always get an error that says the Specified module (dtonsub.dll) cannot be found. I used the link program to determine if there is a function by the name I am using. I have tried this with both REALIA and Microfocus COBOL programs and get the same error. Can anyone enlightened me on what the problem is? Below is my code. Dave public...
87
3716
by: pereges | last post by:
I have a C program which I created on Windows machine. I have compiled and executed the program on windows machine and it gives me the consistent output every time i run it. for eg. input a = 2, b =3 lets say a sum operation is to be performed, then: output: 5
6
1881
by: John O'Flaherty | last post by:
Hello. I have an ms acess database that I use to track my mp3 files. I have included code that lets me select and play files by invoking an mp3 player (Winamp). This is done by using visual basic command "shell c:\winamp\winamp.exe blah-blah.mp3". It works nicely. I can use this database from a laptop, either by copying the .mdb file to the laptop or by clicking a shortcut that points to the .mdb file on the main machine. The file play...
0
8672
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9156
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9021
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8892
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8860
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7712
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3038
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2323
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.