You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import uing
import strutils
var mEntry: MultilineEntryprocextraction(_: Button) =echorepr(mEntry.text)
procmain=let window =newWindow("Hello World!", 800, 600)
mEntry =newMultilineEntry()
let button =newButton("test", extraction)
let hbox =newHorizontalBox(true)
hbox.add(mEntry, true)
hbox.add(button)
window.child = hbox
show window
mainLoop()
init()
main()
It is a small program with Entry and buttons.
This code gets the value from Entry when the button is pressed.
At that time, the value is retrieved without any problem on Windows, but on a Mac, a memory error occurs.
malloc: *** error for object 0x10ccaa058: pointer being freed was not allocated
malloc: *** set a breakpoint in malloc_error_break to debug
SIGABRT: Abnormal termination.
Is it possible for you to correct this?
Thank you.
MacOS 14.1.2(23B92)
Apple M1 Pro
16 GB
Nim Compiler Version 2.0.2 [MacOSX: amd64]
uing@0.8.0
The text was updated successfully, but these errors were encountered:
nnahito
changed the title
I get a "pointer being freed was not allocated" error on Mac
"pointer being freed was not allocated" error on Mac
Apr 17, 2024
Thank you for the wonderful library.
I ran the following code on my Mac:
It is a small program with Entry and buttons.
This code gets the value from Entry when the button is pressed.
At that time, the value is retrieved without any problem on Windows, but on a Mac, a memory error occurs.
Is it possible for you to correct this?
Thank you.
The text was updated successfully, but these errors were encountered: