CompuServe Thread

vbplay handles

2 messages in this thread
#25549From: MechadeusOct 26, 1992 5:42 PM
Hi, I'm using Visual Basic with the autodesk aawinplay tool for VB. It seems to work will most of the time but sometimes I get the error… Animation Error. You are attempting to use an invalid animation handle. I never use handles in my code I only pass the filename of the .flcs. What could be going wrong?
#25678From: PhilD [ADESK]Oct 28, 1992 4:23 PM
Though you don't think you are using handles, handles are passed all over the place. They are given a different appearance in VB. When you load up or open an animation a handle to that animation is generated. All further references to that animation are via that handle. If that value gets destroyed, or if you call a function out of the DLL while using a different or invalid handle, this will generate this message. I can't be more specific without seeing the actual code you are using.