Skip to content
This repository has been archived by the owner on Mar 23, 2021. It is now read-only.

Memory managment #7

Open
YuriOsokin opened this issue Jul 10, 2016 · 0 comments
Open

Memory managment #7

YuriOsokin opened this issue Jul 10, 2016 · 0 comments

Comments

@YuriOsokin
Copy link

I am parsing two JSON file one after another.

parser = JSON_Parser();
[obj, errors] = parser.parse(File1,'Schema.json');
clear parser.configParam, delete(parser), clear parser
parser = JSON_Parser();
[obj, errors] = parser.parse(File2,'Schema.json');

On the second time I parse, the object has some memory regarding its positionin schema. Clear all, clear classes, delete(parser), and clearing persistent variable 'clear parser.configParam' does not help.
It seems that the problem is in the persistent variable 'config' in the static function 'configParam' of the JSON class. But still, I am not sure.
Could you please see what the issue is?

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

No branches or pull requests

1 participant