help - script locks solid in trivial code - Script Writing - CHDK Forum

help - script locks solid in trivial code

  • 6 Replies
  • 3247 Views
*

Offline bugbear

  • **
  • 57
  • A630
    • woodwork on geocities
help - script locks solid in trivial code
« on: 23 / April / 2010, 05:04:23 »
Advertisements

*

Offline zeno

  • *****
  • 889
Re: help - script locks solid in trivial code
« Reply #1 on: 23 / April / 2010, 10:46:24 »
As far as I can tell, the main problem is that you've got numbers that are too big (uBasic numeric literals are limited to 6 digits, though I'm not sure that's documented anywhere outside the code). So your 2520000 is too long. You can rewrite it as 252*10000 and it should be OK.

Unfortunately the uBasic interpreter, when scanning for a label to jump to, hits the overlarge numbers and instead of stopping at the error, it loops. My uBasic debugger does the same thing (I guess I ought to fix it!).
A570, S100, Ixus 127
Author of ASSIST, STICK, WASP, ACID, SDMInst, LICKS, WICKS, MacBoot, UBDB, CFGEdit

*

Offline bugbear

  • **
  • 57
  • A630
    • woodwork on geocities
Re: help - script locks solid in trivial code
« Reply #2 on: 23 / April / 2010, 13:03:11 »
As far as I can tell, the main problem is that you've got numbers that are too big (uBasic numeric literals are limited to 6 digits, though I'm not sure that's documented anywhere outside the code). So your 2520000 is too long. You can rewrite it as 252*10000 and it should be OK.

Unfortunately the uBasic interpreter, when scanning for a label to jump to, hits the overlarge numbers and instead of stopping at the error, it loops. My uBasic debugger does the same thing (I guess I ought to fix it!).

Genius. My script now runs, and I can debug the rest of it.

Many thanks.

   BugBear

*

Offline bugbear

  • **
  • 57
  • A630
    • woodwork on geocities
Re: help - script locks solid in trivial code
« Reply #3 on: 15 / January / 2013, 04:46:59 »
I was attempting to find my old post as a reference, but it seems to now be missing.

Where has it gone?

   BugBear (back after a long interval)


Re: help - script locks solid in trivial code
« Reply #4 on: 15 / January / 2013, 09:52:36 »
I was attempting to find my old post as a reference, but it seems to now be missing. Where has it gone?
Over the last couple of years,  and after at least one server change, and several forum software version updates,  things like attachments and a few posts have tended to get lost.   FWIW,  here's what the forum remembers you having posted :

http://chdk.setepontos.com/index.php?action=profile;area=showposts;u=909

Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline bugbear

  • **
  • 57
  • A630
    • woodwork on geocities
Re: help - script locks solid in trivial code
« Reply #5 on: 17 / January / 2013, 04:05:57 »
I was attempting to find my old post as a reference, but it seems to now be missing. Where has it gone?
Over the last couple of years,  and after at least one server change, and several forum software version updates,  things like attachments and a few posts have tended to get lost.   FWIW,  here's what the forum remembers you having posted :

http://chdk.setepontos.com/index.php?action=profile;area=showposts;u=909



Fair enough - I was just a little disconcerted; I thought I'd been censor'd or purged for being inactive.

Thanks for responding.

 BugBear

Re: help - script locks solid in trivial code
« Reply #6 on: 17 / January / 2013, 08:30:20 »
Fair enough - I was just a little disconcerted; I thought I'd been censor'd or purged for being inactive.
I think there was a purge of inactive members last year but it was limited to people who had joined and never posted anything.
Ported :   A1200    SD940   G10    Powershot N    G16

 

Related Topics