Program Hangs in VS Debug Mode
MarkH
Posts: 8
Hi Guys,
Would you please advise why the following is happening?
If I build my app and run as an .exe it works fine, but, if I open VS (Sp1, Hot Fix) and try to set breakpoints i get no furthur than the following line of code (i.e. VS hangs when I try to step over)
Database db1 = new Database();
For some reason this problem has only happened in the new year, debugging was fine in 2006.
Could this is an after effect of the Melinnium Bug?
using System;
using System.IO;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;
using RedGate.SQLCompare.Engine;
using RedGate.SQLDataCompare.Engine;
using RedGate.SQLDataCompare.Engine.ResultsStore;
using System.Data;
namespace DataCompareBase
{
class DataCompareControl
{
Database db1 = new Database(); // << HANGS ON THIS STATEMENT
Database db2 = new Database();
ComparisonSession session = new ComparisonSession();
TableMappings mappings = new TableMappings();
TableDifference difference;
AuditDBInterface newMap = new AuditDBInterface();
System.Data.DataSet theSqlMap = new DataSet("loadMap");
Would you please advise why the following is happening?
If I build my app and run as an .exe it works fine, but, if I open VS (Sp1, Hot Fix) and try to set breakpoints i get no furthur than the following line of code (i.e. VS hangs when I try to step over)
Database db1 = new Database();
For some reason this problem has only happened in the new year, debugging was fine in 2006.
Could this is an after effect of the Melinnium Bug?
using System;
using System.IO;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;
using RedGate.SQLCompare.Engine;
using RedGate.SQLDataCompare.Engine;
using RedGate.SQLDataCompare.Engine.ResultsStore;
using System.Data;
namespace DataCompareBase
{
class DataCompareControl
{
Database db1 = new Database(); // << HANGS ON THIS STATEMENT
Database db2 = new Database();
ComparisonSession session = new ComparisonSession();
TableMappings mappings = new TableMappings();
TableDifference difference;
AuditDBInterface newMap = new AuditDBInterface();
System.Data.DataSet theSqlMap = new DataSet("loadMap");
Regards,
MarkH
MarkH
Comments
(step over) or (Continue) will effectivly hang on this line.
I believe this is related to the LoaderLock issue, as the warning explicitly says the program may hang.
So for now to debug I have to ...
1. set a breakpoint on the new Database() line
2. start debugging
3. press F11 to get loaderlock message
4. press F11 to clear loaderlock message
5. Press F5 to continue
Honest, this is the only way I can get past the solution hanging on this line, this is getting frustrating, can we have an ETA on the loaderlock issue and an update that is more integrated to the current versions of .NET and VS?
MarkH