David Tschumperlé

Results 175 comments of David Tschumperlé

> The file is huge (more than 3Mo for a header file is ridiculous). What is a non-ridiculous size for a header file then ? Is there some "official" threshold...

> Not necessarily in the lib itself, but in the using application it is. In that case, the application can of course create a pre-compiled module where the used methods...

> If the idea is to let the compiler manage everything itself, let's push the idea to its absurdity. Let's forget about forward declaration and let's include everything everywhere, it...

The second loop `cimg_forXY(img,x,y)` is definitely not the same a the first `for (y=0; y< H; y += del) for (x=0; x< W; x +=del)`, as the latter uses a...

A reading on the basic functioning of C++ should answer this question : https://en.cppreference.com/w/cpp/language/destructor

Thanks. I will investigate. For now, I've just run your Python code, this generated a very small `.bmp` file `crash.bmp` of size 746 bytes. When I try reading it with...

OK, was using Python 2.7 (the one by default). With Python3, the generated file is in binary mode and reproduce the bug.

Hum, still not look like a .bmp file anyway (112 bytes): ~~~ $ file crash.bmp crash.bmp: data ~~~

Anyway, I've added some code to check the validity of files. It should help: https://github.com/dtschump/CImg/commit/619cb58dd90b4e03ac68286c70ed98acbefd1c90

> I think this wont work when reading a virtual file buffer (FILE*) Indeed, but in this case, as the data are read byte by byte, there is not much...