[bug] when assign object var to its' sub var Topic is solved

Report problems with documented functionality
User avatar
aseiot
Posts: 79
Joined: 05 Mar 2017, 04:25

[bug] when assign object var to its' sub var  Topic is solved

21 Nov 2018, 08:12

It get error when assign object var to its sub var. Such as

Code: Select all

X := ["TEST"]

X := X.1

MsgBox X	; should be "test", actually nothing or messy
It could reproduced when run in "debug" version (compiled from source)

AHK version: V2 a100

EDIT:
Can not reproduce it, closed
Last edited by aseiot on 06 May 2019, 10:38, edited 1 time in total.
User avatar
aseiot
Posts: 79
Joined: 05 Mar 2017, 04:25

Re: [bug] when assign object var to its' sub var

21 Nov 2018, 08:22

I can narrow down the code to LINE 413-414 in var.cpp

Code: Select all

413	if (mAttrib & VAR_ATTRIB_IS_OBJECT)
414		ReleaseObject(); // This removes the attribute prior to calling Release() and potentially __Delete().
When release the object, the sub var hold in "aBuf" is vanished also.

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 45 guests