#Animator VBX
Dear AutoDesk,
I am attempting to set the animation property in a procedure that looks like
this
sub playflic(flic as VBAnimation,path as string)
flic.play = false flic.animation = path msgbox flic.animation
Unfortunately, msgbox returns an empty string. Furthermore, when I attempt to
exit my app in the design time shell, I get a General Protection Fault.
If I set the animation path in a loop,
while flic.animation <> path
flic.animation = path wend
the animation path is eventually set, but when exiting my app at design time,
GPF occurs. I have eliminated all possible contributing factors and discovered
that by commenting out flic.animation = path, no GPF occurs. I have also given
the animation property a string such as:
flic.animation = "d:\flics\cat.flc", but msgbox still returns "" and GPF
occurs. GPF error is 001A:15F9.
Does the animator need time to set its properties? If so, how can I do this?
I also use aaGetParm call to determine if the animation is playing. I get a GPF
on this especially without using the while loop to set the animation path.
What causes your dll function calls to do this?
-Adlait