Giter Club home page Giter Club logo

Comments (5)

leadedge avatar leadedge commented on August 12, 2024

That looks OK, but maybe the equality can't be tested like that, such as an example from documentation.

std::unordered_setstd::string::const_iterator foundSender = m_senders.find (namestring);

if ( foundSender == m_senders.end() )

Also elsewhere we have -

auto foundSender = m_senders->find(namestring);

from spout2.

datee avatar datee commented on August 12, 2024

Seems there was a stack issue here - though the error was a bit strange i was able to fix it. Thanks!

from spout2.

leadedge avatar leadedge commented on August 12, 2024

I am not sure exactly what the problem was or if other people might have the same trouble.

Is the problem isolated to your project or should I do something here. I can clean it up to use
auto foundSender = m_senders->find(namestring);
Also I would check for empty namestring.

from spout2.

datee avatar datee commented on August 12, 2024

Hm, no i dont think the equality itself was the issue here, since I had crashes with all kinds of access to m_senders. (and only to m_senders , and m_senders->begin() was the exception point) Hard to say if anyone else will have the same issue -since this unexpected behaviour only happens in certain scenarios when im creating a sender object on the stack. Closed this for now until i can say for sure why the problem occurs.

from spout2.

leadedge avatar leadedge commented on August 12, 2024

OK that's good information and I will look into it a little. Of course please come back if anything comes up.

from spout2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.