|
|
| Author |
Message |
tomhilton
Joined: 03 Jul 2009
Posts: 26
Location: Peoria AZ
|
|
Posted: 19 July 2010, 23:57 PM Post subject: exception: access violation >Exit code: 1 |
|
|
>"C:\Program Files\ZBasic\zbasic.exe" --target-device=ZX24p --directory="C:\Users\tom Hilton\Desktop\Observatory\Focuser/" "Focus_Zbasic.bas"
Internal error: exception: access violation
>Exit code: 1
What doe the above error message mean.
I get it where using a ZX-24p or ZX-24n device. It just started this
afternoon. The program was working last night. |
|
| Back to top |
|
 |
dkinzer Site Admin
Joined: 03 Sep 2005
Posts: 2499
Location: Portland, OR
|
|
Posted: 20 July 2010, 2:27 AM Post subject: Re: exception: access violation >Exit code: 1 |
|
|
| tomhilton wrote: | | What doe the above error message mean. | It means that there is a coding error in the compiler where an unexpected set of circumstances is not being handled properly. We would need the code that you're compiling when the error occurs to track down the problem. |
|
| Back to top |
|
 |
tomhilton
Joined: 03 Jul 2009
Posts: 26
Location: Peoria AZ
|
|
Posted: 20 July 2010, 3:30 AM Post subject: |
|
|
I found it thanks. Had calltask inside the do loop inside the main routine.
Funny it showed up when the file was being compiled as a project but not
when it was being compiled a just a bas file. |
|
| Back to top |
|
 |
dkinzer Site Admin
Joined: 03 Sep 2005
Posts: 2499
Location: Portland, OR
|
|
Posted: 20 July 2010, 3:44 AM Post subject: |
|
|
| tomhilton wrote: | | I found it thanks. Had calltask inside the do loop inside the main routine. | The point is that a well-behaved application should never generate unhandled exceptions like this no matter what the user input is.
If you can give me a simple test case that generates the exception that would be great. If you'd rather not spend the time to produce a whittled down test case I'd be happy to get the full source code of your application that manifests the issue. I do want to correct the problem. |
|
| Back to top |
|
 |
deadmm
Joined: 17 Mar 2006
Posts: 3
Location: Cambridge, UK
|
|
Posted: 22 July 2010, 14:08 PM Post subject: |
|
|
OK Don, you asked for it ! - here's a complex bit of erroneous code I've just managed to write. It gives an exception for me with the latest compiler, IDE etc
| Code: |
dim Taskstack(1 to 100) as byte
sub Main()
calltask MyTask, Taskstack
end sub
|
Yes, I know there's no actual task to call. Guess how I found the problem.
Mal |
|
| Back to top |
|
 |
dkinzer Site Admin
Joined: 03 Sep 2005
Posts: 2499
Location: Portland, OR
|
|
Posted: 22 July 2010, 14:16 PM Post subject: |
|
|
| deadmm wrote: | | [Here is code that] gives an exception for me with the latest compiler, IDE etc | Thanks. We'll take care of that. |
|
| Back to top |
|
 |
|