SRL Archive - Jr. Member General Help and Discussion

Access violation, non-existing file, !addDelayedCode??


Citrus

2015-05-12 07:05:07

Compiled successfully in 2652 ms.
ERROR comes from a non-existing file (!addDelayedCode)
Error: Access violation at line 86
Execution failed.


It has a problem with line 86, no matter what's written there. I had this problem a long time ago but I can't remember how/if it went away.


Justin

2015-05-12 08:02:25

I've had this happen to me a few times, any chance you're using the ogLib include? Or are you using an official include (SRL-6/SRL-OSRS)?

3Garrett3

2015-05-12 10:15:27

I had this problem often when I was working on my merchantAid. Any chance you're working a lot with changing memory (ie working with arrays)? I found that I was running into problems from not having the right length set for a single array out of about 30. It blows Simba up. I also found that running rapid loops of TIntegerArray.Append(X) for 30 arrays would blow Simba up too, it's way better to do your calculation on the length and set all lengths before looping through stuff.

Citrus

2015-05-12 12:21:52

From: Justin
I've had this happen to me a few times, any chance you're using the ogLib include? Or are you using an official include (SRL-6/SRL-OSRS)?


SRL-6

From: 3Garrett3
I had this problem often when I was working on my merchantAid. Any chance you're working a lot with changing memory (ie working with arrays)? I found that I was running into problems from not having the right length set for a single array out of about 30. It blows Simba up. I also found that running rapid loops of TIntegerArray.Append(X) for 30 arrays would blow Simba up too, it's way better to do your calculation on the length and set all lengths before looping through stuff.


Yeah that makes sense, I'm solving a small system of linear equations. I'll go through and make some adjustments.