likemike Posted May 2, 2021 Share Posted May 2, 2021 Hello! In my project I use a TUnimCarousel which is filled with pictures when the user presses a button. The carousel pages and UnimImages are created during runtime. When the user presses the button a second time I free the carousel pages and create new pages. Here is the error. 1st try: all is fine 2nd try: an Ajax error "Cannot set property 'ownerCmp' of null" appears This sounds like that for me: So I use the afterCreate-event as recommended by Sherzod. Now the behaviour is: 1st try: all is fine 2nd try: not all pages are filled and other things are obviously wrong 3rd try: an Ajax error "I.getId is not a function" appears I've added a test project to comprehend. Regards Mike UniGui.rar Link to comment Share on other sites More sharing options...
likemike Posted May 7, 2021 Author Share Posted May 7, 2021 Hello! I figured out something: when the whole UnimCarousel is created and deleted during runtime too, it works better. There are no more error messages but pictures are overlapping with pictures from earlier attempts. So there is something worng with the deletion of UnimCarouselPages. They're not freed in a clean way. Maybe that helps to find the bug. Regards Mike Link to comment Share on other sites More sharing options...
likemike Posted May 11, 2021 Author Share Posted May 11, 2021 Hello! How is the actual state here? @Sherzod: can you reproduce the bug? Any ideas how to solve this? Please help... Link to comment Share on other sites More sharing options...
Sherzod Posted May 11, 2021 Share Posted May 11, 2021 8 minutes ago, likemike said: Any ideas how to solve this? Hello, Do you mean "issues" after clicking the button again? Link to comment Share on other sites More sharing options...
likemike Posted May 11, 2021 Author Share Posted May 11, 2021 Yes! The first click always works as it should. But the second click not (see above). Link to comment Share on other sites More sharing options...
likemike Posted May 16, 2021 Author Share Posted May 16, 2021 Hello Sherzod! Could you reproduce the errors with my sample? Do you have any idea, how to fix it? Is it a problem with cache? This is a very urgent problem for me, because I can't deliver my software with that error, so please tell me, if there is any suggestion or progress. Regards Mike Link to comment Share on other sites More sharing options...
Sherzod Posted May 16, 2021 Share Posted May 16, 2021 Hello, Just now, likemike said: Could you reproduce the errors with my sample? Yes. 1 minute ago, likemike said: Do you have any idea, how to fix it? Is it a problem with cache? This is a very urgent problem for me, because I can't deliver my software with that error, so please tell me, if there is any suggestion or progress. Sorry not yet, we will check it. Link to comment Share on other sites More sharing options...
Sherzod Posted May 16, 2021 Share Posted May 16, 2021 1 hour ago, likemike said: Do you have any idea, how to fix it? As a solution at the moment, you can recreate UnimCarausel too... Link to comment Share on other sites More sharing options...
likemike Posted May 16, 2021 Author Share Posted May 16, 2021 Yes! I did that. Then the error messages doesn't appear, but then the pictures of all carousels are drawn and overlapping on the same CarouselPage (not on Desktops but on tablets) like this: This behaviour appears only when you call it the second or third time and so on. The Fist time all is perfect. Link to comment Share on other sites More sharing options...
Recommended Posts