Solved

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

Posted on 1998-09-28
6
138 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
  • 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
IExtractImage Delphi 14 202
my delphi exe application have  problem with windows explorer ! 12 80
Newbie Thread Programming 1 139
Delphi cmd execution 6 55
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

911 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now