Shop OBEX P1 Docs P2 Docs Learn Events
Access violation error — Parallax Forums

Access violation error

WeedogtWeedogt Posts: 6
edited 2005-06-02 20:07 in BASIC Stamp
I have just started up BASIC Stamp Windows Editor v2.2. I have veryfied that I have contact with my BS2sx module (COM1). Connecting to CM" also works fine. So far, so good.

However, when I open the Debug Terminal and try to change the Com Port setting I get an error message;
"Access violation at address 0044BB8C in module "Stampw.exe". Read of adress 00098053".

I get the same error on both COM1 and COM2.

I'm using a Swedish Windows 2000.

Does anyone have any idea about this?

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2005-05-27 14:09
    Hello,

    ·· I will forward this information to our applications engineer.··Does this only happen when you open a DEBUG Window?· Are you able to program Stamp modules okay?· What happens when the DEBUG Window is opened under program control?· That is, when you put a DEBUG statement into a program:

    DEBUG "THIS IS A TEST!"
    

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • WeedogtWeedogt Posts: 6
    edited 2005-05-27 16:06
    Forum Moderator said...
    Does this only happen when you open a DEBUG Window?

    As far as I have tried, yes.
    Somebody said...
    Are you able to program Stamp modules okay?

    Yes.
    Forum Moderator said...
    What happens when the DEBUG Window is opened under program control?

    It's not possible as I can't select which COM port to use.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2005-05-27 17:11
    Weedogt said...(trimmed)
    Forum Moderator said...
    What happens when the DEBUG Window is opened under program control?
    It's not possible as I can't select which COM port to use.
    ·· When you place a DEBUG line into your code, it should force a DEBUG window to open within the Stamp Editor software and display the output.· It should default to the port that the Stamp was programmed through, since it uses the program port for communication.· Have you tried the code?


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • Jeff MartinJeff Martin Posts: 755
    edited 2005-05-27 21:43
    Hi,

    I too, would like to know whether you can get it to work by launching the Debug Terminal as a result of downloading a program that contains a DEBUG statement.

    Because you're using the Swedish Windows 2000, I suspect that the problem is due to a regional setting that is confusing the Debug Terminal code.··

    To try to eliminate some possibilities, I've attached a small program that I'd like you to try.· When you run it you'll see a "COM Port Enumerator" window with a checkbox and a "Get COM Ports" button.· Click on the button and tell me (you can select, copy and paste) what it says in the big white edit field.· Then uncheck the "Display Long Name" checkbox and click the button once again and copy and paste the results.

    If this yields strange characters, then it is due to a regional setting and is likely the cause of the problem.· If not, then I know the problem is elsewhere and we'll have to try another test.

    Thank you.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    --Jeff Martin

    · Sr. Software Engineer
    · Parallax, Inc.
  • WeedogtWeedogt Posts: 6
    edited 2005-05-29 21:38
    Hi Jeff,

    I tried to use the DEBUG statment to send a message to the PC. It worked fine.

    I also tried the EnumerateCOMPorts_v1.1.exe program:

    With "Display Long Name" checked:
    Kommunikationsport (COM1)
    Kommunikationsport (COM2)

    With "Display Long Name" unchecked:
    COM1
    COM2

    After that the initial problem went away! Or maybe things started to work due to the reboot I did today?

    Whatever, I'm up and running now.

    Thanks for your help. [noparse]:)[/noparse]
  • Jeff MartinJeff Martin Posts: 755
    edited 2005-06-02 20:07
    Hi,

    Glad to hear it is working well.

    Thank you for running the tests for us.


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    --Jeff Martin

    · Sr. Software Engineer
    · Parallax, Inc.
Sign In or Register to comment.