Accueil > Forum > > > > I NEED SOMEBODY HELP
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! > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
|
|
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
Livres en rapport
|
Derniers Blogs
[SHAREPOINT] LES SESSIONS TECHDAYS 2012.[SHAREPOINT] LES SESSIONS TECHDAYS 2012. par Patrick Guimonet
Voici donc pour ceux qui n'ont pas pu venir, ou ceux qui n'ont pas pu toutes les suivre la liste des sessions SharePoint aux TechDays 2012, que je mettrais à jour dès que les liens des vidéo seront disponibles. Ou ici : http...
Cliquez pour lire la suite de l'article par Patrick Guimonet TECHDAYS PARIS 2012 : SESSION PLEINIèRE JOUR 3TECHDAYS PARIS 2012 : SESSION PLEINIèRE JOUR 3 par ROMELARD Fabrice
Speaker: Bernard Ourghanlian Cette session est comme chaque jour transmise en live par BrainSonic, et j'ai donc suivi cette troisième pleinière par ce moyen sur mon iPad . Elle est dédiée comme chaque année à la mise en perspective de l'é...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice MISHRA READER : UN LECTEUR RSS TRèS ZUNE STYLE EN OPEN SOURCE !MISHRA READER : UN LECTEUR RSS TRèS ZUNE STYLE EN OPEN SOURCE ! par Vko
Hier durant une session dédiée aux Techdays 2012, j'ai eu le plaisir d'annoncer la sortie de la Béta 2 de Mishra Reader. C'est quoi ? Pour les utilisateurs, c'est une vraie expérience de lecture de flux RSS sur Windows. Rien à voir avec les produit...
Cliquez pour lire la suite de l'article par Vko [FRAMEWORK 4] LES TASKS ET LE THREAD UI[FRAMEWORK 4] LES TASKS ET LE THREAD UI par fathi
Je viens de passer quelques temps au TechDay's et j'ai pu voir pas mal de session intéressante. Par contre une chose m'a un peu étonné lors de certaines de ces sessions qui abordaient les améliorations du framework .NET (donc le 4.5) : en gros, bea...
Cliquez pour lire la suite de l'article par fathi WORKFLOW FOUNDATION 3 A UN PIED DANS LA TOMBEWORKFLOW FOUNDATION 3 A UN PIED DANS LA TOMBE par JeremyJeanson
Depuis déjà un an, je conseille vivement les utilisateurs de Workflow Foundation 3 à migrer vers la version 4. L'information qui va suivre ne devrait donc pas trop prendre au dépourvu les personnes qui m'ont suivi. Je profite de ce poste, pour faire le re...
Cliquez pour lire la suite de l'article par JeremyJeanson
Logiciels
Academy System (17.2.1.0)ACADEMY SYSTEM (17.2.1.0)Logiciel de gestion des établissements.
- élèves/étudiants (inscription, dossier, absence...)
-... Cliquez pour télécharger Academy System Easy-Planning (1.0.0.1)EASY-PLANNING (1.0.0.1)Basé sur les mêmes principes que MyPlanning, Easy-Planning permet de créer des plannings sous la ... Cliquez pour télécharger Easy-Planning COLLECTOR PLUS (3.00B)COLLECTOR PLUS (3.00B)COLLECTOR PLUS version 3.00B est un logiciel utilisant une base de données alimentée par :
- L... Cliquez pour télécharger COLLECTOR PLUS PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V7.4)PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V7.4)PONAMEDIA TV DEVIENS HELLLOOO FLASH
LA TV SUR VOTRE ORDINATEUR.
Toute une plateforme Multi... Cliquez pour télécharger PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO LettresFaciles 2011 (8.0.0.1)LETTRESFACILES 2011 (8.0.0.1)LettresFaciles est un logiciel facilitant la création et la rédaction de lettres types.
Son inte... Cliquez pour télécharger LettresFaciles 2011
|