Author Topic: name already in use...  (Read 5088 times)

0 Members and 1 Guest are viewing this topic.

Offline Ryster

  • Newbie
  • Posts: 77
    • View Profile
name already in use...
« on: March 02, 2021, 01:58:39 pm »
Hello.
Can anything be done about this problem?. Must it be like this for eternity.
S# =

FellippeHeitor

  • Guest
Re: name already in use...
« Reply #1 on: March 02, 2021, 02:00:44 pm »
First time I see this report. Hate the tone tho.

Thanks for reporting anyway.

FellippeHeitor

  • Guest
Re: name already in use...
« Reply #2 on: March 02, 2021, 02:12:33 pm »
Please confirm the problem exists in the latest stable version, report the operating system you're using and if it's qb64 64bit or 32bit.

Also, please describe the issue.

Offline SpriggsySpriggs

  • Forum Resident
  • Posts: 1145
  • Larger than life
    • View Profile
    • GitHub
Re: name already in use...
« Reply #3 on: March 02, 2021, 02:12:51 pm »
@Ryster

I am not able to replicate your issue.
Shuwatch!

Offline Ryster

  • Newbie
  • Posts: 77
    • View Profile
Re: name already in use...
« Reply #4 on: March 02, 2021, 02:28:38 pm »
SMcNeill knows what I mean. It disturbs me in programming (you must always remember). Perhaps it cannot be improved.

FellippeHeitor

  • Guest
Re: name already in use...
« Reply #5 on: March 02, 2021, 02:31:55 pm »
Let's leave it to Steve then.

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: name already in use...
« Reply #6 on: March 02, 2021, 03:15:41 pm »
Hello.
Can anything be done about this problem?. Must it be like this for eternity.
S# =

I confirm Spriggsy's confirmation, no problem in V 1.5

So eternity is over unless on another OS, NOT( Widows 10-64 ) and it's misbehaving there.

Here's how to throw a name in use error:
Code: QB64: [Select]
« Last Edit: March 02, 2021, 03:27:39 pm by bplus »

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: name already in use...
« Reply #7 on: March 02, 2021, 03:32:55 pm »
Let's leave it to Steve then.

I’m not even certain what we’re leaving to Steve, but you’re welcome to leave it with me.  I’m more than able to leave it as well.

What name is already in use?  S#? 

I’m lost...  Somebody fetch me some source code, in code blocks, that I can copy/paste in the IDE and see an error message from.
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

FellippeHeitor

  • Guest
Re: name already in use...
« Reply #8 on: March 02, 2021, 03:41:34 pm »
😂

Offline Dav

  • Forum Resident
  • Posts: 792
    • View Profile
Re: name already in use...
« Reply #9 on: March 02, 2021, 05:02:00 pm »
Do you have a SUB or FUNCTION named S, and are making a variable name S# somewhere else?  IF so then that error will occur.  Like this, will not work..

S# =   '<<< name already is use error

SUB S
END SUB

- Dav

Offline SpriggsySpriggs

  • Forum Resident
  • Posts: 1145
  • Larger than life
    • View Profile
    • GitHub
Re: name already in use...
« Reply #10 on: March 02, 2021, 05:07:59 pm »
@Ryster Sounds like you have some debugging to do on your end or to simply not use S# as your variable name as you are most likely using S somewhere else in your code as others have pointed out. This isn't something to fix on the QB64 side. It just takes you looking through your code and doing basic troubleshooting. I await your update on whether or not you have solved the issue.
Shuwatch!

Offline Petr

  • Forum Resident
  • Posts: 1720
  • The best code is the DNA of the hops.
    • View Profile
Re: name already in use...
« Reply #11 on: March 02, 2021, 05:14:56 pm »
Who uses the same name for a variable as for a SUB or function name? This really isn't an IDE bug..... :)

Offline euklides

  • Forum Regular
  • Posts: 128
    • View Profile
Re: name already in use...
« Reply #12 on: March 03, 2021, 03:16:49 am »
No problem with
S#=1
Works fine.
Why not yes ?

Offline Petr

  • Forum Resident
  • Posts: 1720
  • The best code is the DNA of the hops.
    • View Profile
Re: name already in use...
« Reply #13 on: March 03, 2021, 02:26:42 pm »
@BSpinoza

Code: QB64: [Select]
  1. S# = 10
  2.  
  3. SUB S
  4.     PRINT "SUB S is running..."
  5.  

But really, this is NOT QB64 problem :)

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: name already in use...
« Reply #14 on: March 03, 2021, 03:04:28 pm »
@BSpinoza

Code: QB64: [Select]
  1. S# = 10
  2.  
  3. SUB S
  4.     PRINT "SUB S is running..."
  5.  

But really, this is NOT QB64 problem :)

But is this even the original problem?  Ryster didn’t leave much code, or any real discription of what’s wrong.  People are just shooting blind in the dark, trying to reproduce the issue he described.

My blind shot would be with:

CONST S = 92955828 ‘distance to sun, in miles

S# = ERROR: NAME ALREADY IN USE



Without followup code and a more detailed explanation, we may as well be trying to answer, “How many licks does it take to get to the center of a tootsie pop?”

https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!