Barcode DataMatrix: 2 AV bugs fix suggestion
There are 2 bugs found, that runs to AV in multithreaded or interrupted by timer application.
First one in "module" procedure. Original algorithm dont fix possible buffer overrun.
Second one in "nrow, ncol" variables declaration. This variables must be declared in class, not as standalone unit shared variables.
Here is my suggestion with fixes.