FET Forum

FET Support (English) => General Stuff => Topic started by: Mejda on May 06, 2012, 02:23:11 PM

Title: Execution if assert
Post by: Mejda on May 06, 2012, 02:23:11 PM
please I create a new class in the interface folder named "weboutput.cpp" and I do a copy of a part of my code from class timetableexport (in the engine folder) to this new class  but i have a problem in execution of assert.
the message is  "L'assertion « gt.rules.initialized && gt.rules.internalStructureComputed » a échoué."
I can't identify where is the problem
thank you
Title: Re: Execution if assert
Post by: Liviu Lalescu on May 06, 2012, 02:53:49 PM
You need to compute the rules internal structure, then generate the timetable, and only after that call this routine.

Please see timetablegenerateform.cpp, function TimetableGenerateForm::start(), then TimetableGenerateForm::simulationFinished(). To have a timetable, you need to do similarly to them.