Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Common dialogs

Posted on 1998-06-11
2
Medium Priority
?
347 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 200 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

Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

Question has a verified solution.

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
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.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

670 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