|
Post by milfredo on Jul 22, 2020 19:17:58 GMT -5
Ran into a problem I have never dealt with before. When compiling I got a Stack overflow error message. Stopped on line 17,200. I have no idea what a stack overflow is, and since lines of code are not marked in LB, how do I find line 17,200? I don't have that many fingers and toes.
Thanks in Advance Milfredo
|
|
|
Post by Carl Gundel on Jul 22, 2020 20:26:35 GMT -5
Ran into a problem I have never dealt with before. When compiling I got a Stack overflow error message. Stopped on line 17,200. I have no idea what a stack overflow is, and since lines of code are not marked in LB, how do I find line 17,200? I don't have that many fingers and toes. Thanks in Advance Milfredo Stack overflow? Gee. Would you be willing to share the bas file with me so I can figure it out?
|
|
|
Post by milfredo on Jul 22, 2020 20:55:40 GMT -5
|
|
|
Post by Carl Gundel on Jul 22, 2020 21:34:29 GMT -5
Absolutely Carl. Thank You Hmm. On my machine it compiles all the way through. Are you sure you sent the right file because mine seems be only about 9K lines of code according to the compile progress dialog.
|
|
|
Post by milfredo on Jul 22, 2020 22:30:55 GMT -5
|
|
|
Post by Rod on Jul 23, 2020 4:04:30 GMT -5
I can see that you are not using the ,_ line concatenation correctly. Don't use the ,_ on the last item.
It isn't the problem but it wont be helping.
I get this error.log
What I would do is start at the bottom and remove chunks of code till it compiles again then you are closer to the error.
|
|
|
Post by tenochtitlanuk on Jul 23, 2020 5:01:23 GMT -5
The only error I got on trying various options ( I'd already removed all the trailing ',_') was the need to create a directory it assumes exists, and the absence of the IsFile32.dll it needs...
|
|
|
Post by Rod on Jul 23, 2020 9:40:53 GMT -5
The compiler is failing at the end of the program which tells me that your program flow logic is messed up somewhere else earlier in the program. If I take off the last chunk of code it fails at the new end of code. So you need to check your indenting to see if you have a missing end if , next, wend etc. Do you have a previous version that works? What changed?
John are you using the second file? No .dll in the code I am looking at.
|
|
|
Post by Rod on Jul 23, 2020 13:50:45 GMT -5
Ok, you seem to have a huge amount of garbage attached to the tail end of the .bas file. There are only 17103 lines of code but 20323 lines in the file. If I lose the garbage the file compiles ok. Use this .bas to look at the line numbered lines of code. Only copy the lines you need then try compiling again.
'nomainwin 'read in the original .bas and write it as check.bas 'now compile check.bas open "test.bas" for input as #1 open "check.bas" for output as #2
'set this counter to be the last line of real code for n= 1 to 20000 'for n= 1 to 17103
line input #1,l$ print n,l$ #2 l$ next close #1 close #2 wait
You seem to have a lot of similar, or possibly misspelt variable names.
|
|
|
Post by milfredo on Jul 23, 2020 14:21:47 GMT -5
Thanks I will give it a try.
|
|
|
Post by Carl Gundel on Jul 23, 2020 15:49:05 GMT -5
Ok, you seem to have a huge amount of garbage attached to the tail end of the .bas file. There are only 17103 lines of code but 20323 lines in the file. If I lose the garbage the file compiles ok. Use this .bas to look at the line numbered lines of code. Only copy the lines you need then try compiling again. I'm seeing the same thing.
|
|
|
Post by Brandon Parker on Jul 23, 2020 17:34:59 GMT -5
Everything compiles and appears to run perfectly fine for me as well when all of the extra lines are removed at the end of the file.
{:0)
Brandon Parker
|
|
|
Post by milfredo on Jul 23, 2020 17:46:24 GMT -5
I rebuilt the program section by section and it now compiles fine. But when I run it it works fine until I close the Top window. Then while in debug mode, I get the error Invalid file handle for the following code.
#top.track1 "when leftButtonDouble [leftdoubleclick]" This piece of code has always been in the program, but never had a problem with it until now. Makes no sense to me, when clearly there is a #top
Do I have the code wrong?
Thanks everybody for the help.
|
|
|
Post by milfredo on Jul 23, 2020 21:00:09 GMT -5
That piece of code works fine when program running. Left double click cause the selected factor column to sort in ascending order. No problem. But close out the top window and get that error message. I am so confused.
|
|
|
Post by Rod on Jul 24, 2020 1:17:48 GMT -5
You need to look at your program flow. Clearly, when you close the top window it is closing #top and all associated resources, buttons etc. That’s the only reason you get the handle error.
|
|