Author Topic: Linux Virtual Machine  (Read 129 times)

Script_test

  • Newbie
  • *
  • Posts: 29
Linux Virtual Machine
« on: May 02, 2017, 10:25:09 AM »
Hi, I have random problems with the curl library under windows, the last one (out of memory).
As I see in the comments, under linux everything seems to work fine. I have no experience in configuring linux.
You could share (download)a virtual machine with everything configured to be able Working and tests with scriptbasic. ?
Thank you very much.

support

  • Administrator
  • *****
  • Posts: 839
    • Script BASIC Open Source Project
Re: Linux Virtual Machine
« Reply #1 on: May 02, 2017, 09:27:28 PM »
Are you using the latest Inno based Windows install curl module?

Out of memory is a catch all error in extension modules as the developers didn't take the time to describe the actual error properly.  I'm slowly rewriting the distributed extension modules in C BASIC for readability, updating libraries and cleanup. Most all of the extension modules I've done are in C BASIC.





Script BASIC Project Manager

Script_test

  • Newbie
  • *
  • Posts: 29
Re: Linux Virtual Machine
« Reply #2 on: May 03, 2017, 03:01:23 AM »
I've already located the bug. Was not in the curl library
I was in the use of variables and arrays with the same name.
So far everything worked correctly but when the program repeated many times the process .... failed due to lack of memory.

Example: (My program has more than 7k lines...)

Static_value [f] = random_value
Static_value = 3
^^ ---- Execution worked four times... and then (out of memory)

Solved renamed
Static_value [f] = random_value
my_Static_value = 3

Ty ;D

support

  • Administrator
  • *****
  • Posts: 839
    • Script BASIC Open Source Project
Re: Linux Virtual Machine
« Reply #3 on: May 03, 2017, 01:17:09 PM »
Glad to hear you figured out what the problem was. Script BASIC variables being typeless until use can trip you up if not careful.

Script BASIC Project Manager