Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente |
ide:vs:bugs [2019/02/11 00:37] – Ajout de "Impossible d'ajouter une ressource" root | ide:vs:bugs [2023/02/02 09:43] (Version actuelle) – Ajout de "Object Reference Not Set to an Instance of an Object" root |
---|
| =====Bugs===== |
====Le package 'Visual c++ Resource Editor Package' n'a pas été chargé correctement==== | ====Le package 'Visual c++ Resource Editor Package' n'a pas été chargé correctement==== |
{{:ide:vs:bugs:chargement_incorrect_package.png?496|}} | {{:ide:vs:bugs:chargement_incorrect_package.png|}} |
| |
Solution : supprimer le dossier ''C:\Users\{your_username}\AppData\Roaming\Microsoft\VisualStudio\XX.YY'' | Solution : supprimer le dossier ''C:\Users\{your_username}\AppData\Roaming\Microsoft\VisualStudio\XX.YY'' |
| |
[[https://stackoverflow.com/questions/17574089/how-can-i-fix-the-microsoft-visual-studio-error-package-did-not-load-correctly|How Can I Fix the Microsoft Visual Studio Error: “Package Did Not Load Correctly”?]] {{ :ide:vs:bugs:c_-_how_can_i_fix_the_microsoft_visual_studio_error_package_did_not_load_correctly_-_stack_overflow.mhtml |Archive}} | [[https://stackoverflow.com/questions/17574089/how-can-i-fix-the-microsoft-visual-studio-error-package-did-not-load-correctly|How Can I Fix the Microsoft Visual Studio Error: “Package Did Not Load Correctly”?]] {{ :ide:vs:bugs:c_-_how_can_i_fix_the_microsoft_visual_studio_error_package_did_not_load_correctly_-_stack_overflow_2020-04-28_9_02_06_pm_.html |Archive du 10/07/2013 le 28/04/2020}} |
| |
====Fatal error U1087: cannot have : and :: dependents for same target==== | ====Fatal error U1087: cannot have : and :: dependents for same target==== |
Enlever les espaces dans le chemin de compilation. | Enlever les espaces dans le chemin de compilation. |
| |
[[https://stackoverflow.com/questions/1154660/fatal-error-u1087-cannot-have-and-dependents-for-same-target|Fatal error U1087: cannot have : and :: dependents for same target]] {{ :ide:vs:bugs:build_-_fatal_error_u1087_cannot_have_and_dependents_for_same_target_-_stack_overflow.mhtml |Archive du 27/11/2018}} | [[https://stackoverflow.com/questions/1154660/fatal-error-u1087-cannot-have-and-dependents-for-same-target|Fatal error U1087: cannot have : and :: dependents for same target]] {{ :ide:vs:bugs:build_-_fatal_error_u1087_cannot_have_and_dependents_for_same_target_-_stack_overflow_2020-04-28_9_02_04_pm_.html |Archive du 20/07/2009 le 28/04/2020}} |
| |
====Impossible d'ajouter une ressource==== | ====Impossible d'ajouter une ressource==== |
Pour ajouter un dialog MFC par exemple. Redémarrer Visual Studio ne suffit pas. Il faut décharger puis recharger le projet. | Pour ajouter un dialog MFC par exemple. Redémarrer Visual Studio ne suffit pas. Il faut décharger puis recharger le projet. |
| |
[[https://stackoverflow.com/questions/7605401/trying-to-add-resource-in-visual-studio-2010-pro-sp1-results-in-the-operation-c|Trying to Add Resource in Visual Studio 2010 Pro SP1 results in “The operation could not be completed. Unspecified error” message with C++ project]] {{ :ide:vs:bugs:trying_to_add_resource_in_visual_studio_2010_pro_sp1_results_in_the_operation_could_not_be_completed._unspecified_error_message_with_c_project_-_stack_overflow.mhtml |Archive du 10/02/2019}} | [[https://stackoverflow.com/questions/7605401/trying-to-add-resource-in-visual-studio-2010-pro-sp1-results-in-the-operation-c|Trying to Add Resource in Visual Studio 2010 Pro SP1 results in “The operation could not be completed. Unspecified error” message with C++ project]] {{ :ide:vs:bugs:trying_to_add_resource_in_visual_studio_2010_pro_sp1_results_in_the_operation_could_not_be_completed._unspecified_error_message_with_c_project_-_stack_overflow_2020-04-28_9_02_03_pm_.html |Archive du 30/09/2011 le 28/04/2020}} |
| |
Le problème existe aussi dans Visual Studio 2015. | Le problème existe aussi dans Visual Studio 2015. |
| |
| ====Ligne décalée en pas à pas==== |
| La première étape est de recompiler le fichier puis le projet. |
| |
| Si l'erreur n'est pas résolue, cela peut se produire si les retours à la ligne sont hétérogènes. Fermer et rouvrir le fichier. Visual Studio va indiquer un message d'erreur et le laisser corriger le fichier. Puis refaire la première étape. |
| |
| ====fatal error C1041: cannot open program database 'XXXX'; if multiple CL.EXE write to the same .PDB file, please use /FS==== |
| Cela peut arriver aussi si le PC plante pendant la compilation. Il est alors nécessaire de faire un rebuild du projet. |
| |
| ====Error HRESULT E_FAIL has been returned from a call to a COM component==== |
| Ou ''Une erreur HRESULT E_FAIL a été retournée à partir d'un appel à un composant COM.'' |
| |
| Ce message apparaît à la compilation. |
| |
| Solution : supprimer le dossier ''.vs''. |
| |
| [[https://developercommunity.visualstudio.com/content/problem/260196/add-a-reference-raise-error-error-hresult-e-fail-h.html|Add a reference raise error: Error HRESULT E_FAIL has been returned from a call to a COM component]] {{ :ide:vs:bugs:add_a_reference_raise_error_error_hresult_e_fail_has_been_returned_from_a_call_to_a_com_component_-_developer_community_2020-04-28_9_04_50_pm_.html |Archive du 24/05/2018 le 28/04/2020}} |
| |
| ====Object Reference Not Set to an Instance of an Object==== |
| |
| Supprimer le dossier ''.vs'' du projet. |
| |