IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Visual C++ Discussion :

Problème de chargement d'un fichie dll empêchant l'exécution d'un code C++


Sujet :

Visual C++

  1. #1
    Membre du Club
    Femme Profil pro
    Chercheur en informatique
    Inscrit en
    Décembre 2011
    Messages
    79
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : Tunisie

    Informations professionnelles :
    Activité : Chercheur en informatique
    Secteur : Enseignement

    Informations forums :
    Inscription : Décembre 2011
    Messages : 79
    Points : 60
    Points
    60
    Par défaut Problème de chargement d'un fichie dll empêchant l'exécution d'un code C++
    Bonjour tout le monde,

    Je suis en train de travailler avec VS2010 , windows 10, SE 64bits.

    En exécutant mon programme C++, j'ai eu un problème d'exécution.

    En effet, en cliquant sur "Build" mon programme fonctionne correctement et il m'affiche le message suivant:

    Rebuild All: 1 succeeded, 0 failed, 0 skipped

    Alors qu'en cliquant sur "Debug" mon programme affiche l'erreur suivante:

    The thread 'Win64 Thread' (0x33e0) has exited with code -1 (0xffffffff).
    The thread 'Win64 Thread' (0x28d8) has exited with code -1 (0xffffffff).
    The thread 'Win64 Thread' (0x10e8) has exited with code -1 (0xffffffff).
    The program '[1288] cvtest.exe: Native' has exited with code -1 (0xffffffff).

    En vérifiant la cause de cette erreur, j'ai constaté que tous les fichiers .dll ont été bien chargés sauf le fichier profapi.dll

    'cvtest.exe': Loaded 'C:\Windows\System32\profapi.dll', Cannot find or open the PDB file

    Avez-vous des propositions pour le corriger?

    Merci d'avance.

    P.S: Vous trouverez ci-dessous l'erreur complète:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    'cvtest.exe': Loaded 'C:\Users\Sonia Mesbah\Documents\Visual Studio 2010\Projects\cvtest\x64\Debug\cvtest.exe', Symbols loaded.
    'cvtest.exe': Loaded 'C:\Windows\System32\ntdll.dll', Exports loaded.
    'cvtest.exe': Loaded 'C:\Windows\System32\kernel32.dll', Exports loaded.
    'cvtest.exe': Loaded 'C:\Windows\System32\KernelBase.dll', Exports loaded.
    'cvtest.exe': Loaded 'C:\opencv\build\x64\vc10\bin\opencv_highgui2410.dll', Exports loaded.
    'cvtest.exe': Loaded 'C:\Windows\System32\user32.dll', Exports loaded.
    'cvtest.exe': Loaded 'C:\Windows\System32\msvcp100d.dll', Symbols loaded.
    'cvtest.exe': Loaded 'C:\Windows\System32\win32u.dll', Exports loaded.
    'cvtest.exe': Loaded 'C:\Windows\System32\msvcr100d.dll', Symbols loaded.
    'cvtest.exe': Loaded 'C:\Windows\System32\gdi32.dll', Exports loaded.
    'cvtest.exe': Loaded 'C:\Windows\System32\gdi32full.dll', Exports loaded.
    'cvtest.exe': Loaded 'C:\Windows\System32\msvcp_win.dll', Exports loaded.
    'cvtest.exe': Loaded 'C:\Windows\System32\ucrtbase.dll', Exports loaded.
    'cvtest.exe': Loaded 'C:\opencv\build\x64\vc10\bin\opencv_core2410d.dll', Exports loaded.
    'cvtest.exe': Loaded 'C:\Windows\System32\ole32.dll', Exports loaded.
    'cvtest.exe': Loaded 'C:\Windows\System32\combase.dll', Exports loaded.
    'cvtest.exe': Loaded 'C:\Windows\System32\rpcrt4.dll', Exports loaded.
    'cvtest.exe': Loaded 'C:\Windows\System32\bcryptprimitives.dll', Exports loaded.
    'cvtest.exe': Loaded 'C:\Windows\System32\sechost.dll', Exports loaded.
    'cvtest.exe': Loaded 'C:\Windows\System32\oleaut32.dll', Exports loaded.
    'cvtest.exe': Loaded 'C:\Windows\System32\advapi32.dll', Exports loaded.
    'cvtest.exe': Loaded 'C:\Windows\System32\msvcrt.dll', Exports loaded.
    'cvtest.exe': Loaded 'C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_5.82.17134.829_none_f94fe9573097fa34\comctl32.dll', Exports loaded.
    'cvtest.exe': Loaded 'C:\Windows\System32\msvfw32.dll', Exports loaded.
    'cvtest.exe': Loaded 'C:\Windows\System32\avifil32.dll', Exports loaded.
    'cvtest.exe': Loaded 'C:\Windows\System32\shell32.dll', Exports loaded.
    'cvtest.exe': Loaded 'C:\Windows\System32\avicap32.dll', Exports loaded.
    'cvtest.exe': Loaded 'C:\Windows\System32\cfgmgr32.dll', Exports loaded.
    'cvtest.exe': Loaded 'C:\opencv\build\x64\vc10\bin\opencv_core2410.dll', Exports loaded.
    'cvtest.exe': Loaded 'C:\Windows\System32\msvcp100.dll', Symbols loaded.
    'cvtest.exe': Loaded 'C:\Windows\System32\SHCore.dll', Exports loaded.
    'cvtest.exe': Loaded 'C:\Windows\System32\msvcr100.dll', Symbols loaded.
    'cvtest.exe': Loaded 'C:\Windows\System32\windows.storage.dll', Exports loaded.
    'cvtest.exe': Loaded 'C:\Windows\System32\msacm32.dll', Exports loaded.
    'cvtest.exe': Loaded 'C:\Windows\System32\shlwapi.dll', Exports loaded.
    'cvtest.exe': Loaded 'C:\Windows\System32\winmm.dll', Exports loaded.
    'cvtest.exe': Loaded 'C:\Windows\System32\kernel.appcore.dll', Exports loaded.
    'cvtest.exe': Loaded 'C:\Windows\System32\profapi.dll', Cannot find or open the PDB file
    'cvtest.exe': Loaded 'C:\Windows\System32\powrprof.dll', Exports loaded.
    'cvtest.exe': Loaded 'C:\Windows\System32\fltLib.dll', Exports loaded.
    'cvtest.exe': Loaded 'C:\Windows\System32\winmmbase.dll', Exports loaded.
    'cvtest.exe': Loaded 'C:\Windows\System32\imm32.dll', Exports loaded.
    'cvtest.exe': Loaded 'C:\Windows\System32\nvinitx.dll', Exports loaded.
    'cvtest.exe': Loaded 'C:\Windows\System32\version.dll', Exports loaded.
    'cvtest.exe': Loaded 'C:\Program Files\NVIDIA Corporation\coprocmanager\detoured.dll', Exports loaded.
    'cvtest.exe': Loaded 'C:\Program Files\NVIDIA Corporation\coprocmanager\Nvd3d9wrapx.dll', Exports loaded.
    'cvtest.exe': Loaded 'C:\Windows\System32\setupapi.dll', Exports loaded.
    'cvtest.exe': Loaded 'C:\Program Files\NVIDIA Corporation\coprocmanager\nvdxgiwrapx.dll', Exports loaded.
    The thread 'Win64 Thread' (0x33e0) has exited with code -1 (0xffffffff).
    The thread 'Win64 Thread' (0x28d8) has exited with code -1 (0xffffffff).
    The thread 'Win64 Thread' (0x10e8) has exited with code -1 (0xffffffff).
    The program '[1288] cvtest.exe: Native' has exited with code -1 (0xffffffff).

  2. #2
    Membre du Club
    Femme Profil pro
    Étudiant
    Inscrit en
    Novembre 2018
    Messages
    20
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 27
    Localisation : Autre

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Novembre 2018
    Messages : 20
    Points : 47
    Points
    47
    Par défaut
    En vérifiant la cause de cette erreur, j'ai constaté que tous les fichiers .dll ont été bien chargés sauf le fichier profapi.dll

    'cvtest.exe': Loaded 'C:\Windows\System32\profapi.dll', Cannot find or open the PDB file
    Cette erreur indique que le programme ne retrouve pas les symboles de debug, ce qui n'a rien à voir avec le fait de ne pas pouvoir charger la dll. Le problème doit se situer autre part.

  3. #3
    Membre du Club
    Femme Profil pro
    Chercheur en informatique
    Inscrit en
    Décembre 2011
    Messages
    79
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : Tunisie

    Informations professionnelles :
    Activité : Chercheur en informatique
    Secteur : Enseignement

    Informations forums :
    Inscription : Décembre 2011
    Messages : 79
    Points : 60
    Points
    60
    Par défaut
    Merci beaucoup Kianii

    Comme vous avez dit:
    Cette erreur indique que le programme ne retrouve pas les symboles de debug


    J'ai trouvé la solution:

    Il fallait juste:

    Aller sur: Tools->Options->Debugging->Symbols

    et choisir checkbox "Microsoft Symbol Servers",

    Visual Studio téléchargera les PDBs automatiquement.

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. [TClientDataSet] Erreur de chargement du fichier MIDAS.DLL
    Par Manopower dans le forum Bases de données
    Réponses: 10
    Dernier message: 31/08/2016, 14h08
  2. [Débutante] Problème de chargement de fichier .dll (Python.NET)
    Par Heey-Zeed dans le forum Général Python
    Réponses: 0
    Dernier message: 17/10/2013, 17h23
  3. [load] Problème de chargement de fichier mat
    Par VanessaDu67 dans le forum MATLAB
    Réponses: 3
    Dernier message: 07/09/2007, 09h53
  4. [VB6]Problème de chargement de fichier
    Par gwendo dans le forum VB 6 et antérieur
    Réponses: 4
    Dernier message: 17/05/2007, 14h12
  5. erreur de chargement du fichier sprwin.dll
    Par Maman Kakalé Néhémiya dans le forum Sécurité
    Réponses: 8
    Dernier message: 26/09/2006, 13h49

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo