Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - [solved] v18.0.1 multi thread  problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[solved] v18.0.1 multi thread problem

 Post Reply Post Reply
Author
Message
angelsoriasanagustin View Drop Down
Groupie
Groupie


Joined: 16 September 2015
Location: Spain
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote angelsoriasanagustin Quote  Post ReplyReply Direct Link To This Post Topic: [solved] v18.0.1 multi thread problem
    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.
Back to Top
olebed View Drop Down
Admin Group
Admin Group
Avatar

Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 567
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 09 August 2017 at 8:05am
Hello,

We need sample application from you to reproduce this issue.

Regards,
 Oleksandr Lebed
Back to Top
angelsoriasanagustin View Drop Down
Groupie
Groupie


Joined: 16 September 2015
Location: Spain
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote angelsoriasanagustin Quote  Post ReplyReply Direct Link To This Post Posted: 09 August 2017 at 10:31am
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 !

Back to Top
olebed View Drop Down
Admin Group
Admin Group
Avatar

Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 567
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 09 August 2017 at 6:54pm
Hello,

Just delete in method CXTPSkinManagerApiHook::InitializeHookManagement()   line 

    IncrementAllModulesReferenceCounters(&moduleList);

and rebuild SkinFramework or ToolkitPro library.

Regards,
 Oleksandr Lebed
Back to Top
angelsoriasanagustin View Drop Down
Groupie
Groupie


Joined: 16 September 2015
Location: Spain
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote angelsoriasanagustin Quote  Post ReplyReply Direct Link To This Post Posted: 10 August 2017 at 6:57am
It works like a charm !

Thanks !
Back to Top
olebed View Drop Down
Admin Group
Admin Group
Avatar

Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 567
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 10 August 2017 at 7:02am
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.
Back to Top
olebed View Drop Down
Admin Group
Admin Group
Avatar

Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 567
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 12 August 2017 at 4:02am
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
Back to Top
adrien View Drop Down
Senior Member
Senior Member


Joined: 30 April 2007
Location: New Zealand
Status: Offline
Points: 428
Post Options Post Options   Thanks (0) Thanks(0)   Quote adrien Quote  Post ReplyReply Direct Link To This Post Posted: 14 August 2017 at 8:22pm
Hi Oleksandr

does this mean we can expect an updated CJ (18.0.2) soon with this fixed?

Regards

Adrien
Back to Top
olebed View Drop Down
Admin Group
Admin Group
Avatar

Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 567
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 15 August 2017 at 5:40am
Hello Adrien,

Unfortunately I don't know when will be next update.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.124 seconds.