Shop OBEX P1 Docs P2 Docs Learn Events
Anyone have expierence with aborts? — Parallax Forums

Anyone have expierence with aborts?

KyeKye Posts: 2,200
edited 2011-01-29 09:33 in Propeller 1
So, I was doing some file system developement on the propeller chip and I swear that doing stuff like:
 
\functionThatAborts
 

Sometimes causes the propeller chip to crash. I found that doing:
 
anyVariable := \functionThatAborts
 

Makes this problem go away. But, I don't know if this was a fluke or not. Has anyone else had this problem?

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2011-01-27 21:49
    I've used aborts for error exits and error trapping all over FemtoBasic and my Propeller OS (long ago) and I've not seen this problem. What's the circumstance?
  • Dave HeinDave Hein Posts: 6,347
    edited 2011-01-28 05:28
    An abort works as if each call had a return immediately after it until it reaches the point where a "\" was used. This may be bypassing some code in the intermediate methods that are doing something important, such as setting or clearing flags or setting a pointer.
  • KyeKye Posts: 2,200
    edited 2011-01-28 07:04
    Mmm, okay.

    I know what I'm doing with aborts. I had a problem sometime ago like this however, where I spent days debuging only to find that assigning to the variable made the problem go away. (The problem was that the system would crash).

    I tried to verify the problem however, and I couldn't with other code. So, I'm thinking it was a fluke it what I was writing.
  • Dave HeinDave Hein Posts: 6,347
    edited 2011-01-28 07:53
    If you remove the dummy assignment does it crash? If so, you must be using a variable that isn't getting set properly because of the abort. Post your code and maybe we can figure it out.
  • KyeKye Posts: 2,200
    edited 2011-01-28 16:08
    Haha, I'm not having the problem anymore. This happened over a year ago. I'm writing documentation for my SD card driver and I would like to not give the user the wrong way of doing something.
  • jazzedjazzed Posts: 11,803
    edited 2011-01-28 16:15
    Kye wrote: »
    Haha, I'm not having the problem anymore. This happened over a year ago. I'm writing documentation for my SD card driver and I would like to not give the user the wrong way of doing something.
    So what was the root cause? Without Root Cause Analysis "RCA", the problem is not solved.

    When I was a kid we had an "RCA" TV that needed more service than my baby brother's diaper.
    The TV guy just kept coming back for some reason until we swapped brands.
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2011-01-28 17:56
    It happens, Bruce. Get over it.

    -Phil
  • Duane DegnDuane Degn Posts: 10,588
    edited 2011-01-28 20:10
    When I first saw the title of the thread, I thought "Kye ought to answer this one. If anyone has experience with aborts it's him."

    I was then surprised to see Kye was asking the question.

    Much of what I've learned about aborts has come from reading his code.

    I believe it would require expert knowledge of the Propeller in order to give useful (Propeller programming) advice to Kye.

    I think he assumed people knew him well enough that they would also know if he's having a problem it would be with some very esoteric aspect of the Propeller. Not something that reading the manual would solve.

    He did say
    I know what I'm doing with aborts.

    I just had to comment too.

    Okay, now I'm over it too.
  • KyeKye Posts: 2,200
    edited 2011-01-28 21:01
    Tone cannot be infered from posts! I was not laughing at you idbruce. It was the fact that everyone had gone off tanget from what I was looking for. =)

    And what I was looking for was.... has anyone ever had unexplained issues when using "\functionThataborts" calls like this? If no then I will assume me having issues previously was a fluke.
  • RavenkallenRavenkallen Posts: 1,057
    edited 2011-01-29 09:33
    Tone can be inferred sort of with the use of smiley faces :):( ....I usually throw one in to make sure somebody doesn't think i am yelling at them:)
Sign In or Register to comment.