HISE Logo Forum
    • Categories
    • Register
    • Login

    Killing Thread by Force!!

    Scheduled Pinned Locked Moved General Questions
    2 Posts 2 Posters 119 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • LindonL
      Lindon
      last edited by

      So just a note here about an error I was getting on loading my project into HISE, and the "strange" solution:

      Killing thread by force!!!

      So generally speaking the consensus when I raised this last time was that it was some timer (probably) I had that was running out of control, so....

      I disabled every timer in my project -- no difference...

      Well perhaps it was some recursive set of calls I was making, luckily my project is modularised, so I started turning off chunks of it...

      ..(time passed)...

      So got to the point where I could turn on/off an include and get this problem, so within the include file I started commenting out large chunks of code....

      ...(time passed again)...

      So I got to the point where I could remove/include a 100 lines of code and get this to happen/not happen...

      But... this code was just some variable array declarations and widget assignments inside that...so not calling anything...

      unusually for me these line were not in their own namespace, so I put the whole file into its own namespace....

      ...and it went away.....

      So:

      1. Always always always use name spaces... (but we all knew this already right?)
      2. Killing thread by force, may have NOTHING to do with your timers or recursive calls... you may be running out of variable space because you didnt do no.1 here....

      HISE Development for hire.
      www.channelrobot.com

      gorangroovesG 1 Reply Last reply Reply Quote 2
      • gorangroovesG
        gorangrooves @Lindon
        last edited by

        @Lindon yeah, this has been very annoying lately to me too. I would open a large project and if I try to navigate to one of the included external scripts, it would throw this killer.
        If I reopen the project, then recompile the code again before doing anything, then switch to the external script, it would be fine.

        It happens in weird places.

        Glad you determined the most likely cause!

        Goran Rista
        https://gorangrooves.com

        Handy Drums and Handy Grooves
        https://library.gorangrooves.com

        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        31

        Online

        1.7k

        Users

        11.8k

        Topics

        102.8k

        Posts