Solved

Common dialogs

Posted on 1998-06-11
2
333 Views
Last Modified: 2013-11-20
Note: This is a 16-bit app.  In AppStudio I created a dialog box that looks like a common open file dialog but has some extra controls.  The class that handles this dialog is derived from the CFileDialog class.  The problem is this, when CFileDialog::OnOK() is called from my ::OnOK() member function, the dialog does not disappear.  However, CFileDialog::OnCancel() does cause the dialog to disappear.  Here's something strange:  if I use CDialog::OnOK() the dialog disappears like expected.  There is one problem though, eventually Win95 runs out of "16-bit" memory and no more common dialogs will display, not only my app, but any 16-bit apps.  The ::DoModal() function returns a CDERR_MEMALLOCFAILURE error.  Any clues as to why CFileDialog::OnOK() does not work and why CDialog::OnOK() is not cleaning up properly??
0
Comment
Question by:dlbrown051198
[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
2 Comments
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 100 total points
ID: 1317866
Try increasing the stacksize in your module definition file. It needs to be at least 8196 and typically more. I would suggest 12K.
0
 

Author Comment

by:dlbrown051198
ID: 1317867
Wouldn't increasing the stack size just allow me to use the dialog a few more times before the memory error occured again??
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
function returning CString in a regular win32 DLL 8 200
Expand LInux Boot partition remotly 3 102
iSeries DB2 Query 2 98
Not needed 13 129
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

756 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