Jump to content

Bug in TUnimCarousel when deleting UnimCarouselPages


likemike

Recommended Posts

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

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

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

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

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:

 

screen.jpg

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

×
×
  • Create New...