Slotnames not recognized

23 views
Skip to first unread message

andrea....@gmail.com

unread,
Jul 3, 2017, 6:53:11 AM7/3/17
to OpenEaagles
Doug,
I have a problem with the Slotnames: it is the first time it happens; I've been using OpenEaagles since version 10.042a (long time ago) and I defined a lot of derived classes with new Slotnames, and all was very good!!!
The problem is that I defined an object of type Component, dooing something (in this case initiate and run an Encounter model between two RPAS to test an Airborn Collision Avoidance System SW), and I defined two slot names, but at runtime they are not recognized. I taylored the application at the very minimum, the main program, the Encounter class and the edl.
At run time I get the error NMAC not known, even if I defined NMAC with the SLOTTABLE macro.
I attach the file...don't you mind to have a look? I'm afraid the problem is in the Parent Class: maybe the Component class is not the proper class whenf I put the Encounter class as a component of the Worldmodel class...?

Thanks a lot

Andrea
dafne.edl
Encounter.cpp
Encounter.hpp
main.cpp
Message has been deleted

Doug

unread,
Jul 8, 2017, 12:34:55 PM7/8/17
to opene...@googlegroups.com
Hi Andrea,

The root problem is that your Encounter class is missing the "STANDARD_CONSTRUCTOR" macro in the constructor.

Doug

Message has been deleted

Doug

unread,
Jul 8, 2017, 12:43:22 PM7/8/17
to opene...@googlegroups.com

andrea....@gmail.com

unread,
Jul 10, 2017, 2:10:07 AM7/10/17
to OpenEaagles
Doug,
thanks a lot!!!! As I presumed it was  really a stupid error from my side....I checked I don't know how many times the code, and always I did not recognize the problem.
The fact is that I developed the class outside OpenEaagles, and when I modified it to integrate in OE, I simply forgot a basic macro....
Thanks a lot for your time.
Andrea
Reply all
Reply to author
Forward
0 new messages