Solved

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

Posted on 1998-09-28
6
145 Views
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
0
Comment
Question by:westy100697
[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
  • 3
  • 3
6 Comments
 
LVL 10

Expert Comment

by:viktornet
ID: 1341082
Hello again!

Are freeing the forms after you create them???

//Vik
0
 

Author Comment

by:westy100697
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.

WESTY :)
0
 
LVL 10

Expert Comment

by:viktornet
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;
begin
  if Form <> nil then
    Form.Destroy;
end;

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

0
Technology Partners: 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

by:westy100697
ID: 1341085
Vik,
      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.

Thanks
   WESTY 8-)
0
 
LVL 10

Accepted Solution

by:
viktornet earned 50 total points
ID: 1341086
Thanks!

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./////

//Vik
0
 

Author Comment

by:westy100697
ID: 1341087
Vik,
      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
0

Featured Post

Enroll in July's Course of the Month

July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses
Course of the Month6 days, 6 hours left to enroll

636 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