B4J Question 4.2 compiling custom views to library

stevel05

Expert
Licensed User
Longtime User
I have a double problem in this one.

When trying top compile my ReportWriter code to a library it works in release mode. In Debug mode I get an error on loading a layout:

java.lang.RuntimeException: java.lang.Exception: Sub CREATE_CUSTOM_VIEW was not found.

So in my normal manner, I cut down the code to just the loading process. Again it works in release mode, but fails in debug mode but it also gives a different error.

java.lang.IllegalArgumentException: wrong number of arguments

I attach the cut down project, and the library and a test project for the reportwriter.
 

Attachments

  • CutDown.zip
    3.8 KB · Views: 216
  • LibTest.zip
    24.1 KB · Views: 189
  • ReportWriterLibs.zip
    39.9 KB · Views: 185

stevel05

Expert
Licensed User
Longtime User
Damn,

Sorry, that's the problem with that cut down project. There is no library. It's the same project compiled as a library. Sorry about that it shouldn't be selected in the libs.

Just the initial issue to sort, as it works in the cut down version.
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
Here is the Enum Class Lib.
 

Attachments

  • EnumClassLib.zip
    2.4 KB · Views: 202
Upvote 0

stevel05

Expert
Licensed User
Longtime User
The next step in the test of the cut down was to compile it to a lib and then run it. That also fails as with the main project. with the Sub CREATE_CUSTOM_VIEW was not found error.
 

Attachments

  • CVLibsTest.zip
    3.7 KB · Views: 186
  • CutDownLibTest.zip
    2.9 KB · Views: 198
Upvote 0

stevel05

Expert
Licensed User
Longtime User
Yes, that's fixed it, thanks very much.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…