मेरे पास एक प्रोजेक्ट है जो विंडोज एक्सपी के तहत सही है।पहला मौका अपवाद
अब मैंने इसे विंडोज 7 के तहत चलाने की कोशिश की है और तत्काल विंडो के तहत बहुत सारे अपवाद प्राप्त किए हैं।
A first chance exception of type 'System.ArgumentNullException' occurred in Microsoft.VisualBasic.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in LP_Wizard.exe
A first chance exception of type 'System.ArgumentException' occurred in LP_Wizard.exe
A first chance exception of type 'System.NullReferenceException' occurred in LP_Wizard.exe
A first chance exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll
A first chance exception of type 'System.ArgumentNullException' occurred in Microsoft.VisualBasic.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in LP_Wizard.exe
A first chance exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll
A first chance exception of type 'System.ArgumentNullException' occurred in Microsoft.VisualBasic.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in LP_Wizard.exe
A first chance exception of type 'System.ArgumentNullException' occurred in Microsoft.VisualBasic.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in LP_Wizard.exe
किसी भी विचार क्या गलत के साथ विंडोज 7 और कैसे में है कि Microsoft.VisualBasic.dll
मैं कि समस्या को दूर?
धन्यवाद मदद के लिए बहुत कुछ।
+1। इसके अतिरिक्त, यदि आप बहुत सारे अपवादों को ट्रिगर कर रहे हैं और उन्हें अनदेखा कर रहे हैं और उन्हें अनदेखा कर रहे हैं तो इससे बचने के लिए अपने कोड को फिर से लिखने का प्रयास करना उचित होगा क्योंकि यह बेहतर प्रदर्शन करेगा। उदाहरण के बाद कैच (NullPointerException) के बजाय कॉल से पहले if (thing! = null) का उपयोग करें। – Paolo
निश्चित रूप से, पाओलो। अपवाद असाधारण होना चाहिए। बेशक अगर माइक्रोसॉफ्ट में अपवाद हो रहे हैं। VisualBasic.dll शायद दुर्भाग्य से आप बहुत सी चीजें नहीं कर सकते हैं। :) –
भले ही माइक्रोसॉफ्ट में अपवाद हो रहा है। VisualBasic.dll, यह संभवतः माइक्रोसॉफ्ट कोड में बग के बजाए आपके कोड में एक त्रुटि के कारण होता है। – MarkJ