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


Help - Get Error after exit D3 APP??(MDI)

Posted on 1998-09-28
Medium Priority
Last Modified: 2010-04-03
My Question is.....

I have come across a good solution for using MDIChild forms in Dll's. However it requires you to Build your Project EXE and Dll's with Runtime Packages. Now the program works beautifully releasing forms (MDICHilds) as it should, but as soon as I try and Exit out I get an Access Violation in VCL30.DPL .. I have tried to block this using exceptions in the FormClose and FormDestroy events of my Mainform which is an MDIForm. Anyone got any ideas on how to stop the Access violation problem as it chews memory big time.

Regards Westy
Question by:westy100697
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
  • 3
  • 3
LVL 10

Expert Comment

ID: 1341082
Hello again!

Are freeing the forms after you create them???


Author Comment

ID: 1341083
Hi Vik,
          I have been using release. This is a technique I use from my D1 days. However I will try free and see if it works.

LVL 10

Expert Comment

ID: 1341084
Release is not a perfect method,..try changing that to Free here is why,...

When you call FREE method here is what the procedure does,,,,
procedure Free;
  if Form <> nil then

So it first checks if the object has been freed and if not than it is freed, otherwise it it's not there then the compiler goes to the next method....

Viktor Ivanov

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!


Author Comment

ID: 1341085
      Yeh I ttried the free method and for some reason it causes even more problems. So what I am thinking after all this is to revert the Dll's (the forms in the Dll's) back to SDI's or just fsNormal. I think it will be much easier at this stage and I will have to spend some more time down the track researching this a bit more. Anyway appreciate your help and if you lock the question I will give you the points because you were at least trying to help me out.

   WESTY 8-)
LVL 10

Accepted Solution

viktornet earned 200 total points
ID: 1341086

I'm going to bed now, and I'll talk to you tommorow after school, and will try to maybe find something about this topic./////


Author Comment

ID: 1341087
      I have got a couple of e-mail adressed you can contact me on also and probably the best one is  boabyte@ozemail.com.au. I will give you the points because of the effort you have put in. Once again thanks.

Regards WESTY

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

730 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