Menu

Problem with glcd.h library

2016-08-24
2016-08-24
  • Davy EPRINCHARD

    Davy EPRINCHARD - 2016-08-24

    Hello!

    I have the folowing problem:
    Every times i try to add glcd.h library to a project (even a blank new project), i get 4 times this error message:
    "Error in custom hardware setting for library <glcd.h>"
    then another message titled "Error loading library" with this content:
    "System.ArgumentOutOfRangeException: StartIndex ne peut pas être inférieur à zéro.
    Nom du paramètre: startindex
    à System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
    à Great_Cow_Graphical_Basic.DocSection.ParseLine(String LineIn)
    à Great_Cow_Graphical_Basic.GCBProgram.LoadLibraryFromFile(LibraryType LoadLib, String FileNameTemp, String FirstFile)"

    I tryed on 3 different PC's and tryed with fresh install and always faced the same problem...
    I'm Using Great Cow Graphical Basic Version 1.0 2015-07-12.

    Thanks in advance for any help with this problem.

     
    • Anobium

      Anobium - 2016-08-24

      Oh yes. This is an issue.
      Can you confirm ? This is the latest download? What was the release version of the installer?

       
      • Anobium

        Anobium - 2016-08-24

        @Davy. This should be relatively simple to resolve. Are you using the KS0108 GLCD?

         
        • Anobium

          Anobium - 2016-08-24

          @Davy. I have looked at this - GLCD is not supported by default in Great Cow Cow Graphical BASIC. It is easily resolveable to enable the KS0108 GLCD. But, the configuration and the additional helpers would need to be created.

          Route forward could be.

          1. A GLCD.H specific for the Great Cow Graphical BASIC is created. 10 mins work.
          2. Helpers are created within the GLCD.H specific version for the Great Cow Graphical BASIC. 120 mins - I am thinking you could do this.
          3. Testing. A few hours.

          We need to constrain the capability to the KS0108 GLCD devices. We have many, many more in IDE version of Great Cow BASIC but this would take a huge amount of work to get working.

          Your thoughts are?

           
        • Davy EPRINCHARD

          Davy EPRINCHARD - 2016-08-24

          Thanks for your help.
          I confirm this is the latest download. (File version 0.95.9.0)
          I want effectively use the KS0108 GLCD.
          But the error happens when loading the library, even with a new blank project...
          (Just launching Great Cow Graphical Basic, going to "Program"->"Libraries", selectionning the "<glcd.h>", clicking "Add" then "Ok" and then i get these errors...)

          PS: I apologize for my poor english and i hope this is understandable...

           
          • Anobium

            Anobium - 2016-08-24

            Your English is great. Do not apologise.

            I have reproduced the error. And, I know exactly the root cause - you cannot fix without the experience I have with Great Cow BASIC. The root cause is the wide range of GLCDs we support in the IDE version of Great Cow BASIC and we have not tested within Great Cow Graphical BASIC.

            Route forward could be.

            1. A GLCD.H specific for the Great Cow Graphical BASIC is created. 10 mins work.
            2. Helpers need to be created for Great Cow Graphical BASIC. 120 mins - I am thinking you could do this?
            3. Then, testing. A few hours.

            Are you willing to do #2 and #3?

             

            Last edit: Anobium 2016-08-24

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.