473,385 Members | 1,829 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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 1269
Radioflyer651 <Ra***********@discussions.microsoft.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.com>
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

"Radioflyer651" 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.microsoft.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.com>
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
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...
0
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...
5
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...
1
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
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...
5
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...
4
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...
87
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,...
6
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...

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.