Having odd bug in my mfc single doc program (VS2008). When calling AFXPrintPreview(this), an assertion gets tripped. Looks like on line 181 of afxpreviewviewex.cpp, when mfc tries to get a hold of the docking manager, it just gets NULL, which trips an assert when mfc attempts to add a pane on line 183. Specifically, I get the print statement: ASSERT_VALID fails with NULL pointer. The parent frame being passed into GetDockingManager() is definitely my main frame. I would assume this means that there's some initialization my frame must be missing?
afxGlobalUtils.GetDockingManager(pParentFrame); returns NULL
110 views Asked by PBandJ At
0
There are 0 answers
Related Questions in VISUAL-STUDIO-2008
- Unable to cross-compile a simple program using MSVC 9
- How to add/import and control 3d object to visual studio 2008
- How to use charting libraries in windows form application for compact windows?
- How to use MSBuild for Visual Studio 2008 in a docker container?
- Cannot edit and save DLL resources in Visual Studio
- Special language constants make the .RC file uneditable
- visual studio How do I run a windows 2008 ce Solution on VS 2017?
- [VB.NET][2008] 2 forms show and close
- What is the meaning of #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_BGR)
- Visual Studio 2008 DataGrid column width changing
- How to run batch script in IBM Rhapsody after build is successful to copy config files
- How to add reference under COM link in Visual Studio 2008?
- Visual Studio 2008 Form1 textbox1.text renames Form2 label1.Text
- How can I tell what version of VB/.NET this project is using?
- How Objects stored in memory? Inherting a Base Class vs. Creating a Base Class Member Object
Related Questions in MFC
- Unable to add request headers via CHttpFile - C++/MFC
- Is there a worked example of using CStrBufT with a CString?
- UI Interface Crashes and Hanging Issues in MFC Application
- getting a Win32 console app to work with MFC
- How to create borderless CFrameWnd for SDI application
- How to get real lines count of CEdit control
- MFC Dynamic Layout - Show/Hide Control and adjust other controls out of the way?
- Combobox items not showing when Windows DPI changed
- Printing strings using MFC Edit Control is very slow
- How can an MFC VC++ application execute multiple functions within a single function without hanging or displaying a 'Not Responding' message?
- How to enable scrollbar in a specific group member added
- Resetting dynamic layout controls
- How to set a new height (or width) to a CRect?
- Drawing my own embedded button with CMFCPropertyGridProperty and detecting the button state
- Relative path issue when running programs with Task Scheduler
Related Questions in PRINT-PREVIEW
- How can i printpreview multiple excel sheets, with the names of the sheets located in a range?
- A4 page height is not considered when generating dynamic page number using javascript during print event
- CSS Footer not working in Chrome Print Preview Page
- Landscape mode not applied during print preview in Chrome (version 117)
- Print preview is adding one blank page
- how to printpreview and print SharpPDFLabel in vb.net
- Why doesn't my base64 'image64' appear in my print preview (and printed) html document built in JS?
- MS Access setting unbound text boxes to Null in Print Preview
- Print data grid view skips the first row
- Word VBA Document.ClosePrintPreview intermittently crashes with runtime error 4605
- Displaying a video as a thumbnail using HTML and print preview
- I want to add pdf and excel buttons in printpreviewdialog page in c#
- VBA conditional formatting not visible in Print Preview
- I Need to handle Print Preview App Dialog Box. But I am not able to do that with Selenium C#. How can I do it? The Print Preview opens in another tab
- msaccess report print preview goes into endless loop
Related Questions in AFX
- Writing to and Reading from the Clipboard in an afxwin application
- InitInstance(): pugixml corrupts my this pointer
- Is it possible to define slots in neos fusion afx like you can in Vue?
- afxGlobalUtils.GetDockingManager(pParentFrame); returns NULL
- Neos CMS script in afx doesn't work for some reason
- Catching windows shutdown events using AFX Message maps, handler function is never called
- Issue enabling folder browse button on CMFCEditBrowseCtrl
- InterlockedAdd64 can't be found after adding _AFXDLL macro and clr support
- Unable to change the color of my dialog boxes in my application
- Alternative for ON_COMMAND message map macro to call a function with a paramenter(s)
- MFC: _AFXWIN_INLINE give me "no overloaded function takes 6 arguments"
- Wait for thread completion without freezing the UI in MFC
- Why setting DEBUG_NEW in an MFC app can cause compiler error
- Embedded IE control (CHtmlView) not passing down WM_SIZE while dragging
- What do I need to do to program an MFC/STL program in Visual Studio?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)