J'avais seulement testé avec un bitmap 24 bits vui, mais il y a bien un problème de pointeur non initialisé avec un bmp 24bits.
Sinon, c'est le 2eme bug dont parlait Kalith:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 long int nbOctets = uNBQuad*RGBQUAD_SIZE; lpstrQuads = new char[uNBQuad];Bref, tu écris dans une zone mémoire qui n'appartient pas à ton tableau.HEAP[Foo.exe]: Heap block at 0051D7E8 modified at 0051D816 past requested size of 26
Résout ce problème.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 long int nbOctets = uNBQuad*RGBQUAD_SIZE; lpstrQuads = new char[nbOctets ];
Partager