begin process at 2012 02 10 18:32:29
  Trouver un code source :
 
dans
 
Accueil > Forum > 

Archive C/C++

 > 

Archives

 > 

Au secours

 > 

I NEED SOMEBODY HELP


Derniers messages déposésPoser une question dans le forum ou lancer une discussion

I NEED SOMEBODY HELP

lundi 13 janvier 2003 à 11:23:46 | I NEED SOMEBODY HELP

lerilcy

Mon programme coupe des fichiers en part egales puis les recompose dans un 2eme temps.

Un peu comme les compresseurs type RZsplit Winrar...

A la compilation j'ai 0 erreurs 0 warnings MAIS une erreur bloque l'execution en me mettant un message :

------------------------------------------------------------------
Microsoft Visual C++ Debug library
Program: C:\decoupage.exe
File:filecore.cpp
line:258
For information on how your program can cause an assertion failure, see the visual c++ doc on asserts.

ABANDONNER RECOMMENCER IGNORER
-------------------------------------------------------------------

filecore.cpp ligne 258

LONG CFile::Seek(LONG lOff, UINT nFrom)
{
ASSERT_VALID(this);

258--> ASSERT(m_hFile != (UINT)hFileNull); //ligne 258

ASSERT(nFrom == begin || nFrom == end || nFrom == current);
ASSERT(begin == FILE_BEGIN && end == FILE_END && current == FILE_CURRENT);

DWORD dwNew = ::SetFilePointer((HANDLE)m_hFile, lOff, NULL, (DWORD)nFrom);
if (dwNew == (DWORD)-1)
CFileException::ThrowOsError((LONG)::GetLastError());

return dwNew;
}


Toute aide sera la bienvenue. Merci d'avance!
lundi 13 janvier 2003 à 12:18:35 | Re : I NEED SOMEBODY HELP

Kaid


La méthode Seek() teste par la ligne ASSERT(m_hFile != (UINT)hFileNull) si un fichier est attaché à l'objet courant.
Dans ton cas, c'est non. As-tu spécifié un fichier ? Est-il ouvert ?
-------------------------------
Réponse au message :
-------------------------------

> Mon programme coupe des fichiers en part egales puis les recompose dans un 2eme temps.
>
> Un peu comme les compresseurs type RZsplit Winrar...
>
> A la compilation j'ai 0 erreurs 0 warnings MAIS une erreur bloque l'execution en me mettant un message :
>
> ------------------------------------------------------------------
> Microsoft Visual C++ Debug library
> Program: C:\decoupage.exe
> File:filecore.cpp
> line:258
> For information on how your program can cause an assertion failure, see the visual c++ doc on asserts.
>
> ABANDONNER RECOMMENCER IGNORER
> -------------------------------------------------------------------
>
> filecore.cpp ligne 258
>
> LONG CFile::Seek(LONG lOff, UINT nFrom)
> {
> ASSERT_VALID(this);
>
> 258--> ASSERT(m_hFile != (UINT)hFileNull); //ligne 258
>
> ASSERT(nFrom == begin || nFrom == end || nFrom == current);
> ASSERT(begin == FILE_BEGIN && end == FILE_END && current == FILE_CURRENT);
>
> DWORD dwNew = ::SetFilePointer((HANDLE)m_hFile, lOff, NULL, (DWORD)nFrom);
> if (dwNew == (DWORD)-1)
> CFileException::ThrowOsError((LONG)::GetLastError());
>
> return dwNew;
> }
>
>
> Toute aide sera la bienvenue. Merci d'avance!
lundi 13 janvier 2003 à 12:35:51 | Re : I NEED SOMEBODY HELP

lerilcy

Normalement oui! avec la commande

Fichier.Open(Nomfichier,CFile::modeCreate|CFile::modeRead|CFile::modeWrite);

dans le file.cpp de ma Cfile

je passe en parametre Nomfichier ="c:\totototo" dans mon main
donc normalement ca devrait ouvrir le fichier ,et le creer si il est inexistant.

Merci de ton aide...


-------------------------------
Réponse au message :
-------------------------------

>
> La méthode Seek() teste par la ligne ASSERT(m_hFile != (UINT)hFileNull) si un fichier est attaché à l'objet courant.
> Dans ton cas, c'est non. As-tu spécifié un fichier ? Est-il ouvert ?
> -------------------------------
> Réponse au message :
> -------------------------------
>
> > Mon programme coupe des fichiers en part egales puis les recompose dans un 2eme temps.
> >
> > Un peu comme les compresseurs type RZsplit Winrar...
> >
> > A la compilation j'ai 0 erreurs 0 warnings MAIS une erreur bloque l'execution en me mettant un message :
> >
> > ------------------------------------------------------------------
> > Microsoft Visual C++ Debug library
> > Program: C:\decoupage.exe
> > File:filecore.cpp
> > line:258
> > For information on how your program can cause an assertion failure, see the visual c++ doc on asserts.
> >
> > ABANDONNER RECOMMENCER IGNORER
> > -------------------------------------------------------------------
> >
> > filecore.cpp ligne 258
> >
> > LONG CFile::Seek(LONG lOff, UINT nFrom)
> > {
> > ASSERT_VALID(this);
> >
> > 258--> ASSERT(m_hFile != (UINT)hFileNull); //ligne 258
> >
> > ASSERT(nFrom == begin || nFrom == end || nFrom == current);
> > ASSERT(begin == FILE_BEGIN && end == FILE_END && current == FILE_CURRENT);
> >
> > DWORD dwNew = ::SetFilePointer((HANDLE)m_hFile, lOff, NULL, (DWORD)nFrom);
> > if (dwNew == (DWORD)-1)
> > CFileException::ThrowOsError((LONG)::GetLastError());
> >
> > return dwNew;
> > }
> >
> >
> > Toute aide sera la bienvenue. Merci d'avance!
>
lundi 13 janvier 2003 à 12:39:04 | Re : I NEED SOMEBODY HELP

Kaid


Peut-être que "c:\\totototo" serait plus adapté comme paramètre en nom de fichier.

-------------------------------
Réponse au message :
-------------------------------

> Normalement oui! avec la commande
>
> Fichier.Open(Nomfichier,CFile::modeCreate|CFile::modeRead|CFile::modeWrite);
>
> dans le file.cpp de ma Cfile
>
> je passe en parametre Nomfichier ="c:\totototo" dans mon main
> donc normalement ca devrait ouvrir le fichier ,et le creer si il est inexistant.
>
> Merci de ton aide...
>
>
> -------------------------------
> Réponse au message :
> -------------------------------
>
> >
> > La méthode Seek() teste par la ligne ASSERT(m_hFile != (UINT)hFileNull) si un fichier est attaché à l'objet courant.
> > Dans ton cas, c'est non. As-tu spécifié un fichier ? Est-il ouvert ?
> > -------------------------------
> > Réponse au message :
> > -------------------------------
> >
> > > Mon programme coupe des fichiers en part egales puis les recompose dans un 2eme temps.
> > >
> > > Un peu comme les compresseurs type RZsplit Winrar...
> > >
> > > A la compilation j'ai 0 erreurs 0 warnings MAIS une erreur bloque l'execution en me mettant un message :
> > >
> > > ------------------------------------------------------------------
> > > Microsoft Visual C++ Debug library
> > > Program: C:\decoupage.exe
> > > File:filecore.cpp
> > > line:258
> > > For information on how your program can cause an assertion failure, see the visual c++ doc on asserts.
> > >
> > > ABANDONNER RECOMMENCER IGNORER
> > > -------------------------------------------------------------------
> > >
> > > filecore.cpp ligne 258
> > >
> > > LONG CFile::Seek(LONG lOff, UINT nFrom)
> > > {
> > > ASSERT_VALID(this);
> > >
> > > 258--> ASSERT(m_hFile != (UINT)hFileNull); //ligne 258
> > >
> > > ASSERT(nFrom == begin || nFrom == end || nFrom == current);
> > > ASSERT(begin == FILE_BEGIN && end == FILE_END && current == FILE_CURRENT);
> > >
> > > DWORD dwNew = ::SetFilePointer((HANDLE)m_hFile, lOff, NULL, (DWORD)nFrom);
> > > if (dwNew == (DWORD)-1)
> > > CFileException::ThrowOsError((LONG)::GetLastError());
> > >
> > > return dwNew;
> > > }
> > >
> > >
> > > Toute aide sera la bienvenue. Merci d'avance!
> >
>
lundi 13 janvier 2003 à 12:48:19 | Re : I NEED SOMEBODY HELP

lerilcy

En effet, merci beaucoup!

Putain! maintenant il veut meme plus compiler ...

Compiling...
main.cpp
Linking...
LINK : fatal error LNK1168: cannot open Debug/decoupe.exe for writing
Error executing link.exe.

alors qu'il existe Debug/decoupe.exe


-------------------------------
Réponse au message :
-------------------------------

>
> Peut-être que "c:\\totototo" serait plus adapté comme paramètre en nom de fichier.
>
> -------------------------------
> Réponse au message :
> -------------------------------
>
> > Normalement oui! avec la commande
> >
> > Fichier.Open(Nomfichier,CFile::modeCreate|CFile::modeRead|CFile::modeWrite);
> >
> > dans le file.cpp de ma Cfile
> >
> > je passe en parametre Nomfichier ="c:\totototo" dans mon main
> > donc normalement ca devrait ouvrir le fichier ,et le creer si il est inexistant.
> >
> > Merci de ton aide...
> >
> >
> > -------------------------------
> > Réponse au message :
> > -------------------------------
> >
> > >
> > > La méthode Seek() teste par la ligne ASSERT(m_hFile != (UINT)hFileNull) si un fichier est attaché à l'objet courant.
> > > Dans ton cas, c'est non. As-tu spécifié un fichier ? Est-il ouvert ?
> > > -------------------------------
> > > Réponse au message :
> > > -------------------------------
> > >
> > > > Mon programme coupe des fichiers en part egales puis les recompose dans un 2eme temps.
> > > >
> > > > Un peu comme les compresseurs type RZsplit Winrar...
> > > >
> > > > A la compilation j'ai 0 erreurs 0 warnings MAIS une erreur bloque l'execution en me mettant un message :
> > > >
> > > > ------------------------------------------------------------------
> > > > Microsoft Visual C++ Debug library
> > > > Program: C:\decoupage.exe
> > > > File:filecore.cpp
> > > > line:258
> > > > For information on how your program can cause an assertion failure, see the visual c++ doc on asserts.
> > > >
> > > > ABANDONNER RECOMMENCER IGNORER
> > > > -------------------------------------------------------------------
> > > >
> > > > filecore.cpp ligne 258
> > > >
> > > > LONG CFile::Seek(LONG lOff, UINT nFrom)
> > > > {
> > > > ASSERT_VALID(this);
> > > >
> > > > 258--> ASSERT(m_hFile != (UINT)hFileNull); //ligne 258
> > > >
> > > > ASSERT(nFrom == begin || nFrom == end || nFrom == current);
> > > > ASSERT(begin == FILE_BEGIN && end == FILE_END && current == FILE_CURRENT);
> > > >
> > > > DWORD dwNew = ::SetFilePointer((HANDLE)m_hFile, lOff, NULL, (DWORD)nFrom);
> > > > if (dwNew == (DWORD)-1)
> > > > CFileException::ThrowOsError((LONG)::GetLastError());
> > > >
> > > > return dwNew;
> > > > }
> > > >
> > > >
> > > > Toute aide sera la bienvenue. Merci d'avance!
> > >
> >
>
lundi 13 janvier 2003 à 12:50:34 | Re : I NEED SOMEBODY HELP

Kaid


Tu as une instance de ton programme qui est en cours d'exécution. Fermes-la et tu verras que la compil' se passera beaucoup mieux.

-------------------------------
Réponse au message :
-------------------------------

> En effet, merci beaucoup!
>
> Putain! maintenant il veut meme plus compiler ...
>
> Compiling...
> main.cpp
> Linking...
> LINK : fatal error LNK1168: cannot open Debug/decoupe.exe for writing
> Error executing link.exe.
>
> alors qu'il existe Debug/decoupe.exe
>
>
> -------------------------------
> Réponse au message :
> -------------------------------
>
> >
> > Peut-être que "c:\\totototo" serait plus adapté comme paramètre en nom de fichier.
> >
> > -------------------------------
> > Réponse au message :
> > -------------------------------
> >
> > > Normalement oui! avec la commande
> > >
> > > Fichier.Open(Nomfichier,CFile::modeCreate|CFile::modeRead|CFile::modeWrite);
> > >
> > > dans le file.cpp de ma Cfile
> > >
> > > je passe en parametre Nomfichier ="c:\totototo" dans mon main
> > > donc normalement ca devrait ouvrir le fichier ,et le creer si il est inexistant.
> > >
> > > Merci de ton aide...
> > >
> > >
> > > -------------------------------
> > > Réponse au message :
> > > -------------------------------
> > >
> > > >
> > > > La méthode Seek() teste par la ligne ASSERT(m_hFile != (UINT)hFileNull) si un fichier est attaché à l'objet courant.
> > > > Dans ton cas, c'est non. As-tu spécifié un fichier ? Est-il ouvert ?
> > > > -------------------------------
> > > > Réponse au message :
> > > > -------------------------------
> > > >
> > > > > Mon programme coupe des fichiers en part egales puis les recompose dans un 2eme temps.
> > > > >
> > > > > Un peu comme les compresseurs type RZsplit Winrar...
> > > > >
> > > > > A la compilation j'ai 0 erreurs 0 warnings MAIS une erreur bloque l'execution en me mettant un message :
> > > > >
> > > > > ------------------------------------------------------------------
> > > > > Microsoft Visual C++ Debug library
> > > > > Program: C:\decoupage.exe
> > > > > File:filecore.cpp
> > > > > line:258
> > > > > For information on how your program can cause an assertion failure, see the visual c++ doc on asserts.
> > > > >
> > > > > ABANDONNER RECOMMENCER IGNORER
> > > > > -------------------------------------------------------------------
> > > > >
> > > > > filecore.cpp ligne 258
> > > > >
> > > > > LONG CFile::Seek(LONG lOff, UINT nFrom)
> > > > > {
> > > > > ASSERT_VALID(this);
> > > > >
> > > > > 258--> ASSERT(m_hFile != (UINT)hFileNull); //ligne 258
> > > > >
> > > > > ASSERT(nFrom == begin || nFrom == end || nFrom == current);
> > > > > ASSERT(begin == FILE_BEGIN && end == FILE_END && current == FILE_CURRENT);
> > > > >
> > > > > DWORD dwNew = ::SetFilePointer((HANDLE)m_hFile, lOff, NULL, (DWORD)nFrom);
> > > > > if (dwNew == (DWORD)-1)
> > > > > CFileException::ThrowOsError((LONG)::GetLastError());
> > > > >
> > > > > return dwNew;
> > > > > }
> > > > >
> > > > >
> > > > > Toute aide sera la bienvenue. Merci d'avance!
> > > >
> > >
> >
>
lundi 13 janvier 2003 à 14:33:40 | Re : I NEED SOMEBODY HELP

lerilcy

Merci kaid
Et comme t'a l'air d'en etre un (en c).
tu saurais pas ce que c'est que ce message, stp:

Ms Visual c++ - Debug library

Debug error!
program: c:\decoupe.exe
abnormal program termination
Press retry to debug

il apparait pendant l'execution.

je fait retry:

Loaded symbols for 'C:\decoupe.exe'
Loaded 'C:\WINDOWS\system32\ntdll.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\kernel32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\comctl32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\gdi32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\user32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\advapi32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\rpcrt4.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\winspool.drv', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\msvcrt.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\comdlg32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\shlwapi.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\shell32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\imm32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.10.0_x-ww_f7fb5805\comctl32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\uxtheme.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\msctf.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\msctfime.ime', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\ole32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\msimtf.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\version.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\apphelp.dll', no matching symbolic information found.
The thread 0x340 has exited with code 0 (0x0).
The thread 0x1A4 has exited with code -2147483645 (0x80000003).
The program 'C:\cyril\Decoupage\decoupe\Debug\decoupe.exe' has exited with code -2147483645 (0x80000003).









-------------------------------
Réponse au message :
-------------------------------

>
> Tu as une instance de ton programme qui est en cours d'exécution. Fermes-la et tu verras que la compil' se passera beaucoup mieux.
>
> -------------------------------
> Réponse au message :
> -------------------------------
>
> > En effet, merci beaucoup!
> >
> > Putain! maintenant il veut meme plus compiler ...
> >
> > Compiling...
> > main.cpp
> > Linking...
> > LINK : fatal error LNK1168: cannot open Debug/decoupe.exe for writing
> > Error executing link.exe.
> >
> > alors qu'il existe Debug/decoupe.exe
> >
> >
> > -------------------------------
> > Réponse au message :
> > -------------------------------
> >
> > >
> > > Peut-être que "c:\\totototo" serait plus adapté comme paramètre en nom de fichier.
> > >
> > > -------------------------------
> > > Réponse au message :
> > > -------------------------------
> > >
> > > > Normalement oui! avec la commande
> > > >
> > > > Fichier.Open(Nomfichier,CFile::modeCreate|CFile::modeRead|CFile::modeWrite);
> > > >
> > > > dans le file.cpp de ma Cfile
> > > >
> > > > je passe en parametre Nomfichier ="c:\totototo" dans mon main
> > > > donc normalement ca devrait ouvrir le fichier ,et le creer si il est inexistant.
> > > >
> > > > Merci de ton aide...
> > > >
> > > >
> > > > -------------------------------
> > > > Réponse au message :
> > > > -------------------------------
> > > >
> > > > >
> > > > > La méthode Seek() teste par la ligne ASSERT(m_hFile != (UINT)hFileNull) si un fichier est attaché à l'objet courant.
> > > > > Dans ton cas, c'est non. As-tu spécifié un fichier ? Est-il ouvert ?
> > > > > -------------------------------
> > > > > Réponse au message :
> > > > > -------------------------------
> > > > >
> > > > > > Mon programme coupe des fichiers en part egales puis les recompose dans un 2eme temps.
> > > > > >
> > > > > > Un peu comme les compresseurs type RZsplit Winrar...
> > > > > >
> > > > > > A la compilation j'ai 0 erreurs 0 warnings MAIS une erreur bloque l'execution en me mettant un message :
> > > > > >
> > > > > > ------------------------------------------------------------------
> > > > > > Microsoft Visual C++ Debug library
> > > > > > Program: C:\decoupage.exe
> > > > > > File:filecore.cpp
> > > > > > line:258
> > > > > > For information on how your program can cause an assertion failure, see the visual c++ doc on asserts.
> > > > > >
> > > > > > ABANDONNER RECOMMENCER IGNORER
> > > > > > -------------------------------------------------------------------
> > > > > >
> > > > > > filecore.cpp ligne 258
> > > > > >
> > > > > > LONG CFile::Seek(LONG lOff, UINT nFrom)
> > > > > > {
> > > > > > ASSERT_VALID(this);
> > > > > >
> > > > > > 258--> ASSERT(m_hFile != (UINT)hFileNull); //ligne 258
> > > > > >
> > > > > > ASSERT(nFrom == begin || nFrom == end || nFrom == current);
> > > > > > ASSERT(begin == FILE_BEGIN && end == FILE_END && current == FILE_CURRENT);
> > > > > >
> > > > > > DWORD dwNew = ::SetFilePointer((HANDLE)m_hFile, lOff, NULL, (DWORD)nFrom);
> > > > > > if (dwNew == (DWORD)-1)
> > > > > > CFileException::ThrowOsError((LONG)::GetLastError());
> > > > > >
> > > > > > return dwNew;
> > > > > > }
> > > > > >
> > > > > >
> > > > > > Toute aide sera la bienvenue. Merci d'avance!
> > > > >
> > > >
> > >
> >
>
lundi 13 janvier 2003 à 14:36:09 | Re : I NEED SOMEBODY HELP

Kaid


Ben tu lances le programme sous le debugger de Visual C++ et normallement il devrait se placer sur la ligne de code qui le fait planter.

-------------------------------
Réponse au message :
-------------------------------

> Merci kaid
> Et comme t'a l'air d'en etre un (en c).
> tu saurais pas ce que c'est que ce message, stp:
>
> Ms Visual c++ - Debug library
>
> Debug error!
> program: c:\decoupe.exe
> abnormal program termination
> Press retry to debug
>
> il apparait pendant l'execution.
>
> je fait retry:
>
> Loaded symbols for 'C:\decoupe.exe'
> Loaded 'C:\WINDOWS\system32\ntdll.dll', no matching symbolic information found.
> Loaded 'C:\WINDOWS\system32\kernel32.dll', no matching symbolic information found.
> Loaded 'C:\WINDOWS\system32\comctl32.dll', no matching symbolic information found.
> Loaded 'C:\WINDOWS\system32\gdi32.dll', no matching symbolic information found.
> Loaded 'C:\WINDOWS\system32\user32.dll', no matching symbolic information found.
> Loaded 'C:\WINDOWS\system32\advapi32.dll', no matching symbolic information found.
> Loaded 'C:\WINDOWS\system32\rpcrt4.dll', no matching symbolic information found.
> Loaded 'C:\WINDOWS\system32\winspool.drv', no matching symbolic information found.
> Loaded 'C:\WINDOWS\system32\msvcrt.dll', no matching symbolic information found.
> Loaded 'C:\WINDOWS\system32\comdlg32.dll', no matching symbolic information found.
> Loaded 'C:\WINDOWS\system32\shlwapi.dll', no matching symbolic information found.
> Loaded 'C:\WINDOWS\system32\shell32.dll', no matching symbolic information found.
> Loaded 'C:\WINDOWS\system32\imm32.dll', no matching symbolic information found.
> Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.10.0_x-ww_f7fb5805\comctl32.dll', no matching symbolic information found.
> Loaded 'C:\WINDOWS\system32\uxtheme.dll', no matching symbolic information found.
> Loaded 'C:\WINDOWS\system32\msctf.dll', no matching symbolic information found.
> Loaded 'C:\WINDOWS\system32\msctfime.ime', no matching symbolic information found.
> Loaded 'C:\WINDOWS\system32\ole32.dll', no matching symbolic information found.
> Loaded 'C:\WINDOWS\system32\msimtf.dll', no matching symbolic information found.
> Loaded 'C:\WINDOWS\system32\version.dll', no matching symbolic information found.
> Loaded 'C:\WINDOWS\system32\apphelp.dll', no matching symbolic information found.
> The thread 0x340 has exited with code 0 (0x0).
> The thread 0x1A4 has exited with code -2147483645 (0x80000003).
> The program 'C:\cyril\Decoupage\decoupe\Debug\decoupe.exe' has exited with code -2147483645 (0x80000003).
>
>
>
>
>
>
>
>
>
> -------------------------------
> Réponse au message :
> -------------------------------
>
> >
> > Tu as une instance de ton programme qui est en cours d'exécution. Fermes-la et tu verras que la compil' se passera beaucoup mieux.
> >
> > -------------------------------
> > Réponse au message :
> > -------------------------------
> >
> > > En effet, merci beaucoup!
> > >
> > > Putain! maintenant il veut meme plus compiler ...
> > >
> > > Compiling...
> > > main.cpp
> > > Linking...
> > > LINK : fatal error LNK1168: cannot open Debug/decoupe.exe for writing
> > > Error executing link.exe.
> > >
> > > alors qu'il existe Debug/decoupe.exe
> > >
> > >
> > > -------------------------------
> > > Réponse au message :
> > > -------------------------------
> > >
> > > >
> > > > Peut-être que "c:\\totototo" serait plus adapté comme paramètre en nom de fichier.
> > > >
> > > > -------------------------------
> > > > Réponse au message :
> > > > -------------------------------
> > > >
> > > > > Normalement oui! avec la commande
> > > > >
> > > > > Fichier.Open(Nomfichier,CFile::modeCreate|CFile::modeRead|CFile::modeWrite);
> > > > >
> > > > > dans le file.cpp de ma Cfile
> > > > >
> > > > > je passe en parametre Nomfichier ="c:\totototo" dans mon main
> > > > > donc normalement ca devrait ouvrir le fichier ,et le creer si il est inexistant.
> > > > >
> > > > > Merci de ton aide...
> > > > >
> > > > >
> > > > > -------------------------------
> > > > > Réponse au message :
> > > > > -------------------------------
> > > > >
> > > > > >
> > > > > > La méthode Seek() teste par la ligne ASSERT(m_hFile != (UINT)hFileNull) si un fichier est attaché à l'objet courant.
> > > > > > Dans ton cas, c'est non. As-tu spécifié un fichier ? Est-il ouvert ?
> > > > > > -------------------------------
> > > > > > Réponse au message :
> > > > > > -------------------------------
> > > > > >
> > > > > > > Mon programme coupe des fichiers en part egales puis les recompose dans un 2eme temps.
> > > > > > >
> > > > > > > Un peu comme les compresseurs type RZsplit Winrar...
> > > > > > >
> > > > > > > A la compilation j'ai 0 erreurs 0 warnings MAIS une erreur bloque l'execution en me mettant un message :
> > > > > > >
> > > > > > > ------------------------------------------------------------------
> > > > > > > Microsoft Visual C++ Debug library
> > > > > > > Program: C:\decoupage.exe
> > > > > > > File:filecore.cpp
> > > > > > > line:258
> > > > > > > For information on how your program can cause an assertion failure, see the visual c++ doc on asserts.
> > > > > > >
> > > > > > > ABANDONNER RECOMMENCER IGNORER
> > > > > > > -------------------------------------------------------------------
> > > > > > >
> > > > > > > filecore.cpp ligne 258
> > > > > > >
> > > > > > > LONG CFile::Seek(LONG lOff, UINT nFrom)
> > > > > > > {
> > > > > > > ASSERT_VALID(this);
> > > > > > >
> > > > > > > 258--> ASSERT(m_hFile != (UINT)hFileNull); //ligne 258
> > > > > > >
> > > > > > > ASSERT(nFrom == begin || nFrom == end || nFrom == current);
> > > > > > > ASSERT(begin == FILE_BEGIN && end == FILE_END && current == FILE_CURRENT);
> > > > > > >
> > > > > > > DWORD dwNew = ::SetFilePointer((HANDLE)m_hFile, lOff, NULL, (DWORD)nFrom);
> > > > > > > if (dwNew == (DWORD)-1)
> > > > > > > CFileException::ThrowOsError((LONG)::GetLastError());
> > > > > > >
> > > > > > > return dwNew;
> > > > > > > }
> > > > > > >
> > > > > > >
> > > > > > > Toute aide sera la bienvenue. Merci d'avance!
> > > > > >
> > > > >
> > > >
> > >
> >
>
lundi 13 janvier 2003 à 14:44:07 | Re : I NEED SOMEBODY HELP

lerilcy

euuuh oui
la ligne c'est:
0040D753 int 3

Mais ca m'aide pas beaucoup, je debute alors le debuggeur..


-------------------------------
Réponse au message :
-------------------------------

>
> Ben tu lances le programme sous le debugger de Visual C++ et normallement il devrait se placer sur la ligne de code qui le fait planter.
>
> -------------------------------
> Réponse au message :
> -------------------------------
>
> > Merci kaid
> > Et comme t'a l'air d'en etre un (en c).
> > tu saurais pas ce que c'est que ce message, stp:
> >
> > Ms Visual c++ - Debug library
> >
> > Debug error!
> > program: c:\decoupe.exe
> > abnormal program termination
> > Press retry to debug
> >
> > il apparait pendant l'execution.
> >
> > je fait retry:
> >
> > Loaded symbols for 'C:\decoupe.exe'
> > Loaded 'C:\WINDOWS\system32\ntdll.dll', no matching symbolic information found.
> > Loaded 'C:\WINDOWS\system32\kernel32.dll', no matching symbolic information found.
> > Loaded 'C:\WINDOWS\system32\comctl32.dll', no matching symbolic information found.
> > Loaded 'C:\WINDOWS\system32\gdi32.dll', no matching symbolic information found.
> > Loaded 'C:\WINDOWS\system32\user32.dll', no matching symbolic information found.
> > Loaded 'C:\WINDOWS\system32\advapi32.dll', no matching symbolic information found.
> > Loaded 'C:\WINDOWS\system32\rpcrt4.dll', no matching symbolic information found.
> > Loaded 'C:\WINDOWS\system32\winspool.drv', no matching symbolic information found.
> > Loaded 'C:\WINDOWS\system32\msvcrt.dll', no matching symbolic information found.
> > Loaded 'C:\WINDOWS\system32\comdlg32.dll', no matching symbolic information found.
> > Loaded 'C:\WINDOWS\system32\shlwapi.dll', no matching symbolic information found.
> > Loaded 'C:\WINDOWS\system32\shell32.dll', no matching symbolic information found.
> > Loaded 'C:\WINDOWS\system32\imm32.dll', no matching symbolic information found.
> > Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.10.0_x-ww_f7fb5805\comctl32.dll', no matching symbolic information found.
> > Loaded 'C:\WINDOWS\system32\uxtheme.dll', no matching symbolic information found.
> > Loaded 'C:\WINDOWS\system32\msctf.dll', no matching symbolic information found.
> > Loaded 'C:\WINDOWS\system32\msctfime.ime', no matching symbolic information found.
> > Loaded 'C:\WINDOWS\system32\ole32.dll', no matching symbolic information found.
> > Loaded 'C:\WINDOWS\system32\msimtf.dll', no matching symbolic information found.
> > Loaded 'C:\WINDOWS\system32\version.dll', no matching symbolic information found.
> > Loaded 'C:\WINDOWS\system32\apphelp.dll', no matching symbolic information found.
> > The thread 0x340 has exited with code 0 (0x0).
> > The thread 0x1A4 has exited with code -2147483645 (0x80000003).
> > The program 'C:\cyril\Decoupage\decoupe\Debug\decoupe.exe' has exited with code -2147483645 (0x80000003).
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > -------------------------------
> > Réponse au message :
> > -------------------------------
> >
> > >
> > > Tu as une instance de ton programme qui est en cours d'exécution. Fermes-la et tu verras que la compil' se passera beaucoup mieux.
> > >
> > > -------------------------------
> > > Réponse au message :
> > > -------------------------------
> > >
> > > > En effet, merci beaucoup!
> > > >
> > > > Putain! maintenant il veut meme plus compiler ...
> > > >
> > > > Compiling...
> > > > main.cpp
> > > > Linking...
> > > > LINK : fatal error LNK1168: cannot open Debug/decoupe.exe for writing
> > > > Error executing link.exe.
> > > >
> > > > alors qu'il existe Debug/decoupe.exe
> > > >
> > > >
> > > > -------------------------------
> > > > Réponse au message :
> > > > -------------------------------
> > > >
> > > > >
> > > > > Peut-être que "c:\\totototo" serait plus adapté comme paramètre en nom de fichier.
> > > > >
> > > > > -------------------------------
> > > > > Réponse au message :
> > > > > -------------------------------
> > > > >
> > > > > > Normalement oui! avec la commande
> > > > > >
> > > > > > Fichier.Open(Nomfichier,CFile::modeCreate|CFile::modeRead|CFile::modeWrite);
> > > > > >
> > > > > > dans le file.cpp de ma Cfile
> > > > > >
> > > > > > je passe en parametre Nomfichier ="c:\totototo" dans mon main
> > > > > > donc normalement ca devrait ouvrir le fichier ,et le creer si il est inexistant.
> > > > > >
> > > > > > Merci de ton aide...
> > > > > >
> > > > > >
> > > > > > -------------------------------
> > > > > > Réponse au message :
> > > > > > -------------------------------
> > > > > >
> > > > > > >
> > > > > > > La méthode Seek() teste par la ligne ASSERT(m_hFile != (UINT)hFileNull) si un fichier est attaché à l'objet courant.
> > > > > > > Dans ton cas, c'est non. As-tu spécifié un fichier ? Est-il ouvert ?
> > > > > > > -------------------------------
> > > > > > > Réponse au message :
> > > > > > > -------------------------------
> > > > > > >
> > > > > > > > Mon programme coupe des fichiers en part egales puis les recompose dans un 2eme temps.
> > > > > > > >
> > > > > > > > Un peu comme les compresseurs type RZsplit Winrar...
> > > > > > > >
> > > > > > > > A la compilation j'ai 0 erreurs 0 warnings MAIS une erreur bloque l'execution en me mettant un message :
> > > > > > > >
> > > > > > > > ------------------------------------------------------------------
> > > > > > > > Microsoft Visual C++ Debug library
> > > > > > > > Program: C:\decoupage.exe
> > > > > > > > File:filecore.cpp
> > > > > > > > line:258
> > > > > > > > For information on how your program can cause an assertion failure, see the visual c++ doc on asserts.
> > > > > > > >
> > > > > > > > ABANDONNER RECOMMENCER IGNORER
> > > > > > > > -------------------------------------------------------------------
> > > > > > > >
> > > > > > > > filecore.cpp ligne 258
> > > > > > > >
> > > > > > > > LONG CFile::Seek(LONG lOff, UINT nFrom)
> > > > > > > > {
> > > > > > > > ASSERT_VALID(this);
> > > > > > > >
> > > > > > > > 258--> ASSERT(m_hFile != (UINT)hFileNull); //ligne 258
> > > > > > > >
> > > > > > > > ASSERT(nFrom == begin || nFrom == end || nFrom == current);
> > > > > > > > ASSERT(begin == FILE_BEGIN && end == FILE_END && current == FILE_CURRENT);
> > > > > > > >
> > > > > > > > DWORD dwNew = ::SetFilePointer((HANDLE)m_hFile, lOff, NULL, (DWORD)nFrom);
> > > > > > > > if (dwNew == (DWORD)-1)
> > > > > > > > CFileException::ThrowOsError((LONG)::GetLastError());
> > > > > > > >
> > > > > > > > return dwNew;
> > > > > > > > }
> > > > > > > >
> > > > > > > >
> > > > > > > > Toute aide sera la bienvenue. Merci d'avance!
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
lundi 13 janvier 2003 à 14:45:36 | Re : I NEED SOMEBODY HELP

lerilcy

0040D74B add esp,14h
0040D74E cmp eax,1
0040D751 jne _NMSG_WRITE+74h (0040d754)
-->0040D753 int 3
0040D754 cmp dword ptr [___error_mode (00532b44)],1
0040D75B je _NMSG_WRITE+8Fh (0040d76f)

C de l'assembleur je crois, j'y connais rien

-------------------------------
Réponse au message :
-------------------------------

> euuuh oui
> la ligne c'est:
> 0040D753 int 3
>
> Mais ca m'aide pas beaucoup, je debute alors le debuggeur..
>
>
> -------------------------------
> Réponse au message :
> -------------------------------
>
> >
> > Ben tu lances le programme sous le debugger de Visual C++ et normallement il devrait se placer sur la ligne de code qui le fait planter.
> >
> > -------------------------------
> > Réponse au message :
> > -------------------------------
> >
> > > Merci kaid
> > > Et comme t'a l'air d'en etre un (en c).
> > > tu saurais pas ce que c'est que ce message, stp:
> > >
> > > Ms Visual c++ - Debug library
> > >
> > > Debug error!
> > > program: c:\decoupe.exe
> > > abnormal program termination
> > > Press retry to debug
> > >
> > > il apparait pendant l'execution.
> > >
> > > je fait retry:
> > >
> > > Loaded symbols for 'C:\decoupe.exe'
> > > Loaded 'C:\WINDOWS\system32\ntdll.dll', no matching symbolic information found.
> > > Loaded 'C:\WINDOWS\system32\kernel32.dll', no matching symbolic information found.
> > > Loaded 'C:\WINDOWS\system32\comctl32.dll', no matching symbolic information found.
> > > Loaded 'C:\WINDOWS\system32\gdi32.dll', no matching symbolic information found.
> > > Loaded 'C:\WINDOWS\system32\user32.dll', no matching symbolic information found.
> > > Loaded 'C:\WINDOWS\system32\advapi32.dll', no matching symbolic information found.
> > > Loaded 'C:\WINDOWS\system32\rpcrt4.dll', no matching symbolic information found.
> > > Loaded 'C:\WINDOWS\system32\winspool.drv', no matching symbolic information found.
> > > Loaded 'C:\WINDOWS\system32\msvcrt.dll', no matching symbolic information found.
> > > Loaded 'C:\WINDOWS\system32\comdlg32.dll', no matching symbolic information found.
> > > Loaded 'C:\WINDOWS\system32\shlwapi.dll', no matching symbolic information found.
> > > Loaded 'C:\WINDOWS\system32\shell32.dll', no matching symbolic information found.
> > > Loaded 'C:\WINDOWS\system32\imm32.dll', no matching symbolic information found.
> > > Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.10.0_x-ww_f7fb5805\comctl32.dll', no matching symbolic information found.
> > > Loaded 'C:\WINDOWS\system32\uxtheme.dll', no matching symbolic information found.
> > > Loaded 'C:\WINDOWS\system32\msctf.dll', no matching symbolic information found.
> > > Loaded 'C:\WINDOWS\system32\msctfime.ime', no matching symbolic information found.
> > > Loaded 'C:\WINDOWS\system32\ole32.dll', no matching symbolic information found.
> > > Loaded 'C:\WINDOWS\system32\msimtf.dll', no matching symbolic information found.
> > > Loaded 'C:\WINDOWS\system32\version.dll', no matching symbolic information found.
> > > Loaded 'C:\WINDOWS\system32\apphelp.dll', no matching symbolic information found.
> > > The thread 0x340 has exited with code 0 (0x0).
> > > The thread 0x1A4 has exited with code -2147483645 (0x80000003).
> > > The program 'C:\cyril\Decoupage\decoupe\Debug\decoupe.exe' has exited with code -2147483645 (0x80000003).
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > -------------------------------
> > > Réponse au message :
> > > -------------------------------
> > >
> > > >
> > > > Tu as une instance de ton programme qui est en cours d'exécution. Fermes-la et tu verras que la compil' se passera beaucoup mieux.
> > > >
> > > > -------------------------------
> > > > Réponse au message :
> > > > -------------------------------
> > > >
> > > > > En effet, merci beaucoup!
> > > > >
> > > > > Putain! maintenant il veut meme plus compiler ...
> > > > >
> > > > > Compiling...
> > > > > main.cpp
> > > > > Linking...
> > > > > LINK : fatal error LNK1168: cannot open Debug/decoupe.exe for writing
> > > > > Error executing link.exe.
> > > > >
> > > > > alors qu'il existe Debug/decoupe.exe
> > > > >
> > > > >
> > > > > -------------------------------
> > > > > Réponse au message :
> > > > > -------------------------------
> > > > >
> > > > > >
> > > > > > Peut-être que "c:\\totototo" serait plus adapté comme paramètre en nom de fichier.
> > > > > >
> > > > > > -------------------------------
> > > > > > Réponse au message :
> > > > > > -------------------------------
> > > > > >
> > > > > > > Normalement oui! avec la commande
> > > > > > >
> > > > > > > Fichier.Open(Nomfichier,CFile::modeCreate|CFile::modeRead|CFile::modeWrite);
> > > > > > >
> > > > > > > dans le file.cpp de ma Cfile
> > > > > > >
> > > > > > > je passe en parametre Nomfichier ="c:\totototo" dans mon main
> > > > > > > donc normalement ca devrait ouvrir le fichier ,et le creer si il est inexistant.
> > > > > > >
> > > > > > > Merci de ton aide...
> > > > > > >
> > > > > > >
> > > > > > > -------------------------------
> > > > > > > Réponse au message :
> > > > > > > -------------------------------
> > > > > > >
> > > > > > > >
> > > > > > > > La méthode Seek() teste par la ligne ASSERT(m_hFile != (UINT)hFileNull) si un fichier est attaché à l'objet courant.
> > > > > > > > Dans ton cas, c'est non. As-tu spécifié un fichier ? Est-il ouvert ?
> > > > > > > > -------------------------------
> > > > > > > > Réponse au message :
> > > > > > > > -------------------------------
> > > > > > > >
> > > > > > > > > Mon programme coupe des fichiers en part egales puis les recompose dans un 2eme temps.
> > > > > > > > >
> > > > > > > > > Un peu comme les compresseurs type RZsplit Winrar...
> > > > > > > > >
> > > > > > > > > A la compilation j'ai 0 erreurs 0 warnings MAIS une erreur bloque l'execution en me mettant un message :
> > > > > > > > >
> > > > > > > > > ------------------------------------------------------------------
> > > > > > > > > Microsoft Visual C++ Debug library
> > > > > > > > > Program: C:\decoupage.exe
> > > > > > > > > File:filecore.cpp
> > > > > > > > > line:258
> > > > > > > > > For information on how your program can cause an assertion failure, see the visual c++ doc on asserts.
> > > > > > > > >
> > > > > > > > > ABANDONNER RECOMMENCER IGNORER
> > > > > > > > > -------------------------------------------------------------------
> > > > > > > > >
> > > > > > > > > filecore.cpp ligne 258
> > > > > > > > >
> > > > > > > > > LONG CFile::Seek(LONG lOff, UINT nFrom)
> > > > > > > > > {
> > > > > > > > > ASSERT_VALID(this);
> > > > > > > > >
> > > > > > > > > 258--> ASSERT(m_hFile != (UINT)hFileNull); //ligne 258
> > > > > > > > >
> > > > > > > > > ASSERT(nFrom == begin || nFrom == end || nFrom == current);
> > > > > > > > > ASSERT(begin == FILE_BEGIN && end == FILE_END && current == FILE_CURRENT);
> > > > > > > > >
> > > > > > > > > DWORD dwNew = ::SetFilePointer((HANDLE)m_hFile, lOff, NULL, (DWORD)nFrom);
> > > > > > > > > if (dwNew == (DWORD)-1)
> > > > > > > > > CFileException::ThrowOsError((LONG)::GetLastError());
> > > > > > > > >
> > > > > > > > > return dwNew;
> > > > > > > > > }
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > Toute aide sera la bienvenue. Merci d'avance!
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

1 2

Cette discussion est classée dans : long, file, begin, assert, nfrom


Répondre à ce message

Sujets en rapport avec ce message

Problème avec traitement de fichier (cplusplus !) [ par Sianrin ] Voila, j'explique mon problème. Pour voir un peu comment les accès au fichiers se géraient en cplusplus, je me suis mis en tête de faire un programme Copie de fichiers de nom long avec Visual C++ sous Windows98 [ par ABT ] Salut, Je développe une application avec Visual C++, l'une de ses est de copier des fichiers à partir d'un répertoire vers un autre. J'utilise pour ce prob de compilation [ par jacky66 ] salutje debute dans la prog c++pour mon 1 er prog quand je compile il me sort un message fatal error C1083: Cannot open include file: 'idoctidm.h': No Pb avec une fonction windows... [ par Steak ] j'ai un petit probleme avec la fonction NT UpdateResource... voila ce que dit le sdk win32 : BOOL UpdateResource( HANDLE hUpdate, // update-file handl long double et VC++ [ par omi ] J'ai un leger probleme avec visual C++ 7.0 .N'y a t'il pas un moyen de lui faire accepter les long double car il les prend pour des double normaux cad Probleme avec le registre [ par punx120 ] Voila j'aimerais recuperer la valeur d'une chaine dans la base des registres, mais je n'y arrive pasvoici le code que j'utilise : #include #include vo Enregistrer en HEXA un texte avec gcc !! [ par UncleShu ] /* * Ce programme affiche le fichier en HEXADECIMAL et se copie lui-même avec * une autre exetenstion (.txt). Moi je voudrais qui affiche le fichier * Petit probleme de code en C sur Linux !! [ par UncleShu ] Je voudrais créer un fichier dans le réperoire personnel d'un utilisateur mais mon code ne marche pas !!#include #include #include #define DIR $HOM conversion [ par coyotedef ] salut!!lors de la compilation de mon code une erreur apparait. impossible de trouver un remede. "cannot convert parameter 1 from 'char [10]' to 'char' devc++ et glut [ par aluco ] j'ai bo ajouter les fichiers: Options -> Compiler Options -> Add the following commands when calling compiler -> -lglut32 -lopengl32 -lglu32 dans devc


Nos sponsors


Sondage...

CalendriCode

Février 2012
LMMJVSD
  12345
6789101112
13141516171819
20212223242526
272829    

Consulter la suite du CalendriCode

Photothèque

 
Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel (EBArtSoft), Merci à Vincent pour ses précieux conseils.
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés

Google Coop CodeS-SourceS Google Coop CodeS-SourceS
Temps d'éxécution de la page : 5,132 sec (3)

Nous contacter | Annoncer sur CodeS-SourceS | Mentions légales