0
我一直在調試程序一段時間。下面的代碼是抽象類的一部分,this.initialize()是一個被子類覆蓋的抽象方法。在更改子類中的Initizalize後,調試時出現錯誤「無源代碼可用於當前位置」。該方法彈出對話框,所以我懷疑這是問題的原因。有任何想法嗎?調試錯誤:「沒有源代碼可用於當前位置」
public ExternalSystemAdapterClass(ArchiveServiceConfigurationHandler archiveServiceConfigurationHandler, SystemType adapterConfiguration)
{
// Init configs...
this.archiveServiceConfigurationHandler = archiveServiceConfigurationHandler;
this.adapterConfiguration = adapterConfiguration;
this.dbProviderFactory = DalFactory.GetFactory(this.adapterConfiguration);
sqlDalExternal = new SqlCommonDAL(this.adapterConfiguration.DatabaseInformation.ExternalDatabaseInformation.connectionString, this.dbProviderFactory);
// Init validations...
this.metaDataValidationsSP = new Collection<MetaDataValidationType>();
this.metaDataValidationsBL = new Collection<MetaDataValidationType>();
this.InitializeMetaDataValidations();
// Init (clean up unfinished jobs etc.)
this.Initialize(); // DEBUG ERROR: "No Source Code Available for the Current Location"
// Init data retrieval...
this.dataResponseQueue = new Queue<ExternalSystemDataResponse>();
this.alreadyProcessedDataTable = new DataTable();
this.doRun = true;
this.externalDataRetrievalThread = new Thread(ExternalDataRetrievalThreadMethod);
this.externalDataRetrievalThread.Start();
}
謝謝你的努力。我試着建立一個乾淨的解決方案,問題就消失了。 – 2011-02-07 11:57:01