Question

Visual Studio 2005 stops program instead of dedugging on error

Asked by: mbeis

My Visual Studio 2005 suddenly started ending program execution as if it hit an End statement when it encounters a run-time error of any kind. It used to start the debug. Any advice?

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2008-05-30 at 04:41:42ID23444226
Tags

Microsoft

,

Visual Studio

,

2005

,

VB,NET

Topic

Visual Studio

Participating Experts
5
Points
500
Comments
77

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. visual studio....
    hi ! i'm progamming on ms visual studio c. i do a lot of progamming with databases like trees, lists and so on... i was wondering, if during the debugging is there anyway to see the structs and pointers graphiclly (i.e. - to 'actually' see the tree). when a tree gets larger ...
  2. Visual Studio Debuging?
    I have a class I want to copy an array into that class So I typeOfArray LocalCopy= (typeOfArray *) malloc ( ( size_t ) ( typeOfArray )*count ); then memcpy ( LocalCopy , pointerToStartOfRemoteCopy , ( sizeof ( typeOfArray ) * count ) ); I think im copying it correctly, but...
  3. Remote debug, Visual Studios
    I need to remote debug Visual Studios build on one computer and run on the other and have full debug a walkthru would be nice
  4. visual studio has encountered  a problem and then restart
    I have installed Microsoft Visual Studio on my computer..I get following error:Microsoft viusual studio has encountered a problem and needs to close and then restart microsoft visual studio when I create a new project(console application or windows application) in visual C#.....
  5. Visual Studio debugging issue
    Hello Experts, My Visual Studio has an issue since this morning. When I create a new WebApplication, and click Debug->Start debugging (F5) it says: The operation could not be completed. The menu item Start without debugging works. Complete reinstall did not solve the prob...
  6. Visual Studio Ends Debugging on Errors
    Hi Experts, I have been using Visual Studio 2008 for a while now and suddenly when debugging any project, if there is an unhandles exception, debugging just ends. It used to pause and highlight the line that threw the exception, now it just ends the application. I have re-i...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: jpaulinoPosted on 2008-05-30 at 05:11:58ID: 21676959

Go to Tools - Options - Show All Settings - Debugging - General and then check the Enable The Exception Assistant

 

by: mbeisPosted on 2008-05-30 at 05:23:50ID: 21677032

It is already enabled.

 

by: jpaulinoPosted on 2008-05-30 at 06:12:28ID: 21677372

Ok, then try to remove and run the app and then add it again.

 

by: jpaulinoPosted on 2008-05-30 at 06:14:01ID: 21677380

Ok, then try to remove and run the app and then add it again.

 

by: mbeisPosted on 2008-05-30 at 06:49:50ID: 21677683

Not understood. Can you clairfy?

 

by: jpaulinoPosted on 2008-05-30 at 06:51:59ID: 21677703

I mean remove the check on "Enable The Exception Assistant" and then run you application. Then check it again an try.

The only thing I know that makes the program break like in run-time is this property.

 

by: mbeisPosted on 2008-05-30 at 08:08:05ID: 21678477

Tried it. Still the same.

 

by: jpaulinoPosted on 2008-05-31 at 09:32:55ID: 21684209

Well I don't know another way to do that.

Try to reinstall the VS

 

by: mbeisPosted on 2008-06-02 at 04:37:27ID: 21691073

I would really like to avoid reinstalling. Anybody have suggestions?

 

by: mbeisPosted on 2008-06-02 at 05:34:51ID: 21691371

I just installed VS 2008, converted the project. Same thing is happening! Has anyone seen that before?

 

by: jpaulinoPosted on 2008-06-02 at 06:06:03ID: 21691563

But it breaks at a specific point ? Can you show the code where it breaks ?

 

by: mbeisPosted on 2008-06-02 at 06:13:14ID: 21691616

Any error, but I know this one happens be on an attempt to write to the database. If I change a datatype or cause a null error anywhere in the program, the same thing happens when the execution gets to that point.

 

by: mbeisPosted on 2008-06-02 at 06:51:44ID: 21691939

HELP! I am getting desperate here. I have a deadline and no way to finish my project. How can I add more point to get some attention?

 

by: jpaulinoPosted on 2008-06-02 at 07:17:34ID: 21692158

Can you show the code ?

 

by: mbeisPosted on 2008-06-02 at 07:30:58ID: 21692284

It is now only on this SqlCommand for some reason.

Dim cmd2 As New SqlCommand("UPDATE [Contacts] SET [Password]='" & ReturnedPass & "', [Revised]=getUTCdate() WHERE [ID]='" & ID & "'", Main.SvrCn)
                        cmd2.ExecuteNonQuery()

                                              
1:
2:

Select allOpen in new window

 

by: jpaulinoPosted on 2008-06-02 at 07:42:38ID: 21692401

What's getUTCdate() ?

This is from the stored procedure ?

 

by: mbeisPosted on 2008-06-02 at 07:48:42ID: 21692459

SQL Server built-in function. Return datetime value for UTC time.

 

by: jpaulinoPosted on 2008-06-02 at 08:16:30ID: 21692738

And have you implemented Try ... Catch block to get the error ?

Also try one thing:

Project menu > Properties > Application tab > View Application Events

Then:

Private Sub MyApplication_UnhandledException(ByVal sender As Object, _
            ByVal e As Microsoft.VisualBasic.ApplicationServices.UnhandledExceptionEventArgs) _
            Handles Me.UnhandledException
 
            MsgBox(e.Exception.Message)
 
        End Sub

 

by: mbeisPosted on 2008-06-03 at 06:38:45ID: 21700243

The Application Event is completely empty. Placing a sub generates this:

Statement is not valid in a namespace.

 

by: jpaulinoPosted on 2008-06-03 at 06:42:38ID: 21700281

In the application events try to select it from the combobox's under MyApplication.

And how about the Try ... Catch block ? have you try it?

 

by: mbeisPosted on 2008-06-03 at 06:48:11ID: 21700352

Try Catch works fine. I just use the exceptions in my initial desing to find out where to add them in the final release. I would hate to have to add try catch in every procedure.

The two combo's have General and Declarations. Thats it.

 

by: mbeisPosted on 2008-06-03 at 06:55:12ID: 21700425

I added the namespace from another project. Now I could place the sub, but it did not change anything. Even with that unhandledexceptions, it still just quits.

 

by: jpaulinoPosted on 2008-06-03 at 07:14:04ID: 21700626

>> I would hate to have to add try catch in every procedure.

But this is a good practice. I always do that in critical code places like database or file handle.

Did you get the error and solve it ?

 

by: mbeisPosted on 2008-06-03 at 07:19:55ID: 21700679

This is ANY litlle bug, not critical or where a user may have entered something wrong.

Right now I am chasing a bug that makes the program quit when you click on a certain tab in a form. Some textboxes have been renamed and changed. I am looking thru hundreds of lines to find exactly where the bug is. With the exception, it would have been fixed in under 30 sec.

 

by: mbeisPosted on 2008-06-03 at 07:28:08ID: 21700752

Wierd. If I build it and run it outside VS, the UnhandledException sub works. It still does not tell me where it happened like VS did a week ago when making software was still profitabe for me....

I miss the happy VB6 days so much. Back when working after midnight menat to solving the customers problem rather than Microsofts.

 

by: jpaulinoPosted on 2008-06-03 at 07:36:57ID: 21700832

TRy to use the innerexception instead of the message. You can get the line using Err.Number

 

by: mbeisPosted on 2008-06-03 at 08:20:10ID: 21701280

First try gave me a blank msgbox. Second try it also just threw me out of the program. No box at all.

 

by: jpaulinoPosted on 2008-06-03 at 08:25:48ID: 21701329

>> Second try it also just threw me out of the program. No box at all.

The second you used in the exception ?

 Catch ex As Exception
      msgbox(Err.Number)
 End Try

Just one more crazy thing! Can you create a new project and copy the files from that application to the right place (just forms, classes, modules, datasets). Then in the Menu project select "Show all files" and include then in your application.

I'm getting out of ideas! Is the application to big or can you upload it (database also) ? you can remove the unnecessary stuff.

 

by: SanclerPosted on 2008-06-04 at 01:34:46ID: 21707949

Is this behaviour specific to this solution/project?  Or if you create a completely new project, containing something very simple but including an error, do you get the same behaviour in that, too?  

Try a new project, one form, one button, this code

Public Class Form1
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim a As Integer = 0
        Dim b As Integer = 6
        Dim c As Integer = b / a
    End Sub
End Class

If that just ends, save the solution, go to the project folder, open the .vbproj file with NotePad and paste the contents back here.  Then, rather than us guessing at settings etc, we will have a known output from your system to compare with what our systems produce for the same thing.

If that behaves properly (i.e. breaks at the offending line) then you can either post the contents of the .vbproj file for the "bad" project here, or yourself compare the settings as between the "good", new project file and the "bad", old one.

I am not sure about this, but my thinking is that - even if the problem arises from a general setting rather than a specific Application setting - it should be reflected somewhere in the file which controls the specific build/s.

Roger

 

by: jpaulinoPosted on 2008-06-04 at 02:04:07ID: 21708109

Thanks for the help Roger!

I'm getting out of ideas.

 

by: SanclerPosted on 2008-06-04 at 03:22:22ID: 21708492

There's a thread here which seems consider a whole range of possibilities which MIGHT be relevant here.  Warning: it's long and (I found) a bit confusing.  But it goes over so much ground that I imagine the answer for this case is probably in there somewhere.

http://forums.msdn.microsoft.com/en-US/vsdebug/thread/11d06eb7-2c54-4135-86a2-ac21a7df2bfe#page:1

Roger

 

by: mbeisPosted on 2008-06-04 at 04:51:07ID: 21709034

Tried the div by zero. It was handled the right way by VS. This must be a setting in the applicaion, then.

jpaulino: I have not tried your suggestion to move it all to a new project yet. I have some deadlines that prevent me from experimenting too much right now.

 

by: jpaulinoPosted on 2008-06-04 at 05:07:01ID: 21709133

But that will only take a few minutes! Don't forget to backup first.

 

by: SanclerPosted on 2008-06-04 at 05:23:49ID: 21709242

I think it might be a good idea to post the .vbproj file contents.  You could either do it from notepad with a copy and paste, or rename it to .txt, or zip it up.  It's just that, so far as I know, the "Attach File" facility won't accept a .vbproj extension, and it shouldn't be large enough, on its own, to warrant uploading to http://www.ee-stuff.com

Roger

 

by: mbeisPosted on 2008-06-04 at 05:30:53ID: 21709300

vbproj attached as code snippet.

<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>9.0.21022</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{84BC992F-83B6-4C48-8B5F-E1FBE6A717E2}</ProjectGuid>
    <OutputType>WinExe</OutputType>
    <StartupObject>CDTsoftware.My.MyApplication</StartupObject>
    <RootNamespace>CDTsoftware</RootNamespace>
    <AssemblyName>CDTsoftware</AssemblyName>
    <MyType>WindowsForms</MyType>
    <IsWebBootstrapper>true</IsWebBootstrapper>
    <ApplicationIcon>ExhIco.ico</ApplicationIcon>
    <FileUpgradeFlags>
    </FileUpgradeFlags>
    <OldToolsVersion>2.0</OldToolsVersion>
    <UpgradeBackupLocation>
    </UpgradeBackupLocation>
    <PublishUrl>http://localhost/CDTsoftware/</PublishUrl>
    <Install>true</Install>
    <InstallFrom>Web</InstallFrom>
    <UpdateEnabled>true</UpdateEnabled>
    <UpdateMode>Foreground</UpdateMode>
    <UpdateInterval>7</UpdateInterval>
    <UpdateIntervalUnits>Days</UpdateIntervalUnits>
    <UpdatePeriodically>false</UpdatePeriodically>
    <UpdateRequired>false</UpdateRequired>
    <MapFileExtensions>true</MapFileExtensions>
    <ApplicationRevision>0</ApplicationRevision>
    <ApplicationVersion>1.0.1.0</ApplicationVersion>
    <UseApplicationTrust>false</UseApplicationTrust>
    <BootstrapperEnabled>true</BootstrapperEnabled>
    <ManifestCertificateThumbprint>4CDD62878BB5B4E1F0FA00C3F74DECE8E74A3C1B</ManifestCertificateThumbprint>
    <ManifestKeyFile>CDTsoftware_TemporaryKey.pfx</ManifestKeyFile>
    <GenerateManifests>true</GenerateManifests>
    <SignManifests>true</SignManifests>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <DefineDebug>true</DefineDebug>
    <DefineTrace>true</DefineTrace>
    <OutputPath>bin\Debug\</OutputPath>
    <DocumentationFile>CDTsoftware.xml</DocumentationFile>
    <NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
    <RunCodeAnalysis>false</RunCodeAnalysis>
    <CodeAnalysisRules>
    </CodeAnalysisRules>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <DefineDebug>false</DefineDebug>
    <DefineTrace>true</DefineTrace>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release\</OutputPath>
    <DocumentationFile>CDTsoftware.xml</DocumentationFile>
    <NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="adodb, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    <Reference Include="System" />
    <Reference Include="System.Data" />
    <Reference Include="System.Deployment" />
    <Reference Include="System.Drawing" />
    <Reference Include="System.Web.Services" />
    <Reference Include="System.Windows.Forms" />
    <Reference Include="System.Xml" />
  </ItemGroup>
  <ItemGroup>
    <Import Include="Microsoft.VisualBasic" />
    <Import Include="System" />
    <Import Include="System.Collections" />
    <Import Include="System.Collections.Generic" />
    <Import Include="System.Data" />
    <Import Include="System.Drawing" />
    <Import Include="System.Diagnostics" />
    <Import Include="System.Windows.Forms" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="ApplicationEvents.vb" />
    <Compile Include="ChimneyAdvanced.Designer.vb">
      <DependentUpon>ChimneyAdvanced.vb</DependentUpon>
    </Compile>
    <Compile Include="ChimneyAdvanced.vb">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="Classes\Common.vb" />
    <Compile Include="Classes\Boiler.vb" />
    <Compile Include="Classes\Accessory.vb" />
    <Compile Include="Classes\FanControl.vb" />
    <Compile Include="Classes\Print.vb" />
    <Compile Include="Classes\PrintSection.vb" />
    <Compile Include="Classes\PrintTable.vb" />
    <Compile Include="Classes\ServerConnection.vb" />
    <Compile Include="Classes\Stove.vb" />
    <Compile Include="Classes\Fan.vb" />
    <Compile Include="Classes\SingleCalculation.vb" />
    <Compile Include="Classes\FittingExt.vb" />
    <Compile Include="Classes\Fireplace.vb" />
    <Compile Include="Classes\Fitting.vb" />
    <Compile Include="Classes\Fuel.vb" />
    <Compile Include="Classes\Insulation.vb" />
    <Compile Include="Classes\LineChart.vb" />
    <Compile Include="Classes\LineEntry.vb" />
    <Compile Include="Classes\Liner.vb" />
    <Compile Include="Classes\modData.vb" />
    <Compile Include="Classes\SelectedVent.vb" />
    <Compile Include="Classes\VentShape.vb" />
    <Compile Include="Classes\UserProfile.vb" />
    <Compile Include="Classes\VentData.vb" />
    <Compile Include="Classes\XL8module.vb" />
    <Compile Include="Initial.Designer.vb">
      <DependentUpon>Initial.vb</DependentUpon>
    </Compile>
    <Compile Include="Initial.vb">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="Login.Designer.vb">
      <DependentUpon>Login.vb</DependentUpon>
    </Compile>
    <Compile Include="Login.vb">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="NewPassword.Designer.vb">
      <DependentUpon>NewPassword.vb</DependentUpon>
    </Compile>
    <Compile Include="NewPassword.vb">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="Text.Designer.vb">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>Text.resx</DependentUpon>
    </Compile>
    <Compile Include="StoveAdvanced.Designer.vb">
      <DependentUpon>StoveAdvanced.vb</DependentUpon>
    </Compile>
    <Compile Include="StoveAdvanced.vb">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="CustomerDetails.Designer.vb">
      <DependentUpon>CustomerDetails.vb</DependentUpon>
    </Compile>
    <Compile Include="CustomerDetails.vb">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="FireplaceAdvanced.Designer.vb">
      <DependentUpon>FireplaceAdvanced.vb</DependentUpon>
    </Compile>
    <Compile Include="FireplaceAdvanced.vb">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="SingleCalc.Designer.vb">
      <DependentUpon>SingleCalc.vb</DependentUpon>
    </Compile>
    <Compile Include="SingleCalc.vb">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="Classes\ListViewItemComparer.vb" />
    <Compile Include="Images.Designer.vb">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>Images.resx</DependentUpon>
    </Compile>
    <Compile Include="MainMenu.vb">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="MainMenu.Designer.vb">
      <DependentUpon>MainMenu.vb</DependentUpon>
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="Main.Designer.vb">
      <DependentUpon>Main.vb</DependentUpon>
    </Compile>
    <Compile Include="Main.vb">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="My Project\AssemblyInfo.vb" />
    <Compile Include="My Project\Application.Designer.vb">
      <AutoGen>True</AutoGen>
      <DependentUpon>Application.myapp</DependentUpon>
    </Compile>
    <Compile Include="My Project\Resources.Designer.vb">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>Resources.resx</DependentUpon>
    </Compile>
    <Compile Include="My Project\Settings.Designer.vb">
      <AutoGen>True</AutoGen>
      <DependentUpon>Settings.settings</DependentUpon>
      <DesignTimeSharedInput>True</DesignTimeSharedInput>
    </Compile>
    <Compile Include="Classes\MyList.vb" />
    <Compile Include="Products.Designer.vb">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>Products.resx</DependentUpon>
    </Compile>
    <Compile Include="Project.Designer.vb">
      <DependentUpon>Project.vb</DependentUpon>
    </Compile>
    <Compile Include="Project.vb">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="Template.Designer.vb">
      <DependentUpon>Template.vb</DependentUpon>
    </Compile>
    <Compile Include="Template.vb">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="Classes\VentSection.vb" />
  </ItemGroup>
  <ItemGroup>
    <EmbeddedResource Include="ChimneyAdvanced.resx">
      <SubType>Designer</SubType>
      <DependentUpon>ChimneyAdvanced.vb</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Initial.resx">
      <SubType>Designer</SubType>
      <DependentUpon>Initial.vb</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Login.resx">
      <SubType>Designer</SubType>
      <DependentUpon>Login.vb</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="NewPassword.resx">
      <SubType>Designer</SubType>
      <DependentUpon>NewPassword.vb</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Text.resx">
      <SubType>Designer</SubType>
      <CustomToolNamespace>My.Resources</CustomToolNamespace>
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>Text.Designer.vb</LastGenOutput>
    </EmbeddedResource>
    <EmbeddedResource Include="StoveAdvanced.resx">
      <DependentUpon>StoveAdvanced.vb</DependentUpon>
      <SubType>Designer</SubType>
    </EmbeddedResource>
    <EmbeddedResource Include="CustomerDetails.resx">
      <SubType>Designer</SubType>
      <DependentUpon>CustomerDetails.vb</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="FireplaceAdvanced.resx">
      <SubType>Designer</SubType>
      <DependentUpon>FireplaceAdvanced.vb</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="SingleCalc.resx">
      <SubType>Designer</SubType>
      <DependentUpon>SingleCalc.vb</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Images.resx">
      <SubType>Designer</SubType>
      <CustomToolNamespace>My.Resources</CustomToolNamespace>
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>Images.Designer.vb</LastGenOutput>
    </EmbeddedResource>
    <EmbeddedResource Include="MainMenu.da.resx">
      <SubType>Designer</SubType>
      <DependentUpon>MainMenu.vb</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="MainMenu.resx">
      <SubType>Designer</SubType>
      <DependentUpon>MainMenu.vb</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Main.resx">
      <SubType>Designer</SubType>
      <DependentUpon>Main.vb</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="My Project\Resources.resx">
      <Generator>VbMyResourcesResXFileCodeGenerator</Generator>
      <LastGenOutput>Resources.Designer.vb</LastGenOutput>
      <CustomToolNamespace>My.Resources</CustomToolNamespace>
      <SubType>Designer</SubType>
    </EmbeddedResource>
    <EmbeddedResource Include="Products.resx">
      <SubType>Designer</SubType>
      <CustomToolNamespace>My.Resources</CustomToolNamespace>
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>Products.Designer.vb</LastGenOutput>
    </EmbeddedResource>
    <EmbeddedResource Include="Project.resx">
      <SubType>Designer</SubType>
      <DependentUpon>Project.vb</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Template.resx">
      <SubType>Designer</SubType>
      <DependentUpon>Template.vb</DependentUpon>
    </EmbeddedResource>
  </ItemGroup>
  <ItemGroup>
    <None Include="app.config" />
    <None Include="My Project\Application.myapp">
      <Generator>MyApplicationCodeGenerator</Generator>
      <LastGenOutput>Application.Designer.vb</LastGenOutput>
    </None>
    <None Include="My Project\Settings.settings">
      <Generator>SettingsSingleFileGenerator</Generator>
      <CustomToolNamespace>My</CustomToolNamespace>
      <LastGenOutput>Settings.Designer.vb</LastGenOutput>
    </None>
  </ItemGroup>
  <ItemGroup>
    <Content Include="ExhIco.ico" />
    <Content Include="local.mdb">
    </Content>
    <None Include="CDTsoftware_TemporaryKey.pfx" />
    <None Include="Resources\FPfull.gif" />
    <None Include="Resources\ThreeSided125.gif" />
    <None Include="Resources\SeeThru125.gif" />
    <None Include="Resources\Corner125.gif" />
    <None Include="Resources\FP125.gif" />
    <None Include="Resources\Boiler125.gif" />
    <None Include="Resources\Stove125.gif" />
    <None Include="Resources\Symbol-Information.gif" />
    <None Include="Resources\Server.gif" />
    <None Include="Resources\Locker.png" />
    <None Include="Resources\Login.png" />
    <None Include="Resources\background 1 calcprogram copy.png" />
    <None Include="Resources\Background_Trans.gif" />
    <None Include="Resources\login background blank.png" />
    <None Include="Resources\HourGlass.gif" />
    <None Include="Resources\Splash.jpg" />
    <None Include="Resources\StatRed.gif" />
    <None Include="Resources\StatGreen.gif" />
    <None Include="Resources\StatBlue.gif" />
    <None Include="Resources\StatYellow.gif" />
    <None Include="Resources\greenlight.gif" />
    <None Include="Resources\check_accessories.gif" />
    <None Include="Resources\REPAFB140x40.gif" />
    <None Include="Resources\EW4040x40.gif" />
    <None Include="Resources\EFC151640x40.gif" />
    <None Include="Resources\EFC3540x40.gif" />
    <None Include="Resources\EFC2540x40.gif" />
    <None Include="Resources\EFC2140x40.gif" />
    <None Include="Resources\EFC1840x40.gif" />
    <None Include="Resources\EBC2040x40.gif" />
    <None Include="Resources\REPAFB240x40.gif" />
    <None Include="Resources\ProjectList.gif" />
    <None Include="Resources\FP6.gif" />
    <None Include="Resources\FP5.gif" />
    <None Include="Resources\FP4.gif" />
    <None Include="Resources\FP3.gif" />
    <None Include="Resources\FP2.gif" />
    <None Include="Resources\FP1.gif" />
    <None Include="Resources\Stove1.gif" />
    <None Include="Resources\exhausto-cdt.png" />
    <None Include="Resources\Stove.gif" />
    <None Include="Resources\NoImage40x40.gif" />
    <None Include="Resources\RSV40x40.gif" />
    <None Include="Resources\rs40x40.gif" />
    <None Include="Resources\Fireplace.gif" />
    <None Include="Resources\VentFan.gif" />
    <None Include="Resources\FitNone.gif" />
    <None Include="Resources\Adjacent.gif" />
    <None Include="Resources\TermSidewall.gif" />
    <None Include="Resources\TermOverBack.gif" />
    <None Include="Resources\TermUnderBack.gif" />
    <None Include="Resources\Placement.gif" />
    <None Include="Resources\SquRec.gif" />
    <None Include="Resources\Oval.gif" />
    <None Include="Resources\Diameter.gif" />
    <None Include="Resources\SectionDetails.gif" />
    <None Include="Resources\LHdetails.gif" />
    <None Include="Resources\chart.gif" />
    <None Include="Resources\ChimneyTop.gif" />
    <None Include="Resources\StepRed.gif" />
    <None Include="Resources\StepInc.gif" />
    <None Include="Resources\ElbowStep.gif" />
    <None Include="Resources\ElbowRound.gif" />
    <None Include="Resources\Elbow60.gif" />
    <None Include="Resources\Bend.gif" />
    <None Include="Resources\90tee.gif" />
    <None Include="Resources\45tee.gif" />
    <None Include="Resources\Tapered.gif" />
    <None Include="Resources\Test.gif" />
  </ItemGroup>
  <ItemGroup>
    <BootstrapperPackage Include="Microsoft.Net.Framework.2.0">
      <Visible>False</Visible>
      <ProductName>.NET Framework 2.0 %28x86%29</ProductName>
      <Install>true</Install>
    </BootstrapperPackage>
    <BootstrapperPackage Include="Microsoft.Net.Framework.3.0">
      <Visible>False</Visible>
      <ProductName>.NET Framework 3.0 %28x86%29</ProductName>
      <Install>false</Install>
    </BootstrapperPackage>
    <BootstrapperPackage Include="Microsoft.Net.Framework.3.5">
      <Visible>False</Visible>
      <ProductName>.NET Framework 3.5</ProductName>
      <Install>false</Install>
    </BootstrapperPackage>
  </ItemGroup>
  <Import Project="$(MSBuildBinPath)\Microsoft.VisualBasic.targets" />
  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
       Other similar extension points exist, see Microsoft.Common.targets.
  <Target Name="BeforeBuild">
  </Target>
  <Target Name="AfterBuild">
  </Target>
  -->
</Project>

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
265:
266:
267:
268:
269:
270:
271:
272:
273:
274:
275:
276:
277:
278:
279:
280:
281:
282:
283:
284:
285:
286:
287:
288:
289:
290:
291:
292:
293:
294:
295:
296:
297:
298:
299:
300:
301:
302:
303:
304:
305:
306:
307:
308:
309:
310:
311:
312:
313:
314:
315:
316:
317:
318:
319:
320:
321:
322:
323:
324:
325:
326:
327:
328:
329:
330:
331:
332:
333:
334:
335:
336:
337:
338:
339:
340:
341:
342:
343:
344:
345:
346:
347:
348:
349:
350:
351:
352:
353:
354:
355:
356:
357:
358:
359:
360:
361:
362:
363:
364:
365:
366:
367:
368:
369:
370:
371:
372:
373:
374:
375:
376:
377:
378:
379:
380:
381:
382:
383:
384:
385:
386:
387:
388:
389:
390:
391:
392:
393:
394:
395:
396:
397:
398:
399:
400:
401:
402:
403:
404:
405:

Select allOpen in new window

 

by: SanclerPosted on 2008-06-04 at 07:23:06ID: 21710393

Thanks.  Unfortunately, I can't see anything odd about that at all.  It is, so far as I can see, identical in all "build-significant" respects (that is, leaving aside references to project-specific items, etc) to what works OK for me.

I think it unlikely, because even if this were the case I would not expect the application just to End, but have you checked that the Debug build configuration hasn't got set to Release by accident?  You can check that either in the Configuration Manager or by opening the .sln file and looking under GlobalSection(ProjectConfigurationPlatforms).

Apart from that, I am out of ideas, I'm afraid.  It does seem - from the link I posted earlier - that all sorts of unexpected factors can affect debugging behaviour.  But as I have no personal practical experience of the problem, and I've exhausted my limited theoretical knoweldge on the topic, I'll have to leave it at that.

Good luck with it.

Roger

 

by: raterusPosted on 2008-06-04 at 07:24:16ID: 21710404

I read your question and recalled I had the same issue and I just learned to deal with it.

I got to investigating the first suggestion and knew I could really benefit from this "Exception assistant", and realized this feature only works for uncaught exceptions.

I was catching all exceptions and emailing an error, which is why I never saw it.  Once I commented out the "Catch" part of my application, the exception assistant worked fine!

Perhaps this may be of use to you?

 

by: ChaosianPosted on 2008-06-04 at 07:28:11ID: 21710447

>> Wierd. If I build it and run it outside VS, the UnhandledException sub works.

FYI: This is a known issue. I *think* the decision was made to do this in order to make debugging uncaught exceptions easier while running from the IDE.

I see Roger has already made my suggestion -- it sounds like you're not running in debug mode. This would explain why you're not getting a decent stack trace for debugging -- you need the debug symbols to see line numbers rather than just method names of where the code failed.

 

by: mbeisPosted on 2008-06-04 at 07:31:33ID: 21710484

I use the exception assistant to find out where I may have obvious errors before I even place try catch, so that is not the case. The last thing I want is to have the program ignore if I made a wrong object reference. Right now the program execution just stops as if you hit an end statement. That does not help me at all and now I can guessing where the error is. Before, VS came up and said "here"

 

by: jpaulinoPosted on 2008-06-04 at 08:20:10ID: 21710990

I have a project (my current) that the MyApplication events where not available. I tried everything without any results.

I have created a new project, copy the forms, classes, modules and datasets, build it and start working fine. I couldn't discover the problem but this walkaround solve it.

 

by: jpaulinoPosted on 2008-06-04 at 08:47:38ID: 21711271

Just one more thing ... VS stores on the disk (Documents and Settings/username) the temporary files for the project. Sometimes this tmp files could cause problems to original project.

I'm not 100% shure about this but you can also try it.

 

by: AgariciPosted on 2008-06-05 at 01:32:25ID: 21717266

you can try disabling the "just my code" in tools/options/debugging
if that does not work, you can try just-in-time debugging - also from tools/options/debugging/just-in-time. if you enable this, you can start your app stand-alone and when an unhandled exception occurs, VS will present you with a dialog to debug the problem.

hth,
A.

 

by: mbeisPosted on 2008-06-05 at 07:07:42ID: 21719548

There must be a way to restore the regular an very useful exception handler in VS. I started moving all the files, classes etc. into a new project. What a disaster. I am still trying to even make the first form appear without useless error codes from VS.

I appreciate all the workarounds that you guys suggest. It almost appear normal that these things happen in VS and people are getting used to unexplainable Microsoft errors that people have to get creative to resolve.

 

by: raterusPosted on 2008-06-05 at 07:15:57ID: 21719675

Have you tried a new project, with no code and a simple like this (below) to see if the exception assistant pops up?

Throw New ApplicationException("blah")

If it does, then you know it's a problem with your current project, code or setup.  If it doesn't, then it's probably something to do with visual studio.

 

by: mbeisPosted on 2008-06-05 at 07:22:58ID: 21719760

I have a June 20th deadline that is creeping up on me. I have almost messed with this for a week now and nothing. Is there anybody who know VS inside and out that would be willing to take a look at this thru phone and remote assist? Cash will be offered if the point are not enough. Yes, I am desperate.

This is the only project where this is happening. Starting a new project and throwing exceptions works fine.

 

by: mbeisPosted on 2008-06-05 at 07:38:04ID: 21719968

How do I increase the point, then?

 

by: mbeisPosted on 2008-06-05 at 07:40:37ID: 21720002

Oh, no support sessions either. How do I cancel my monthly service, then? If you read the thread, you can see that this is going in circles.

 

by: jpaulinoPosted on 2008-06-05 at 07:43:57ID: 21720044

As I already post it before:

"I'm getting out of ideas! Is the application to big or can you upload it (database also) ? you can remove the unnecessary stuff."

I'm shure that I or other expert will try to help you. As you know it's not easy to find a decente solution for this problems without the code.

 

by: mbeisPosted on 2008-06-05 at 07:50:01ID: 21720136

jpaulino: I have a non-diclosure agreement with the client that prevents me from uploading the source code. A remote assist would have been the perfect solution but that is appearently agains EE policy. Do you happen to know any forum that allows that?

 

by: raterusPosted on 2008-06-05 at 07:52:10ID: 21720166

I would venture to say at this point this question is going in circles because you are not responding to all experts that are trying to help you.  I for one have proposed (in my opinion) two good concepts when dealing with the exception assistant, and you have not once responded specifically to my suggestion, leading me to believe you either didn't read it or you never tried it out?

 

by: mbeisPosted on 2008-06-05 at 08:00:33ID: 21720294

raterus: If you look further back you will see that a new project does not create the same problem. Read >> This is the only project where this is happening. Starting a new project and throwing exceptions works fine. << from earlier reply.

I use the exception as a part of my work to develop and debug. I guess that is one handicap when you come from VB6. Besides that, the Unhandledexceptions sub for the application does not work either.

 

by: raterusPosted on 2008-06-05 at 08:08:38ID: 21720401

What if on the first line of Form_Load in your main form, you put a statement like
Throw New ApplicationException("blah")

Do you see the exception assistant?  If not, you should be able to set a breakpoint on this statement, step into the procedure and at least debug to figure out what code is catching your exceptions?

 

by: mbeisPosted on 2008-06-05 at 08:19:02ID: 21720522

That works fine in the MDI form, but not in any of the children i tried.

 

by: AgariciPosted on 2008-06-05 at 08:22:29ID: 21720562

another idea: go to Debug/exception dialog (or pressing Ctrl-alt-E) and enable all exceptions from there (you should have a column saying 'Thrown' check everything on that column. you should get more exceptions than you desire ;)

hth,
A.

 

by: raterusPosted on 2008-06-05 at 08:38:58ID: 21720776

Ok, then there is something in your child forms that is catching that exception.  Put that statement to run in a child form, put a breakpoint on the statement, and follow the execution after it's raised.

 

by: mbeisPosted on 2008-06-05 at 08:51:13ID: 21720912

'CDTsoftware.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'CDTsoftware.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_32\System.Transactions\2.0.0.0__b77a5c561934e089\System.Transactions.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'CDTsoftware.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'CDTsoftware.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.Wrapper.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.


Is 'Just My Code' supposed to be enabled?

 

by: mbeisPosted on 2008-06-05 at 10:06:57ID: 21721700

Anyone, is it normal that 'Just My Code' is enabled in VS?

 

by: raterusPosted on 2008-06-05 at 10:11:24ID: 21721752

I believe so, I started to debug a project of mine and noticed the same output.

 

by: mbeisPosted on 2008-06-05 at 10:14:28ID: 21721779

How can I follow the execution further when execution simply stops as if an End statement was encountered?

 

by: raterusPosted on 2008-06-05 at 10:16:10ID: 21721800

You need to set a breakpoint in your code before it crashes and then step through the code using the debugger.

 

by: mbeisPosted on 2008-06-05 at 10:19:54ID: 21721833

If I apply a breakpoint and select 'Step into process', it dies right there and I am back in VS.

 

by: raterusPosted on 2008-06-05 at 10:28:34ID: 21721906

well if that's the problem statement, wrap it in a try/catch and output the error.

Try
  SomeRottenFunction() '<-- you had set the breakpoint here?
Catch ex as Exception
  MsgBox(ex.ToString)
End Try

 

by: mbeisPosted on 2008-06-05 at 10:45:02ID: 21722072

Try Catch works fine!

It is when I don't use it and rely on the one that VS should send back. As mentioned some posting ago, I normally write the code and then use the exception handler to find where the try catch go because tthe program is unable to handle the unexpected conditions.

Yes, that was where the breakpoint was.

 

by: raterusPosted on 2008-06-05 at 10:48:56ID: 21722112

Right, then I'm out of ideas, sorry.

If you are truly willing to pay $$ for a solution, Microsoft will certainly be willing to take it to open a trouble ticket with them.

 

by: AgariciPosted on 2008-06-05 at 11:27:24ID: 21722508

did you try the 'exceptions' dialog - enabling all on thrown column? i realy beleive that it's not stopping into the debugger because you have some try-catch and the exception is handled somewhere. if you enable the exceptions from the exception dialog, it should stop even if the exception it's handled.
if the code does not crash in your code, the you have to disable just my code.

hth,
A.

 

by: mbeisPosted on 2008-06-06 at 03:31:29ID: 21727673

Here is a status on the situation for those who are interested. Microsoft is really scratching their heads on this one. The program has two database connections, one OleDB and a SQLclient for a remote server. Both of them work fine, but once you have had the SQL connection open, it kills the debugger in VS. Even if you close and dispose. Remove the .open statement and everything works fine in the entire application. MS is now analyzing a memory dump to see why.

Any comments?

 

by: AgariciPosted on 2008-06-06 at 03:52:34ID: 21727775

which of the connections are causing the problem? oledb or sql?

 

by: AgariciPosted on 2008-06-06 at 03:53:11ID: 21727777

do you have a link for us to the support case or something?

 

by: mbeisPosted on 2008-06-06 at 03:53:50ID: 21727783

SQL. You can open and close the OleDB one all day long.

 

by: mbeisPosted on 2008-06-06 at 04:00:04ID: 21727811

I should be getting the answer from MS this afternoon Eastern time. I will post everything here as it comes in. The case has sensitive information such as SQL server login, so I need to go thru everything before publishing.

 

by: mbeisPosted on 2008-06-11 at 08:58:43ID: 21761438

Problem solved. A process called bmnet.dll (Byte mobile dll that comes with AT&T Blackberry communication mgr) started taking over the exception handling as soon as the program tried to use the sockets. That happened when the program opened the remote SQL Server connection. After that, it would handle all exceptions from there on regardless of the type. It actually just ignored the exception and caused VS to just stop. I removed the AT&T Com. mgr. and everything works fine. Who would have guessed that?

 

by: raterusPosted on 2008-06-11 at 09:09:41ID: 21761539

Gah, I was just about to suggest that!  :-)  Glad you got it working!

 

by: jpaulinoPosted on 2008-06-11 at 09:59:00ID: 21761975

Yeahhhhhhhhhhh

 

by: mbeisPosted on 2008-06-11 at 15:59:39ID: 31462571

Thanks for all your help. Despite the fact that MS had the final solution, I leaned something on the way and have distributed points accordingly.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...