4DScript Error

All topics on coding 4Dscript in Enterprise Dynamics.
Post Reply
EDuser
Posts: 1
Joined: Wednesday 24 August, 2016 - 09:45

4DScript Error

Post by EDuser »

Hi all,

I'm new of this forum but I'm using ED9 since last year.
I often meet different kind of errors, due to my poor experience, and every time is an opportunity to learn wht NOT to do.
I'm working on a new project with wareouses and production lines, but I'm always receiving a strange error that I cannot understand.

The screenshot of the error attached.

I really don't know where to search and how to interpretate it.
If I click OK, the simulation re-starts without big problems but I receive the same error (identical, same reference numbers) many many times during a simulation.

I tried to change the seed, in order to see if something changes...but no.

Is it something related to some pointer? Where should I start to debug?

Thank you,
Chiara
Attachments
Ederror.PNG
Ederror.PNG (6.67 KiB) Viewed 14066 times
User avatar
HarryBunnik
Posts: 362
Joined: Monday 07 February, 2011 - 11:22

Re: 4DScript Error

Post by HarryBunnik »

Ha Chiara,

An Access violation is caused by a call to a pointer that is not (any longer) valid, which is not allowed. They are not really easy to find, although with the arrival of ED 10 a more precise error is given.

If you have no chance to upgrade to ED10, or don't want to, you'll have to search there where your code can be calling atoms that no longer exist. You then might be able to work around it using "AtomExists".

You might also want to take a look at: viewtopic.php?f=3&t=7&p=75&hilit=access+violation#p75

I hope that this helps you a bit further.

Cheers,

Harry
Post Reply