I have two methods in the same class. One method calls the other. Lets call em method 1 and method 2. Method 1 calls Method 2. for whatever reason, when I try assigning values in method 2 to arrays or vars that are not local to that method , I get an access violation error. I double checked everything and it all makes logical sense and even asked chat GPT and it gave me the green light (Chat gpt, the most trusted source of advice).
At first I tried moving the declaration of the private variables to public but to no avail. At one point I even moved the declaration of a private array to the local of method2, method2 just had some inner sense that “this didint come from my house” and gave an access to violation error when the array was assigned values. I dont know why this specific method is allergic to parsing values to external arras and vars. The infuriating thing is, this specific method is very essential to the program and holds valuable data that needs to parsed to other methods in the class. Now the whole program has halted because of this one issue. Anyone familiar with delphi, please help. I would appreciate if u are even atleast remotely aware with my problem
anonymous cod is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.