Closed MillhioreBT closed 1 year ago
You are allocating memory, but you are not deallocating it, in other words free()
-ing it.
Try default_allocator:delete(app)
in place of app = nilptr
and see how it behaves.
By the way, I don't know how to call a C++ project in Nelua; the only examples I have seen so far are in C.
Maybe @edubart could jump in and enlighten both of us here?
This was actually a misuse that triggered a bug.
You were importing a C struct without filling its fields, so the record ended up with size 0. And new
was not prepared to work with empty records (where size is 0), generating the misleading message out of memory
. I fixed this in a recent commit.
Hello, I had never tried this programming language, although I saw it a long time ago, today I wanted to try it and I would like to know if it is possible and how to use Wx to create a graphical interface and create a calculator or some window program for example.
I was reading the documentation a bit and looking at some examples, but I don't see enough information about it, I don't quite understand the language either, it's my first day
This is what I was trying but there seems to be a error:
error:
probably what I did does not make sense, but could someone guide me?