473,388 Members | 1,286 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,388 software developers and data experts.

Re: Differences between release and debug binaries??

Hi,

I am currently facing exactly the same issue with Visual Studio 2005.
Did you find a way to solve this problem ?

"AntonioSACE" wrote:
Hi George,
unfortunately we alredy made the check you sent and, as you said, we think
that the problem is a bug in VS2008. We'll ask Microsoft to check. Thank you
very much for your time.

"George Ter-Saakov" wrote:
I see now....There are some differences between Debug and Release
versions...
So it's possible that you have a bug in your application which does not
appear in debug....
What is your environment, C#? Cause the differences much greater if you use
Managed/Unmanaged C++

Here are some things for you to look at..

1. Timing... Timing might be different in release mode... So if for example
you rely that something will be done in 10 seconds, in release mode it might
be done much quicker...

2. Multithreading access... If you are sharing variables between threads
then you might be able to get away and have no problem accessing them in
debug mode without properly serializing access to them. But in release mode
it might show up...
Also you said you are using VS 2008... Can you switch to VS 2005? VS 2008 is
still new and may be it's just a simple bug in compiler?
George.

"AntonioSACE" <An*********@discussions.microsoft.comwrote in message
news:E1**********************************@microsof t.com...
Hi George,
thank you for your reply but I think I explained in a bad way the problem.
In fact we recognize that there is an error in the xml. It is truncated at
the end. The strange thing is that if we compile the application in
release
mode we have this problem, but if we compile the application in debug mode
the application works fine and we receive the whole XML. So we are
wondering
that, based on the compilation mode, the application change behaviour!!
Any
ideas on that?
>
"George Ter-Saakov" wrote:
>
>I would examine the actual XML document
>error actually indicates the you have some problem on line 1, character
>344
>I guess you do not have "\r\n" (C#) in your XML documents
>Just capture XML document and open it with Visual Studio... run cursor
>and
>watch status bar.. It shows the position..
>>
>>
>George.
>>
>>
>"AntonioSACE" <An*********@discussions.microsoft.comwrote in message
>news:4B**********************************@microso ft.com...
We have been using two web services from a asp.net app for two years,
then
the solution was ported to VS 2008 and the web services now throw the
following exception:
Error Message:There is an error in XML document (1, 344).
Stack Trace: at
System.Xml.Serialization.XmlSerializer.Deserialize (XmlReader xmlReader,
String encodingStyle, XmlDeserializationEvents events)
at System.Xml.Serialization.XmlSerializer.Deserialize (XmlReader
xmlReader, String encodingStyle)
The weird thing is, if I compile the project with debug enabled,
instead
of
release, everything works fine!
For now we have the web app working in debug mode, but obviously we
need
to
pass soon in release mode because of speed concerns.
Any ideas??
Thanks
>>
>>
>>
Jun 27 '08 #1
0 1720

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

Similar topics

2
by: Daniel | last post by:
Hi, Are there any differences between C# and VB.Net besides syntax? Performance-wise, how do they compare? Thanks, Dan
4
by: | last post by:
Hi, does anyone know what would be the (most common) reasons to get difference answers in VC++.net between running in release and debug ? Thanks, JC
7
by: Srinivasa Rao | last post by:
I have read in one article that when we compile the application in release mode, all the debug classes and properties will be automatically removed from the code. I tried to implement this thing by...
9
by: dee | last post by:
Hi I'm about to upload my site and I have switched to release version. Is that enough or do I still need to disable <compilation defaultLanguage="vb" debug="true" /> the debug="true" in the .pdb...
8
by: Peter van der Veen | last post by:
Hi I've something strange. There is a different when an error occurs in 2 differen project/solutions. In one project when a get an error the debugger stops at the line which causes the error...
5
by: shawn.oda | last post by:
What are the diferences between ms visual c++ compiler and linux c++ compiler? Best regards, shawn.oda@bankarea.com http://www.poweroversoftware.com
10
by: Joe Befumo | last post by:
When I tried debugging for the first time, I pop-up asked me if I wanted to set the project to enable debugging. Now I'm ready to release and can't find anyplace to set the build to 'release'. A...
1
by: TheSteph | last post by:
Hi, Does anybody know what's the difference between the "Debug build" of a C# application and the "Release build" ? In my case, both are 774.144 bytes, and both seems to have the same
6
by: Andrew Rowley | last post by:
I am having trouble getting debug and release builds to work properly with project references using C++ .NET and Visual Studio 2003. I created a test solution, with a basic Windows form C++...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
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...

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.