Solved

Assertation on UpdateData in DLL???

Posted on 1997-07-13
1
350 Views
Last Modified: 2013-11-20
I have a regular MFC DLL which brings up a modeless
dialog. Everthing runs great until I load the member
variables and do a UpdataData(FALSE). I get an ASSERT
in wincore.cpp, line 856. It mention somehting about
multithreaded DLL sharing CWnd objects. I am not
exlicitly passing any object to different threads as
far as I know. Any ideas?
0
Comment
Question by:rocco
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 23

Accepted Solution

by:
chensu earned 100 total points
ID: 1302558
You need to call
AFX_MANAGE_STATE(AfxGetStaticModuleState( ));

For more information on module states and MFC, see the article Managing the State Data of MFC Modules in Programming with MFC and Technical Note 58, "MFC Module State Implementation," in MFC Technical Notes.

0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question