hi,
I have another java.lang.StackOverflowError that I cannot explain. I have a simple module with a form sequences. On this form, I have a button with the following formmethod attached:
plugins.dialogs.showInfoDialog('Title',kyd_mod_tls_gm_getNewValue('invoiceno',1,1),'OK');
The kyd_mod_tls_gm_getNewValue method is also a formmethod for form sequences and contains the following code:
var sequence = arguments[0];
var company = arguments[1];
var count = arguments[2];
controller.find();
sequence_name = sequence;
companyid = utils.stringToNumber(company);
var recordCount = controller.search();
if (recordCount != 1)
{
controller.loadAllRecords();
return;
}
var counter = 0;
while(!databaseManager.acquireLock(foundset,-1))
{
application.sleep(1000)
counter++
if(counter > 60)
{
controller.loadAllRecords();
return;
}
}
current_int += count;
var result = eval(sequence_mask);
databaseManager.releaseAllLocks();
controller.loadAllRecords();
return result;
When I run this code by clicking the button on the form when the debugger is off, I get the java.lang.StackOverflowError.
But, and this is what I cannot understand, when I run this method the same way with the debugger on, it works flawlessy
To make sure it’s not something with my installation, I did a completely fresh installation of 2.2 RC2, but I get the same result there.
I put in all kind of application.outputs, to try to figure out where the error occurs and it seems it is in the first controller.find/search.
Who can help…
Paul