I get an error, "too many parameters",
in Debug-mode when compiling a project in B4J in a Background Worker class .
This is the error:
B4J Version: 6.01
Parsing code. (0.02s)
Compiling code. Error
Error compiling program.
Error description: Too many parameters.
Error occurred on line: 96
strBarCode = mybarcode.ReturnBarcode(Dir & "/" & f, 300)
Word: 300
mybarcode.ReturnBarcode(par1,par2) calls the following method in my java-library:
(wrapper)
@BA.RaisesSynchronousEvents
public String ReturnBarcode(String FilePath, float DpiValue) {
List<BufferedImage> myImageList = conv.convert(FilePath, DpiValue);
String myResult = "";
for (BufferedImage img : myImageList) {
try {
BarCode code = new BarCode();
code = reader.readBarcode(img, code);
myResult = code.getBarcodes().get(0).getCode();
} catch (NotFoundException e) {
myResult = "error";
}
}
myImageList.clear();
return myResult;
}
which calls
(original class)
public List<BufferedImage> convert(String file, float dpivalue) {
try {
File sourceFile = new File(file);
//......................
In
release mode, it compiles just fine and everything works (both on linux and windows).
Since it is working fine, I am not really concerned but just wanted to know if I can fix the error in debug-mode.
Thanks.