Giter VIP home page Giter VIP logo

Comments (5)

nomad-software avatar nomad-software commented on May 30, 2024

I must have used Throwable here for a reason (it's been three years, lol) probably to indeed catch memory errors. IIRC if an error is caught here, the program will crash and show you a Tk dialog box with the problem. This is built-in behaviour in Tcl/Tk.

from tkd.

marrub-- avatar marrub-- commented on May 30, 2024

The program continues execution as normal after displaying an error box. Not being able to crash the application is, surprisingly, a nuisance. 😛

The issue being that I have an external exception handler which needs to run instead of Tk's if an error occurs. Having it always catch everything is a big problem in this case.

from tkd.

nomad-software avatar nomad-software commented on May 30, 2024

Have you got a small example I could look at please?

from tkd.

marrub-- avatar marrub-- commented on May 30, 2024

Sure, here. The program never crashes despite throwing an Error.
I think this could be okay if an option to rethrow on callback errors were available, though I don't know how exactly that would be implemented.

from tkd.

nomad-software avatar nomad-software commented on May 30, 2024

I've done a lot of testing of different solutions and I think just changing Throwable to Exception is the simplest fix. Tkd should just let the program crash on encountering an error in a command. Done in commit: 35e1d91

I've also created a new release for this too: https://github.com/nomad-software/tkd/releases/tag/v1.1.10

from tkd.

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.