Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[blitz.mod] Release command not working #252

Open
GWRon opened this issue Jan 12, 2023 · 0 comments
Open

[blitz.mod] Release command not working #252

GWRon opened this issue Jan 12, 2023 · 0 comments

Comments

@GWRon
Copy link
Contributor

GWRon commented Jan 12, 2023

I took this code from the docs (and made it "strict") :

https://blitzmax.org/docs/en/api/brl/brl.blitz/#release

Rem
Release removes the internal reference caused by creating an integer handle to a type.
End Rem

Type MyType
    Field bigmap[1024*1024]
End Type

GCCollect
Print GCMemAlloced()

Local a:Mytype=New MyType
GCCollect
Print GCMemAlloced()

Release a
GCCollect
Print GCMemAlloced()

Trying to execute it leads to:

Building untitled1
[ 23%] Processing:untitled1.bmx
Compile Error: Subexpression for release must be an integer variable
[/home/ronny/Arbeit/Tools/BlitzMaxNG/tmp/untitled1.bmx;16;0]

So I guess Release() might not be implemented as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant