Forum Index
HomeZBasic Home   Forum RulesForum Rules   Forum FAQForum FAQ   MemberlistMemberlist   UsergroupsUsergroups   RSS FeedRSS Feed
Site SearchSite Search   LinksLinks   DownloadDownload   Digests and SubscriptionsDigests and Subscriptions
ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in   RegisterRegister
exception: access violation >Exit code: 1

 
Post new topic   Reply to topic    Forum Index -> ZBasic IDE
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 Reply with quote

>"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 Reply with quote

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: Reply with quote

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: Reply with quote

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: Reply with quote

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: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    Forum Index -> ZBasic IDE Time synchro. with the server - Timezone/DST with your computer
Page 1 of 1

 


All content Copyright © 2005-2012 Elba Corp. All Rights Reserved.
Opinions expressed in posts are those of the author and not necessarily those of Elba Corp.
Powered by phpBB © 2001, 2005 phpBB Group