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
108 Views Asked by PBandJ At
0
There are 0 best solutions below
Related Questions in VISUAL-STUDIO-2008
- Automatically Compile .Net UserControls
- Error code 31 returned from mt.exe when building C++ projects in Visual Studio 2013
- Issue with Referenced DLL's on compiled EXE in Visual Studio 2008
- How can I prevent picture boxes from intersecting, while they are in constant movement?
- Microsoft TFS and Visual Studio 2008 - project hierarchy changing on server
- Disable clock edit on windows 6.5
- How to static link EDK II library into application in Visual Studio 2008 tool chain
- MFC Feature Pack 2008 CPaneDialog as CDialogBar
- Can we highlight single word of from Text Property (have multiple words)of Label Control
- Getting exception while compiling in 64bit visual studio 9.0 sp1
- Error LNK2019 LNK2001
- Desktop Shortcut Icon is different than Application Icon
- Trying to reduce size of memory allocations in debug compilations for C++
- c++ wofstream issue in unicode program
- How to set parameters as optional while adding crystal reports in central management consol
Related Questions in MFC
- Cannot "Go To Definition" in Visual C++ 2013
- reset mdi child view position
- Add a picture to Picture Control in a dialog box (error RC2108: expected numerical dialog constant)
- Background color for controls in MFC C++ is unable to set
- variable global const "macros" in C++ and optimal design patterns
- Converting long double to CString
- postmessage and message loop in different thread
- How to convert CString to long? VC++
- Can a dialog intercept drag'n'drop messages passed to its controls?
- Can I close (note, not terminate) a user process from a service by its PID?
- How can I have a multi-line item in a ListControl MFC?
- Getting the messages back to the same command line from where the MFC application was launched
- MFC - How to set the toolbar title?
- MFC SetTitle() causing weird debug assertion
- Application logs on the command prompt from where application is being launched
Related Questions in PRINT-PREVIEW
- Remove header and footer when printing from WebBrowser control
- Hide urls when printing a page
- How can I open the printPreviewDialog in a tab from my Form?
- Changing from Portrait to Landscape PrintDocument/PrintPreview
- Show a user print preview and execute code if he printed
- "Does Not Contain Definition and No Extension Method Found " But Exists in another Class
- How to Get Designer.cs to access other classes in C#
- Wireless Printing in PrintDialog C#
- Input fields are repeating in preview page
- How to default a SSRS report to PRINT PREVIEW
- Print Preview for PDF in iOS
- Print Multiple Pages from SqlServer Database using C# PrintDocuments
- Need help in vb print previewing record information from file
- URL updated in history but not in print-preview (firefox)
- how to show land scape in css3
Related Questions in AFX
- windows.h and MFC
- Implementation of the MPEG-4 standard Part 16 (Animation Framework Extension)
- MFC: _AFXWIN_INLINE give me "no overloaded function takes 6 arguments"
- Alternative for ON_COMMAND message map macro to call a function with a paramenter(s)
- Unable to change the color of my dialog boxes in my application
- InterlockedAdd64 can't be found after adding _AFXDLL macro and clr support
- afxGlobalUtils.GetDockingManager(pParentFrame); returns NULL
- Catching windows shutdown events using AFX Message maps, handler function is never called
- InitInstance(): pugixml corrupts my this pointer
- how to pass argument to afxbeginthread
- Is it possible to define slots in neos fusion afx like you can in Vue?
- Why setting DEBUG_NEW in an MFC app can cause compiler error
- AfxBeginThread() PostMessage to change contorls
- Unresolved external on static data member from another DLL
- CoCreateInstance Returning E_INVALIDARG
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)
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?