Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Dll crashing on some machines.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Dll crashing on some machines.

 Post Reply Post Reply
Author
Message
vijaymahajan View Drop Down
Groupie
Groupie
Avatar

Joined: 16 June 2008
Status: Offline
Points: 92
Post Options Post Options   Thanks (0) Thanks(0)   Quote vijaymahajan Quote  Post ReplyReply Direct Link To This Post Topic: Dll crashing on some machines.
    Posted: 26 August 2008 at 11:23pm

Hello,

I have created one dummy dialog based application. and one dll in mfc.
Later i applied the extreame toolkit library in dll and applied theme on a dialog coming from that dll.
The dll is being called from exe application.
Herewith i am sending both dummy dll and exe applications.
1)You just run the exe application. one dialog will come.
2)click the ok button on the dialog.
3)another dilaog will pop up when u click on the ok button,There is theme applied on this popup dialog using xtreametoolkit.
4) then press ok or close button on this pop up dialog.
The application crashes.
 
And this crash is coming on most of the machines. only 2 machines we found the exception for this in our office.
 
Can You please suggest why it is happening?Why the application crashing on most of the machines?
 
Thanks And Regards,
Vijay.
 
 
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 27 August 2008 at 4:05am
Hello,
 
its because you load skin in dll.
Load it in exe or Unload and Remove all  in dll's ExitInstance.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
vijaymahajan View Drop Down
Groupie
Groupie
Avatar

Joined: 16 June 2008
Status: Offline
Points: 92
Post Options Post Options   Thanks (0) Thanks(0)   Quote vijaymahajan Quote  Post ReplyReply Direct Link To This Post Posted: 29 August 2008 at 2:48am
Hello,
I checked in class XTPSkinManager. There are some functions like Remove(),RemoveAll().I tried these functions to remove the skin,But it wasnt working.
Also there is one function FreeSkinData() function to remove the skin,but it is private.
 
Which function shall i use to remove the skin.Please guide me accordingly.
Please guide it for dll case if possible.
 
Thanks And Reagards,
Vijay.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 29 August 2008 at 4:17am

Call

XTPSkinManager()->LoadSkin(NULL, NULL);
XTPSkinManager()->RemoveAll();
 
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.055 seconds.