Solved

VB.net: Debug & Release mode showing different behaviors

Posted on 2003-10-31
4
1,278 Views
Last Modified: 2010-05-18
Hi,
    I am getting different behaviors of my VB.net application in debug and behavior modes. It works in an expected manner in the debug mode, but does not update a few fields in the databse in the Release mode. I cannot isolate the error by debugging as it works fine in the debug mode. Kind of a Schrodinger cat condition. Let me know if you have ever come acrtoss such a situation.
Thanks,
Amber
0
Comment
Question by:kaamchor
  • 2
4 Comments
 
LVL 42

Expert Comment

by:frodoman
ID: 9660727
Right-click on your project in the solution explorer then select 'properties' then click 'Configuration Properties' go through each item and compare both the Debug & Release modes to make sure there aren't any differences.  There shouldn't be, but it can happen.
0
 

Author Comment

by:kaamchor
ID: 9661369
Thanks a lot frodoman for your help, but it did not solve the problem. I guess its a problem with the thrid party software I am working on.
Amber
0
 
LVL 3

Accepted Solution

by:
Bahnass earned 500 total points
ID: 9715715
Hi
1-Do U ever Use

                       #If Debug THEN

                            #End If

in Ur program?

2- It happens sometimes with microsoft to change ORDER of execution of events .
try print out with     debug.write to check which event is done first

3- Can U post more info about BUG
Bahnass
0
 

Author Comment

by:kaamchor
ID: 9715943
Thanks Bahnass for your help. Yes there are places where
#If Debug THEN

#End If
 blocks have been wirtten, but not by me. Yes, now I think that they might be the culprits. Let me take a look at them closey.
Thanks,
Amber
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

937 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

3 Experts available now in Live!

Get 1:1 Help Now