Solved

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

Posted on 1998-09-28
6
141 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
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

810 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