Solved

Assertation on UpdateData in DLL???

Posted on 1997-07-13
1
328 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

911 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now