Author Topic: Space Travel w/ Multi-Layered Stars  (Read 11596 times)

0 Members and 1 Guest are viewing this topic.

Offline Aurel

  • Forum Regular
  • Posts: 167
    • View Profile
Re: Space Travel w/ Multi-Layered Stars
« Reply #15 on: January 21, 2020, 07:40:26 am »
sorry but i get this
LINE 596 : invalid handle

and what is that ???


Hello...anyone know how to fix this ???
and why is there no end if or ENDIF there  ?

thanks
//////////////////////////////////////////////////////////////////
https://aurelsoft.ucoz.com
https://www.facebook.com/groups/470369984111370
//////////////////////////////////////////////////////////////////

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: Space Travel w/ Multi-Layered Stars
« Reply #16 on: January 21, 2020, 11:52:05 am »
sorry but i get this
LINE 596 : invalid handle

and what is that ???


Hello...anyone know how to fix this ???
and why is there no end if or ENDIF there  ?

thanks

Aurel what's your version number and OS system? It works fine for me, version QB64 v1.3 or 1.4 on Windows 10-64 and Output EXE to Source Folder bullet under Run menu.
« Last Edit: January 21, 2020, 11:54:30 am by bplus »

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: Space Travel w/ Multi-Layered Stars
« Reply #17 on: January 21, 2020, 12:21:32 pm »
Aurel what's your version number and OS system? It works fine for me, version QB64 v1.3 or 1.4 on Windows 10-64 and Output EXE to Source Folder bullet under Run menu.

Aurel doesn't have the Output EXE to Source option turned on.  I think he mainly uses an different IDE, and I don't believe there's an option when compiling from the command line to send the EXE to the source folder.  (But I wouldn't swear to that.  I don't compile from the command line enough to know what our options are anymore with it...)
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: Space Travel w/ Multi-Layered Stars
« Reply #18 on: January 21, 2020, 12:27:54 pm »
Aurel doesn't have the Output EXE to Source option turned on.  I think he mainly uses an different IDE, and I don't believe there's an option when compiling from the command line to send the EXE to the source folder.  (But I wouldn't swear to that.  I don't compile from the command line enough to know what our options are anymore with it...)

Ah! That's it, he is surely building an editor for QB64, he did one for SmallBASIC which allows us to use the faster 64 bit version, making it better than the new updated editor (except for help access).

So how does RhoSigma handle the EXE output filing on Notepad++ ? All to one folder?

FellippeHeitor

  • Guest
Re: Space Travel w/ Multi-Layered Stars
« Reply #19 on: January 21, 2020, 10:44:15 pm »
Quote
I don't believe there's an option when compiling from the command line to send the EXE to the source folder.

-o

QB64 COMPILER

USAGE: qb64 [switches] <file>

OPTIONS:
  <file>                  Source file to load
  -v                      Verbose mode (detailed warnings)
  -c                      Compile instead of edit
  -x                      Compile instead of edit and output the result to the
                             console
  -p                      Purge all pre-compiled content first
  -z                      Generate C code without compiling to executable
  -o <output file>        Write output executable to <output file>
  -e                      Enables OPTION _EXPLICIT, making variable declaration
                             mandatory (per-compilation; doesn't affect the
                             source file or global settings)
  -s[:switch=true/false]  View/edit compiler settings
  -l:<line number>        Starts the IDE at the specified line number

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: Space Travel w/ Multi-Layered Stars
« Reply #20 on: January 21, 2020, 10:48:43 pm »
-o

QB64 COMPILER

USAGE: qb64 [switches] <file>

OPTIONS:
  <file>                  Source file to load
  -v                      Verbose mode (detailed warnings)
  -c                      Compile instead of edit
  -x                      Compile instead of edit and output the result to the
                             console
  -p                      Purge all pre-compiled content first
  -z                      Generate C code without compiling to executable
  -o <output file>        Write output executable to <output file>
  -e                      Enables OPTION _EXPLICIT, making variable declaration
                             mandatory (per-compilation; doesn't affect the
                             source file or global settings)
  -s[:switch=true/false]  View/edit compiler settings
  -l:<line number>        Starts the IDE at the specified line number


So nothing which natively says “to source folder”.  Maybe we should add a -os switch as a shortcut to do that.
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

FellippeHeitor

  • Guest
Re: Space Travel w/ Multi-Layered Stars
« Reply #21 on: January 21, 2020, 10:55:16 pm »
qb64 -s will show settings.

qb64 -s:exewithsource will print TRUE or FALSE depending on the current setting.

qb64 -s:exewithsource=true or qb64 -s:exewithsource=false will set the behavior.

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: Space Travel w/ Multi-Layered Stars
« Reply #22 on: January 21, 2020, 11:06:29 pm »
qb64 -s will show settings.

qb64 -s:exewithsource will print TRUE or FALSE depending on the current setting.

qb64 -s:exewithsource=true or qb64 -s:exewithsource=false will set the behavior.

So saved IDE settings like “Output EXE with Source” even affect command line compilation?  I didn’t realize that at it.  It’s nice to know (unless I misunderstood you?).
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

FellippeHeitor

  • Guest
Re: Space Travel w/ Multi-Layered Stars
« Reply #23 on: January 21, 2020, 11:22:58 pm »
Yes, command line is affected by those settings as well.

Up until v1.3, using -s to view or alter settings would do the requested operation and quit back to command line. I have just pushed a change to the development build that allows using -s:switch=true/false to change settings and proceed to the IDE in case a file is specified in the command line or to proceed with compilation if -x, -c or -z are passed, so there's that now.
« Last Edit: January 22, 2020, 12:13:04 am by FellippeHeitor »

Offline Aurel

  • Forum Regular
  • Posts: 167
    • View Profile
Re: Space Travel w/ Multi-Layered Stars
« Reply #24 on: January 22, 2020, 02:27:40 am »
Hello guys
Yes Mark, QB64 v1.3  32bit and yes i am building version for qb64 so that is why i am asking for command line
switches.
Still .i am not sure from Felipe answer is implemented that exe can be created inside program/source folder or not
I understand why qb64 create exe in the root folder because it is IDE and easy way to comunicate with exe is ,if is
inside same folder.
I can set in my editor that look into root folder..but then i must little bit more improve my editor config file with
compiler switch because i already added SB too,but that is not important here i would be happy with qb64 separate version as well.
//////////////////////////////////////////////////////////////////
https://aurelsoft.ucoz.com
https://www.facebook.com/groups/470369984111370
//////////////////////////////////////////////////////////////////

Offline Aurel

  • Forum Regular
  • Posts: 167
    • View Profile
Re: Space Travel w/ Multi-Layered Stars
« Reply #25 on: January 22, 2020, 02:30:17 am »
I was asking about this Invalid handle...i am not sure what that might be.
Is that mean that handle not exists?
or
Is that mean that handle is wrong type?
in fact is see in this program/line  just few variables
//////////////////////////////////////////////////////////////////
https://aurelsoft.ucoz.com
https://www.facebook.com/groups/470369984111370
//////////////////////////////////////////////////////////////////

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: Space Travel w/ Multi-Layered Stars
« Reply #26 on: January 22, 2020, 10:58:11 am »
Quote
I was asking about this Invalid handle...i am not sure what that might be.
Is that mean that handle not exists?
or
Is that mean that handle is wrong type?
in fact is see in this program/line  just few variables
Hi Aurel,

It usually means your file did not get loaded which usually means you didn't bullet Output the EXE to source folder under the Run menu.
I tried to replicate your handle error my removing that bullet in my IDE before running the bas code and got a big black screen of nothing, no handle errors from compiler, just a crash which is not same result as yours? maybe 32 bit version is different or... are you still using Windows XP?

Quote
I was asking about this Invalid handle...i am not sure what that might be.
Hello guys
Yes Mark, QB64 v1.3  32bit and yes i am building version for qb64 so that is why i am asking for command line
switches.
Still .i am not sure from Felipe answer is implemented that exe can be created inside program/source folder or not
I understand why qb64 create exe in the root folder because it is IDE and easy way to comunicate with exe is ,if is
inside same folder.
I can set in my editor that look into root folder..but then i must little bit more improve my editor config file with
compiler switch because i already added SB too,but that is not important here i would be happy with qb64 separate version as well.

From what I gather from Fellippe, you need to set the bullet in your IDE next to Output EXE to Source Folder under the Run Menu (even if you are not editing with the IDE) because QB64.exe reads the IDE settings.

« Last Edit: January 22, 2020, 11:01:23 am by bplus »

Offline Aurel

  • Forum Regular
  • Posts: 167
    • View Profile
Re: Space Travel w/ Multi-Layered Stars
« Reply #27 on: January 23, 2020, 10:56:29 am »
Quote
because QB64.exe reads the IDE settings

hi Mark...hmm that's bad news
I will see..
//////////////////////////////////////////////////////////////////
https://aurelsoft.ucoz.com
https://www.facebook.com/groups/470369984111370
//////////////////////////////////////////////////////////////////

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: Space Travel w/ Multi-Layered Stars
« Reply #28 on: January 23, 2020, 02:25:02 pm »
This would be a REALLY COOL screensaver!

Oh, but one issue: Where is the Enterprise, or the Defiant?  Star Treking in space!

GREAT JOB!

Now arrived
Starship.png
* Starship.png (Filesize: 18.95 KB, Dimensions: 400x169, Views: 217)

Offline SirCrow

  • Forum Regular
  • Posts: 144
    • View Profile
Re: Space Travel w/ Multi-Layered Stars
« Reply #29 on: January 26, 2020, 11:55:51 pm »
This would be a REALLY COOL screensaver!

Oh, but one issue: Where is the Enterprise, or the Defiant?  Star Treking in space!

GREAT JOB!

Thank you.  If I could make a screensaver of it easily, I'd love to.
I may not always finish what I've started....