To solve the problem, I deactivated all "try-catch" code in the source, but the error-message is the same.
If I compile in Release-Mode, everything is working.
Thank you Sandman.
I used the search function before but I found a statement from 2013 and meant, that is solved.
Now I understand that there is a limitation from java and I have to split the sourcecode if it is >64k.
My problem is caused by generating a PDF-File ... so I have to check out what is to do.
Hello Erel,
thank you very much for your offer to help.
I found a solution by shortening the code.
It was only a large PDF-Page with a lot of text.
If someone is interested in ... I will post it here.
I wasn't able to create a formula-code with "dip"-measures ...
The right way is to do it like this:
B4X:
Dim QuerLinieLinks, QuerLinieOben, QuerLinieRechts As String
QuerLinieLinks = 0
QuerLinieOben = 0
QuerLinieRechts = 595
For i = 0 To 842 Step 10
QuerLinieOben = i
Log("M070-0417 -----► QuerLinieOben: "&QuerLinieOben&"")
PDF.Canvas.DrawLine(QuerLinieLinks, QuerLinieOben, QuerLinieRechts, QuerLinieOben, Colors.LightGray, 1)
Next
etc. ...
Do you use the Printing-Library or your PDFium-Lib?
I guess ... PDFium
I use Printing and I should be able to shorten the code by splitting it in small Subs ... like this one (but it doesn't work)
B4X:
Sub Marker
Dim PDF As PdfDocument
PDF.Initialize
PDF.Canvas.DrawLine(14, 289, 27, 289, Colors.Black, 1)
PDF.Canvas.DrawLine(564, 289, 577, 289, Colors.Black, 1)
End Sub
I should make different Subs for a Page-Header and a Page-Footer ...