Git Product home page Git Product logo

Comments (6)

mtangoo avatar mtangoo commented on July 28, 2024

well, I put that sample quickly and so its a bug. I will have a look into it, but also PR is appreciated

from wxdatabase.

iwbnwif avatar iwbnwif commented on July 28, 2024

On the other hand if this is a bug, then perhaps it would be worth thinking about using some of the wxWidgets smart pointers here. Also for result sets because it would avoid having to close them each time, they would simply go out of focus and be deleted.

Thinking about this a bit more, for the examples it is probably unnecessary. Instead we can just declare the objects locally on the stack.

I still think a smart pointer (i.e. wxScopedPtr) typedef'd to something would be useful for things like transactions and possibly resultsets that can be passed around methods.

from wxdatabase.

mtangoo avatar mtangoo commented on July 28, 2024

Thinking about this a bit more, for the examples it is probably unnecessary. Instead we can just declare the objects locally on the stack.
Yeah that will be better, can you test that and make a PR? I currently work on adding ODBC support so I'm a bit tight (I work on "free time")

I still think a smart pointer (i.e. wxScopedPtr) typedef'd to something would be useful for things like transactions and possibly resultsets that can be passed around methods.

Can you open new Issue on specific things that you want me to add (eg transaction, explaining your solution)?

from wxdatabase.

mtangoo avatar mtangoo commented on July 28, 2024

I will open until this bug is fixed (its simple .. but bug anyway ;))

from wxdatabase.

iwbnwif avatar iwbnwif commented on July 28, 2024

Sorry, closed by accident!

I will look into a concrete scheme for this while I am working on the Firebird backend, so it may take some time.

from wxdatabase.

mtangoo avatar mtangoo commented on July 28, 2024

👍

from wxdatabase.

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.