|
|
|
Subject: Weird size limit on custom classes? |
|
|
|
Product Area: Domino Designer on Eclipse (DDE) |
|
Technical Area: Functionality |
|
Platform: Windows - 64 bit |
|
Release: 8.5 |
|
Reproducible: Always |
|
|
|
|
I've been rewriting a database, converting a lot of the code into custom classes. It was all going well, but I've hit a weird roadblock today.
I basically have three custom classes - 'timesheet', which inherits from 'employee', which in turn inherits from 'timeclock'. I was adding some code today when I got a "token is too long" message. I figured my code (in the declarations section) was too long, so I split the library into three, one for each class.
The token too long message disappeared, and everything compiled, but when I ran the code I got a "type mismatch on external name: EMPLOYEE" error. I spent hours trying to fix my new code, assuming it was a problem there, but through a process of elimination (and commenting out of code) I eventually came to the conclusion that the code was fine, and the problem might relate to the token is too long error.
The issue wasn't my new code, it was in the adding of a new property to store the result of my new code. If I add even one new property to any of my three classes, I get the type mismatch error for 'EMPLOYEE". Remove it, and the code runs fine. The property can be anything, like 'dim test as string'.
For example, this would work:
class test
dim prop1 as string
dim prop2 as string
public sub new
end sub
end class
but this wouldn't:
class test
dim prop1 as string
dim prop2 as string
dim prop3 as string
public sub new
end sub
end class
Obviously my code is way more complex, but I wanted to give an example.
Anyway, it's almost as if I have reached some sort of limit in Notes for the amount of properties an object can have. To make matters more confusing, I can happily add code outside of the properties (ie in the various subs and functions inside the class) - it's literally just that one area the causes the problem, and I will compile fine.
Any ideas?
Thanks,
Karl
Feedback number WEBB7TZ22X created by ~Samuel Nonfoopuloden on 07/16/2009
Status: Open
Comments:
Weird size limit on custom classes?... (~Samuel Nonfoop... 16.Jul.09)
. . Couple of things worth trying (~Miriam Opveluz... 16.Jul.09)
. . . . Solved, I think, but it seems to be... (~Samuel Nonfoop... 16.Jul.09)
. . . . . . OO in LS is more than a little arca... (~Holly Zekhipis... 17.Jul.09) |
| |
|