Fabasia
Messages postés45Date d'inscriptionmercredi 26 mars 2008StatutMembreDernière intervention17 août 2012
-
9 oct. 2011 à 13:09
The Meteorologist
Messages postés232Date d'inscriptionjeudi 18 janvier 2007StatutMembreDernière intervention 3 novembre 2011
-
10 oct. 2011 à 20:54
Mon appli fonctionne correctement sous XP, mais depuis que j'ai ajouté la référence DirectX, elle plante sous Seven. Sous Seven 64 bits, j'ai l'erreur System.BadImageFormatException.
Je pense que cela vient de la dll DirectX (9c). Comment la rendre compatible sous 64 bits ?
Comment rendre mon appli exécutable sous XP, Seven, 32 et 64 bits ?
The Meteorologist
Messages postés232Date d'inscriptionjeudi 18 janvier 2007StatutMembreDernière intervention 3 novembre 20111 9 oct. 2011 à 19:24
Bonsoir Fabasia,
As-tu vérifié que l'option "x86" du projet à bien été prise en compte dans Projet -> Propriétés -> Build -> Target Platform ?
Si oui, as-tu essayé de recompiler complètement ta solution avec ce paramètre ?
Fabasia
Messages postés45Date d'inscriptionmercredi 26 mars 2008StatutMembreDernière intervention17 août 2012 9 oct. 2011 à 15:56
En cherchant, j'ai trouvé cettte solution .....
The VB and C# Express products do not expose the Target property inside the development environment. You will need to carefully modify the project file using a text or XML editor.
1. Close the project and/or solution
2. Select Open File from the File menu
3. Navigate to the project directory, and highlight the project file
4. Press the Open button, the project file should open in the XML editor
5. Locate the first section and add the following line:
x86
1. Save the project file
2. Reopen the project and/or solution using Open Project/Solution from the File menu
3. Continue with development, debugging, and testing
Donc j'ai ajouté dans le fichier visual basic project file la ligne x86
Fabasia
Messages postés45Date d'inscriptionmercredi 26 mars 2008StatutMembreDernière intervention17 août 2012 9 oct. 2011 à 22:50
... Je me suis emballé !
En une autre erreur apparait plus tard. Quand je charge le fichier vidéo dans un module, j'ai l'erreur "LoaderLock"
La DLL 'C:\Windows\assembly\GAC\Microsoft.DirectX\1.0.2902.0__31bf3856ad364e35\Microsoft.DirectX.dll' tente une exécution managée dans le verrou du chargeur du système d'exploitation. N'essayez pas d'exécuter du code managé dans une fonction d'initialisation d'image ou DllMain, car cela risque d'entraîner un blocage de l'application.
Fabasia
Messages postés45Date d'inscriptionmercredi 26 mars 2008StatutMembreDernière intervention17 août 2012 10 oct. 2011 à 20:23
Non je n'ai pas regarder DirectX en 64 bits, car je souhaite que mon applli fonctionne sur différentes plateformes.
Néanmoins, je jeterai un oeil.
Merci