![]() |
Forum Index : Microcontroller and PC projects : Out of Memory Error V5.04.09, OK V5.04.08
Author | Message | ||||
Paul_L Guru ![]() Joined: 03/03/2016 Location: United StatesPosts: 769 |
I would appreciate it if some of you guys would attempt to run DataDumpTest.bas under any DOS version you happen to have. It should also run on an E64 or E100 with an SD card available. It is a test subset of my long awaited geothermal control program which handles the writing of program data to a text file for debugging and record keeping. Unfortunately, as LIZBY reported in this thread, LINK, it crashes with an out of memory error under DOS Ver 5.04.09 on his Win laptop, but runs to completion under DOS Ver 5.04.08 on my desktop. 2018-10-22_144950_datadump.zip DataDumpTest.ZIP contains DataDumpTest.bas and GEOdumpSample.csv. Unzip it in a new directory named DataDumpTest. DataDumpTest.bas will write a new GEOdump.csv file. Each line should contain 609 characters. The new file should be identical to GEOdumpSample.csv. Just another one of the many things that make you go hmmmmmm ..... Paul in NY |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
Probably associated with this bug: https://www.thebackshed.com/forum/forum_posts.asp?TID=10720&PN=2&get=last#126263 First post on the last page. Jim VK7JH MMedit |
||||
Paul_L Guru ![]() Joined: 03/03/2016 Location: United StatesPosts: 769 |
@TassyJim You're right. That looks like a similar bug. I my code the error could be caused by the repetitive calls to dds() and ddc with a failure of the interpreter to release memory or variables when the dds() or ddc ends. I guess this might be one for Geoff. Paul in NY |
||||
Paul_L Guru ![]() Joined: 03/03/2016 Location: United StatesPosts: 769 |
Has anyone attempted to run the above test program? I think there might be a bug in MMNasic DOS V 5.04.09 which doesn't release memory used by variables in a subroutine which doesn't exist in 5.04.08. Please somebody, try it out. The test code should also run on PIC version as long as there is an SD card available to write to. Paul in NY |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10310 |
This is a known bug. Geoff is fully aware and it will be fixed in next release. |
||||
Paul_L Guru ![]() Joined: 03/03/2016 Location: United StatesPosts: 769 |
Thanks Peter! I should have assumed that you guys had found it already! Paul in NY |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3292 |
Yes, sorry about that. I should have acknowledged this thread. The bug has shown up in a number of threads. The problem is that it is proving to be difficult to track down so I need to schedule some serious time to find it. I will get back to you. Geoff Geoff Graham - http://geoffg.net |
||||
Paul_L Guru ![]() Joined: 03/03/2016 Location: United StatesPosts: 769 |
Geoff. That's OK, I don't want you to waste your time on acknowledgments for me. My code makes repetitive calls to routines that print stuff to the output file. Lzyby tells me that it actually builds a partial output file. If you run it and check the output file you should be able to tell which routine it was in when it crashed. I have not duplicated the failure because I have not updated the DOS MMBasic. Can I install the newer faulty version alongside of the older one? Paul in NY |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
You can have as many copies of DOS MMBasic as you wish. All you need to do is have them in different folders and remember which one is which, although you could rename them so remembering and different folders is not a problem. Jim VK7JH MMedit |
||||
Paul_L Guru ![]() Joined: 03/03/2016 Location: United StatesPosts: 769 |
Thanks Jim. That's what I normally do. Whenever I'm working out a new problem I do it in a separate subdirectory. The problem is that I'm old and I forget where I put them. I just found 22 scattered all over the place. Time for some housecleaning. Paul in NY |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
I tend to rename the old ones when a new version comes out. That way, I have something to go back to and MMEdit can find the latest version without having to jump through hoops. Jim VK7JH MMedit |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3292 |
I was not able to run this code but it does seem identical to the other reports. I have tracked down these and reported the solution in this thread: https://www.thebackshed.com/forum/forum_posts.asp?TID=10720&PN=1&get=last#126794 I plan to have a new beta out which should fix the "Out of Memory" errors in a week or two and hopefully it will fix this problem also. Geoff Geoff Graham - http://geoffg.net |
||||
Paul_L Guru ![]() Joined: 03/03/2016 Location: United StatesPosts: 769 |
Brilliant work squashing the bugs in the other thread. Here's hoping it's the same memory leak situation you found in the other big report. Why couldn't you run the code? It seemed to work OK here and for Lance. Paul in NY |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |