I try to integrate FET with a java application as DLL, i have succeed to load library and turn up the engine but when i try to reuse engine for another instance i get message box alert.
please how can i initialize structure of engine for reuse it!
Are you using an older version of FET? This is because the reported line is not the same on my hard disk. If so, maybe you could use the latest version of FET and tell me the new error message.
when i ignore a "assertion failed" i get this message in the console:
Duplicate room - 1
Cannot precompute - data is wrong - aborting
i tried to initialize the structure of engine with an init() function in fet.cpp that i invoke it after each execution of engine:
extern "C" void init(){
INPUT_FILENAME_XML="";
gt.rules.kill();
gt.rules.init();
students_schedule_ready=false;
teachers_schedule_ready=false;
rooms_schedule_ready=false;
}
but without success!
please, what can i need to initialize the entire structure of engine!
You should leave the asserts in place, they are correct.
It seems that when you read the .fet file, you read the same room multiple times.
I don't know where the error is.
If it is possible to compile your project under GNU/Linux, maybe you could send me your code.
this is the entire code of fet.cpp, i used solve function as entry point to run up the engine.
Please send me your whole project, so I can compile it and see why the asserts fail. Only if it is compilable under GNU/Linux.
I see that you use Rules::read with 3 parameters. This means that you modified the Rules class. What modification did you make?
this is the file of rules.cpp with modification.
I see that you use a char* string, and you don't read rules from a file, but from this string. Probably here appear the bugs. Please try to read from a file firstly and see if you still get assert failed. If not, then you know the source of this bug.