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
ZX-40 versus the BX-35
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Forum Index -> ZX-40
Author Message
dkinzer
Site Admin


Joined: 03 Sep 2005
Posts: 2593
Location: Portland, OR

Posted: 08 July 2006, 5:10 AM    Post subject: Reply with quote

To solve the immediate problem, I'll have a v1.2 ZX-40 sent out on Monday. The next step will be for us to modify a BXDS here and try the downloading/updating with a ZX-40 in place. Depending on the results of that experiment, we may have other things for you to look at or try out.
Back to top
drapal



Joined: 24 Jan 2006
Posts: 25
Location: Denver

Posted: 08 July 2006, 13:19 PM    Post subject: Reply with quote

Thanks. I'll also spend some time this weekend finishing the end product board (I'm using the SIMM100 board from Dontronics). I have one mostly soldered up and it shouldn't take me too long to finish it. This would prove that the BXDS has something going on, and maybe from there I can help isolate it.

BTW, I tried a totally different system last night for both of thes upgrade attempts (my laptop from work). The upgrades failed the same way, so the issue is definitely on the BXDS somewhere. The most probable culprit is the ATN circuitry, esp. since this is where the modifications are.
Back to top
drapal



Joined: 24 Jan 2006
Posts: 25
Location: Denver

Posted: 08 July 2006, 13:52 PM    Post subject: Success! Reply with quote

First off, thanks for all of the support. As it turns out, the problem was very simple (once I figured it out Embarassed ).

I found the source for ZLoad in the install directory, so I decided to use Visual Studio to debug it. It turned out that the crash was a stack corruption in update(), and looking at the code, the only way I saw that this would be possible is if the recbuf had been overrun. The comment says that the input file is assumed to be OK, so I went to validate that assumption, and found out that indeed the input file was incorrect.

How did it get that way? When I downloaded it (clicked on the link), the file was opened in IE (rather than getting the file download alert). No big deal, just Save As... from IE and everything will be OK. Well, that's not exactly true. If you do that, IE wraps the first line (since it is very long) onto the second line, thus corrupting the file.

Long story: I now have a V1.2 ZX-40, and the download of the test program worked fine. Very Happy
Back to top
dkinzer
Site Admin


Joined: 03 Sep 2005
Posts: 2593
Location: Portland, OR

Posted: 08 July 2006, 15:44 PM    Post subject: Reply with quote

Thanks for the superb diagnosis. I'll look into ways to protect against the buffer overrun that you discovered. Thanks for the update.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Forum Index -> ZX-40 Time synchro. with the server - Timezone/DST with your computer
Goto page Previous  1, 2
Page 2 of 2

 


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