I am developing a Flex extension for InDesign CS5 above. The UI is simple, just contains a button. On the application complete, I just initialize an object of a class. My problem is that sometimes, the button on the panel just doesn't load. For eg., if I close the ID application without closing the panel, and then re-open the application, normally, the panel should load fine with its components. But here, the button is not visible. I have to close the panel, and then re-open it to get the button to load. There is no specific pattern. I tried finding out the problem by setting up alerts in the pre-initialize, initialize, creation complete and app complete events. But these events are not triggered.
I am in a fix. It doesn't feel right that the user should close the panel and re-open it, to get the extension to work.
Anything I can do to fix it?
Just noticed on repetitive testing that the problem seems to occur in ID CS6.. Any input?
Message was edited by: poortip87
I am still struggling with my panel load.. I tried creating a new sample project. I added nothing, just exported the newly created project and installed it on ID CS6.. But same result.. The panel doesn't load.
On further testing, I found that if the panel is moved (eg. dragging the panel using the mouse), the panel loads instantly. Is there a bug in InDesign CS6, beacuse the extension loads just fine in other versions? Also, this problem occurs in Win 7 and 8. It works fine on Win XP. The one in Mac OS loads fine.
I found a workaround for my problem. I just turned the visibility of my panel on and off and it worked.. Note that this inserted a crash for ID CC..
If anyone finds a more appropriate solution for this please let me know.