Bookstore

Recent

Author Topic: [SOLVED] Synedit: invalid BytPos  (Read 5935 times)

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Synedit: invalid BytPos
« Reply #15 on: October 20, 2014, 11:41:43 am »
I'm not picking on you today, honest :-)  I haven't looked around the rest of Syn* code, but are the other exceptions & strings internationalised?
No, it doesn't seem like it: see the code engkin posted.

However, you're not talking me into diving into that as well ;)
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Synedit: invalid BytPos
« Reply #16 on: October 20, 2014, 11:46:16 am »
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

minesadorada

  • Hero Member
  • *****
  • Posts: 605
  • Retired
Re: [SOLVED] Synedit: invalid BytPos
« Reply #17 on: October 20, 2014, 01:18:49 pm »
I think you can also put a compiler hint or message into the source

$HINT, $INFO, $NOTE etc that might be useful as it shows up in the messages window when compiling.
GPL Apps: Health MonitorRetro Ski Run
OnlinePackageManager Components: LazAutoUpdate, LongTimer, PoweredBy, ScrollText, PlaySound, CryptINI

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: [SOLVED] Synedit: invalid BytPos
« Reply #18 on: October 20, 2014, 04:30:43 pm »
That hint would always show regardless of whether the programmer has made the mistake of assigning 0 or not... IMO that's spamming the messages window with useless information.

Commenting it in the source will lead to it showing in popup hints and the exception will cause it to be caught at run time. Isn't that enough?
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified