CompuServe Thread

#Animator VBX

2 messages in this thread
#113764From: SteveJul 20, 1994 9:56 AM
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
#113784From: Brian Rudolph [Adesk]Jul 20, 1994 11:35 AM
Steve, I'm not sure why you are getting GPF's. If you want to send me your code, I can test it here and see if I get the same behavior. No, animator does not need time to set properties, that should happen immediately. Also, I set up a MSGBOX to display the path and file name just like you had: MSGBOX Animation1.Animation and it returned the path and file name with no problem. So again, I couldn't tell what else is happening without seeing the full code. -Brian -Brian