Windows 10 versione 1511 Build 10586

Windows specific questions.
Post Reply
Peter54
Posts: 5
Joined: Jan 08, 2016 15:00

Windows 10 versione 1511 Build 10586

Post by Peter54 »

Hello
after upgrading Windows 10 the programs compiled with FreeBasic no longer work.
Does anyone have the same problem?
Also with other compilers, Chameleon Basic or KoolBasic, I have various malfunctions (like "I can not allocate memory").
Before the upgrade everything worked perfectly.
Greetings to all
srvaldez
Posts: 3379
Joined: Sep 25, 2005 21:54

Re: Windows 10 versione 1511 Build 10586

Post by srvaldez »

it would be helpful if you gave us the error message that you get when trying to run the program, perhaps there are missing libraries (DLL's) or it could be a permission problem, also it might be useful to know the FreeBASIC installation path because the "Programs Files" folder needs administrator privileges for writing and frequently people try to compile a program in the FreeBASIC examples folder and it fails because of that.
to simplify matters it easier to just install FB in a folder that's not protected.
Peter54
Posts: 5
Joined: Jan 08, 2016 15:00

Re: Windows 10 versione 1511 Build 10586

Post by Peter54 »

The program is very simple:
Dim x as integer
for x = 1 to 5
print "Hello"
next

the executable is created, but when it is launched, there are no error messages and the program ends or the process remains suspended.
This is done primarily for the programs console. The GUI is functioning.
Sorry for my bad english.
fxm
Moderator
Posts: 12131
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: Windows 10 versione 1511 Build 10586

Post by fxm »

Do you launch the program from the command window, with a command line syntax like:
hello[.exe]
or do you use an IDE (as FBIde, FBEdit, Geany, ...)?
marcov
Posts: 3462
Joined: Jun 16, 2005 9:45
Location: Netherlands
Contact:

Re: Windows 10 versione 1511 Build 10586

Post by marcov »

(Major) updates like service packs and this update can reset security settings to defaults unsuitable for . Check your security software settings.
Peter54
Posts: 5
Joined: Jan 08, 2016 15:00

Re: Windows 10 versione 1511 Build 10586

Post by Peter54 »

Solved!
After the upgrade I restore an old file compile.bat, who had not "-s console".
Everything is OK now.
Thank you and sorry for the trouble. Greetings.

P.S. However compiled files with Chameleon Basic (download from Sourceforge) after upgrading Windows no longer work with error "can not allocate memory."
srvaldez
Posts: 3379
Joined: Sep 25, 2005 21:54

Re: Windows 10 versione 1511 Build 10586

Post by srvaldez »

hi Peter54
I downloaded Chameleon BASIC to see if I could help you but am stumped, a program compiled on Windows 10 will give the alert that it can't allocate memory, it makes no difference if you run it as administrator.
if I copy that program to a Windows XP machine and run it gives the same error, however if I compile the program on Windows XP it runs ok on all systems, perhaps someone with more knowledge can help you.
bihai
Posts: 36
Joined: Mar 25, 2015 7:56

Re: Windows 10 versione 1511 Build 10586

Post by bihai »

Also have the same problem. Using:
FreeBASIC Compiler - Version 1.05.0 (11-01-2015), built for win64 (64bit)
if using gfx then crash.
OK with this one:
Version 1.04.0 (10-01-2015), built for win32 (32bit)
Copyright (C) 2004-2015 The FreeBASIC development team.
standalone

Surface pro 3, windows 10.
Peter54
Posts: 5
Joined: Jan 08, 2016 15:00

Re: Windows 10 versione 1511 Build 10586

Post by Peter54 »

FreeBasic work now correctly (32 + 64 bits).
Thanks srvaldez, you are right. I copied Chameleon Basic on a virtual machine XP SP3 under VirtualBox and the compiled programs work correctly in both XP and Win10.

Greetings
srvaldez
Posts: 3379
Joined: Sep 25, 2005 21:54

Re: Windows 10 versione 1511 Build 10586

Post by srvaldez »

bihai wrote:Also have the same problem. Using:
FreeBASIC Compiler - Version 1.05.0 (11-01-2015), built for win64 (64bit)
if using gfx then crash.
OK with this one:
Version 1.04.0 (10-01-2015), built for win32 (32bit)
Copyright (C) 2004-2015 The FreeBASIC development team.
standalone

Surface pro 3, windows 10.
could you post a sample that reproduces the crash ?
my guess it's using wrong integer type.
Peter54
Posts: 5
Joined: Jan 08, 2016 15:00

Re: Windows 10 versione 1511 Build 10586

Post by Peter54 »

For your information I have solved the "Could not allocate memory" for the BASM, KoolBasic and Chameleon Basic compiler.
Substitute the GoLink.exe linker with the last version and all is OK.
Best regard
Post Reply