home Forums # Technical Support How to Free Memory

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2062
    Unknown
    Member

    I have an problem with fuzzylite: I don’t know how to free memory from engine e other things. Use just delete doesn’t works, if I try use delete like this the program close with segfault in line ??:
    // variables
    delete d1;
    delete d2;
    delete d3;
    delete engine;

    So, how may I properly free the memory?

    #2063

    Hi,

    thank you for your post.

    Under regular circumstances, the only object you need to delete is the engine. The engine is responsible for deleting all the variables, rules, and objects allocated. A delete engine should be enough to free your memory.

    If you still have issues, please share the code you are using.

    Cheers.

    #2064
    Unknown
    Member

    Sorry for the delay. So, I try to use just delete engine; and even so the error persist.
    I’m using fuzzylite 5.0. I cannot share the entire source, but only the fuzzylite parts. I will do this now, just a minute.

    #2065
    Unknown
    Member
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.