Solved

Common dialogs

Posted on 1998-06-11
2
341 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

623 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