Page 1 of 1

Access violation (struct)

Posted: 19 Aug 2020, 15:27
by Lx Xzit
I wrote this code:

Code: Select all

struct npc_struct
  dim ivala as integer
  dim ivalb as integer
  dim ivalc as integer
end

dim mynpc as npc_struct
mynpc.ivala = 1


But when struct variable is called, it gives me a "Runtime Error (Access Violation)" in the debugger:
error.PNG
error.PNG (3.32 KiB) Viewed 1251 times


And the script stops executing. Is this a bug or I am doing something wrong?

Posted: 20 Sep 2020, 10:15
by Lx Xzit
Not fixed or replied to yet.

Posted: 20 Sep 2020, 19:58
by NESTED ERNEST
If 38A puts that symbol it means that it is not an error.

Posted: 20 Sep 2020, 23:09
by Lx Xzit
That's obvious. However, 38A often misses these details, for example how he could not notice the dim "fix" broke "with" blocks? That would have been fairly easy to notice. If he wasn't able to replicate this bug and it works as expected, he should either reply me telling how to fix (like seriously, how else I'm supposed to know it?) or test it again in the same build we all use (of course, he has the dev version which may differ a bit from ours)

Posted: 24 Sep 2020, 1:46
by NESTED ERNEST
I also report errors like 3 times that were not fixed, like this:
https://wohlsoft.ru/forum/viewtopic.php?f=64&t=3830

Has he made a mistake?
I wonder how he does with the suggestions? The choice is random? Has the developer seen this? Remove this restriction