[solved] v18.0.1 multi thread problem |
Post Reply |
Author | |
angelsoriasanagustin
Groupie Joined: 16 September 2015 Location: Spain Status: Offline Points: 46 |
Post Options
Thanks(0)
Posted: 09 August 2017 at 7:03am |
Hi.
My code was working good with v 17, when I updated to v18.0.1 I had found a strange problem: I'm using XTPSkinManager()->LoadSkin(...) This is the normal appearance: When I create a Working Thread with: m_pThread = AfxBeginThread( process, this ); The appearance changes, and the Main window bar show the menu bar duplicated ¿¿?? Only works the upper copy: Can you help me ? Thanks.
|
|
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
Hello,
We need sample application from you to reproduce this issue. Regards, Oleksandr Lebed |
|
angelsoriasanagustin
Groupie Joined: 16 September 2015 Location: Spain Status: Offline Points: 46 |
Post Options
Thanks(0)
|
Hi !
Here it's it: https://www.dropbox.com/s/ywnczbu5ohar1er/Test.zip?dl=0 Look at MainFrm.cpp ////////// If you comment this, all works fine //////////// CClient c; c.LaunchThread(); ///////////////////////////////////////////////////////////// Thanks Best regards ! |
|
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
Hello,
Just delete in method CXTPSkinManagerApiHook::InitializeHookManagement() line IncrementAllModulesReferenceCounters(&moduleList); and rebuild SkinFramework or ToolkitPro library. Regards, Oleksandr Lebed |
|
angelsoriasanagustin
Groupie Joined: 16 September 2015 Location: Spain Status: Offline Points: 46 |
Post Options
Thanks(0)
|
It works like a charm !
Thanks !
|
|
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
Thank you for sample application and information about this bug. It made investigation much easy.
I think this will fix many strange issues in SkinFramework. |
|
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
Hello,
Problem was deeper than just reference counter, changes are complex. If you find more problems with multi threads and SkinFramework then create a support ticket and we can share new version of files. Regards, Oleksandr Lebed |
|
adrien
Senior Member Joined: 30 April 2007 Location: New Zealand Status: Offline Points: 449 |
Post Options
Thanks(0)
|
Hi Oleksandr
does this mean we can expect an updated CJ (18.0.2) soon with this fixed? Regards Adrien
|
|
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
Hello Adrien,
Unfortunately I don't know when will be next update. |
|
angelsoriasanagustin
Groupie Joined: 16 September 2015 Location: Spain Status: Offline Points: 46 |
Post Options
Thanks(0)
|
Hi!
Multithread problems still present in 18.0.2 version
|
|
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
there is no version 18.0.2.
We even have called next version after 18.0.1 as 18.2.0 to prevent confusing with 18.1.0 I have tried your sample with 18.2 and it works fine. What is problem in this time ? |
|
angelsoriasanagustin
Groupie Joined: 16 September 2015 Location: Spain Status: Offline Points: 46 |
Post Options
Thanks(0)
|
Same as first post.
I don't have the test project that I sent you, please send to me and I'll try with it.
|
|
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
I have tested your sample also with current repository and all work as expected. I will send it later because don't have access to it right now.
|
|
angelsoriasanagustin
Groupie Joined: 16 September 2015 Location: Spain Status: Offline Points: 46 |
Post Options
Thanks(0)
|
I have tested the sample and works fine. I'm going to test the main app... I will inform you...
Thanks.
|
|
angelsoriasanagustin
Groupie Joined: 16 September 2015 Location: Spain Status: Offline Points: 46 |
Post Options
Thanks(0)
|
The Sample code works fine, but my main app has the same problem as first post, and It's is related with the threads.
I'm trying to reproduce It in the sample project....
|
|
mcm
Newbie Joined: 05 March 2018 Status: Offline Points: 1 |
Post Options
Thanks(0)
|
I am experiencing the same issue in my multi threaded application. On some computers it works and on others usually fast computers it doesn't work. If I run the application in debug mode it works but not in release mode where everything is executes faster.
This is a racing condition. From what I have been able to gather, the problem is the critical sections of various natur that has been implemented in ToolkitPro. The implementation of the critical sections allows for racing conditions, and hence they fail under incertain conditions. So far I have replaced the content of the CXTPSimpleCriticalSection with a CMutex which does half the trick. I'm trying to understand how the other critical sections were intended to work, and exchange these with standard synchronisation objects like CMutes. I would appreciate any feedback. |
|
angelsoriasanagustin
Groupie Joined: 16 September 2015 Location: Spain Status: Offline Points: 46 |
Post Options
Thanks(0)
|
Hi.
We can't find a reason. A sample application sent to CodeJock fails with older version, but with the actual version works, but the main application still having same problem. We don't find any cause, and need more time to investigate. We will check your conclusions. CodeJock team, please don't forget this problem. We are using old libraries, because new ones are not working for us.
|
|
Rami
Newbie Joined: 15 January 2019 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
Hi. I'm experiencing the same issue with Xtreme Toolkit Pro v18.6.0. The test project is no longer available for me to download. Can it be made available again? Thank you.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |