Board Logo
« smalltalk/v virtual memory stack overflow »

Welcome Guest. Please Login or Register.
Jan 18th, 2018, 3:41pm


Conforums Terms of Service | Membership Rules | Home | Search | Recent Posts | Notification | Format Your Message | Installation FAQ

Problems installing JB? Read the Vista/Win7 Installation FAQ

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: smalltalk/v virtual memory stack overflow  (Read 654 times)
donwhi
New Member
Image


member is offline

Avatar




PM


Posts: 9
xx smalltalk/v virtual memory stack overflow
« Thread started on: Jan 11th, 2016, 2:15pm »

Hi,
running windows 7 64 bit, 4GB DDR3, Q9650 cpu, DP965LT mb
filename.exe (my program) runs nicely. Increased the RAM to 8GB and the error message "virtual memory stack overflow" pops up in a smalltalk/v dialog box. It happens when the program is called from the Windows Startup folder, but not when called from the start menu. I read the sticky regarding DEP. It was set for Windows only, and it didn't help adding my program to the list. Thanks for any help.
Don
User IP Logged

Rod
Administrator
ImageImageImageImageImage


member is offline

Avatar

Graphics = Goosebumps!


PM

Gender: Male
Posts: 3151
xx Re: smalltalk/v virtual memory stack overflow
« Reply #1 on: Jan 11th, 2016, 2:21pm »

This is most often caused by jumping out of loops. So bad program flow. You need to be sure you are using the correct EXIT FOR/WHILE etc when you leave a loop early or on a condition being met
User IP Logged

donwhi
New Member
Image


member is offline

Avatar




PM


Posts: 9
xx Re: smalltalk/v virtual memory stack overflow
« Reply #2 on: Jan 26th, 2016, 11:37am »

thanks for your comment. I've looked for programming errors, but it looks ok to me, and it runs fine from a shortcut on the desktop and the start menu, but not from the startup folder, so I can't get it to run automatically on startup. Any more suggestions? Using the startup folder I get the virtual memory stack overflow message from smalltalk. thanks, Don
User IP Logged

Rod
Administrator
ImageImageImageImageImage


member is offline

Avatar

Graphics = Goosebumps!


PM

Gender: Male
Posts: 3151
xx Re: smalltalk/v virtual memory stack overflow
« Reply #3 on: Jan 26th, 2016, 1:36pm »

Ok, you said it ran ok on your machine until you increased the memory to 8gb. But then you talk about startup directory. If you can post a small extract of your program and explain how you intend it to be started and run then we might be able to test and diagnose more accurately.
User IP Logged

Stefan Pendl
Administrator
ImageImageImageImageImage


member is offline

Avatar

Let's talk JB ...


Homepage PM

Gender: Male
Posts: 3712
xx Re: smalltalk/v virtual memory stack overflow
« Reply #4 on: Jan 26th, 2016, 2:39pm »

Do you run it on an Asian localization?

Just BASIC works best when your regional settings are set to English.
User IP Logged

Stefan - Homepage

Remember to read the forum rules board wink

Just BASIC 1.01, Windows 10 Professional x64, Intel Core i7-4710MQ 2.5GHz, 16GB RAM
donwhi
New Member
Image


member is offline

Avatar




PM


Posts: 9
xx Re: smalltalk/v virtual memory stack overflow
« Reply #5 on: Jan 26th, 2016, 3:13pm »

well, it just quit working. I sent the error log in with the test code I used to provoke the error. I run in the USA. The RAM upgrade appears to be a coincidence, trying to run it from the startup folder causes the problem consistently. You could probably try starting any code from the Windows Startup folder to see if it's me doing something incompatible. I guess I'm on hold to see what support has to say. Thanks for your interest. Don
User IP Logged

donwhi
New Member
Image


member is offline

Avatar




PM


Posts: 9
xx Re: smalltalk/v virtual memory stack overflow
« Reply #6 on: Jan 26th, 2016, 3:34pm »

My report to support@justbasic.com bounced.

the test code is:
DIM info1$(10,10)
DIM info2$(10,10)
DIM info3$(10,10)
DIM info4$(10,10)
FILES "c:\users\dw\music\playlist\", info1$()
PRINT "number of files ";info1$(0,0); " subdirectories "; info1$(0,1); " file name "; info1$(1,0); " path "; info1$(0,3)
FILES "c:\users\dw\music\", info2$(): PRINT
PRINT "number of files ";info2$(0,0); " subdirectories "; info2$(0,1); " file name "; info2$(1,0); " path "; info2$(0,3)
FILES "c:\users\dw", info3$(): PRINT
PRINT "number of files ";info3$(0,0); " subdirectories "; info3$(0,1); " file name "; info3$(1,0); " path "; info3$(0,3)
FILES "c:\users\dw\music\playlists\", info4$(): PRINT
PRINT "number of files ";info4$(0,0); " subdirectories "; info4$(0,1); " file name "; info4$(1,0); " path "; info4$(0,3)


end

Just BASIC debug seems not to like the length of the name of the playlists folder today. Yesterday it worked all day. Too weird for me. Code works until the last line. then I get a warning dialog stating "Runtime error: system primative failed"

The error log is a bit long for a post, I suspect, about 50 lines. I could email it.
User IP Logged

tenochtitlanuk ( John F)
Full Member
ImageImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 430
xx Re: smalltalk/v virtual memory stack overflow
« Reply #7 on: Jan 26th, 2016, 6:33pm »

The code you posted works fine on my Linux/JB set-up
Code:
dim info1$( 10, 10)
files "c:\Program Files (x86)/Liberty BASIC v4.5.0", info1$()
print "Number of files "; info1$( 0,0); " subdirectories "; info1$( 0,1); " file name "; info1$( 1,0); " path "; info1$( 0,3)
end 

Are you quite sure you have typed the path correctly? I obviously had to change it to suit my machine, being particularly careful over spaces.
« Last Edit: Jan 26th, 2016, 6:34pm by tenochtitlanuk ( John F) » User IP Logged

Visit my LB/JB pages at http://www.diga.me.uk/index.html
I use XP and Ubuntu Linux on old machines!
donwhi
New Member
Image


member is offline

Avatar




PM


Posts: 9
xx Re: smalltalk/v virtual memory stack overflow
« Reply #8 on: Jan 26th, 2016, 8:12pm »

My post was a cut and paste from the .BAS file, and since the first 3 FILES commands executed and the fourth did not my assumption is the typing is correct.
User IP Logged

donwhi
New Member
Image


member is offline

Avatar




PM


Posts: 9
xx Re: smalltalk/v virtual memory stack overflow
« Reply #9 on: Jan 26th, 2016, 8:29pm »

somehow the folder lost it's sharing properties. JB can read the contents again.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Conforums Terms of Service | Membership Rules | Home | Search | Recent Posts | Notification | Format Your Message | Installation FAQ

Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls