if it doesn't have a break or continue, then look at the Debug Settings under options for Ignored exceptions and untick the AV<br><br><div class="gmail_quote">On Sun, Mar 20, 2011 at 2:51 AM, Charlie <span dir="ltr"><<a href="mailto:kerscher@bellsouth.net">kerscher@bellsouth.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Colin thanks again for helping. Here's an update.<br>
First I have two programs at a small manufacturing company. They are<br>
essentially order entry apps. The first one we call DBA and is a<br>
modification of Accounting for Delphi. I have a form in the DBA app which<br>
does the same thing I'm trying to do in the second app (SG). The second app<br>
is for one of the company's customers as that customer had many different<br>
business rules and manufacturing requirements. The two programs share a few<br>
dBase tables like the order, customer and a sys table (which has fields for<br>
the next order/invoice numbers, company address etc).<br>
The DBA form closes okay and the DBA main form closes okay. The SG form<br>
closes okay but the SG main form throws the A/V even though the SG form is<br>
essentially a copy of the DBA form. The main forms for the two apps are not<br>
the same though.<br>
I tried what you mentioned below but wasn't patient enough I guess as the<br>
program transverses every unit for every control (I guess) before it breaks.<br>
I'll try doing that again.<br>
What is so confusing is that I have several forms in the SG program that<br>
have ACE Reporter reports and they all work fine; ie, don't cause A/Vs.<br>
By the way the A/V error doesn't have break or continue choice.<br>
I'm so desparate.<br>
<font color="#888888">Charlie<br>
</font><div><div></div><div class="h5"><br>
<br>
Glad to help :)<br>
<br>
Generally speaking, access violation occur when you are trying to<br>
access an object that doesn't exist (anymore). Since you get this<br>
error when closing the main form, it is very likely the program is<br>
trying to access an object that has already been freed (prematurely).<br>
You may need to place a breakpoint on the main form's close event and<br>
step into the code (F7) as it traverses to each line across the<br>
project to identify at which point it crashes. Alternatively, when you<br>
are running the application from within the IDE in debugger mode, when<br>
the access violation occurs and it'll ask you to break or continue.<br>
Just break and view the call stack to see where the error occurred and<br>
then hopefully you will be able to identify what object it is trying<br>
to access.<br>
<br>
Hope this helps,<br>
<br>
Colin<br>
<br>
<br>
On 19 March 2011 09:06, Charlie <<a href="mailto:kerscher@bellsouth.net">kerscher@bellsouth.net</a>> wrote:<br>
><br>
> Hi Colin, it appears it might be Kaspersky Internet Security. I did<br>
disable<br>
> the protection and didn't encounter the error.<br>
> Now if I could just solve the problem of getting Access Violation errors<br>
> when I create a report with ACE Reporter. Every time that I access the<br>
form<br>
> on which the report is and run the report, close the form which takes me<br>
> back to my main form and close the main form I'm getting an AV.<br>
> Thank you,<br>
><br>
> Charlie Kerscher<br>
><br>
> Subject: Re: [DUG] [DCC Error] F2039 Could not create output file<br>
> 'ShelfGenie.exe'<br>
><br>
> Just checking the Embarcadero newsgroups, it seems this can happen<br>
> when your virus checker grabs hold of your exe but does let go of it.<br>
><br>
> Try disabling your virus checker and see what happens (or replace it<br>
> with a less intrusive one).<br>
><br>
> Cheers,<br>
> Colin<br>
><br>
> On 19 March 2011 08:38, Charlie <<a href="mailto:kerscher@bellsouth.net">kerscher@bellsouth.net</a>> wrote:<br>
>> My application is in CodeGear 2007 using dBase. I'm getting the error in<br>
> the<br>
>> "subject" about 8 out of 10 times when I compile. Any help would be<br>
>> appreciated.<br>
>><br>
>> Thank you,<br>
>><br>
>> Charlie<br>
>><br>
>><br>
>><br>
>> Charlie Kerscher<br>
>><br>
>> Williamson GA<br>
>><br>
>> Cell: <a href="tel:770.468.1757">770.468.1757</a><br>
>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> NZ Borland Developers Group - Delphi mailing list<br>
>> Post: <a href="mailto:delphi@delphi.org.nz">delphi@delphi.org.nz</a><br>
>> Admin: <a href="http://delphi.org.nz/mailman/listinfo/delphi" target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a><br>
>> Unsubscribe: send an email to <a href="mailto:delphi-request@delphi.org.nz">delphi-request@delphi.org.nz</a> with Subject:<br>
>> unsubscribe<br>
>><br>
><br>
> _______________________________________________<br>
> NZ Borland Developers Group - Delphi mailing list<br>
> Post: <a href="mailto:delphi@delphi.org.nz">delphi@delphi.org.nz</a><br>
> Admin: <a href="http://delphi.org.nz/mailman/listinfo/delphi" target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a><br>
> Unsubscribe: send an email to <a href="mailto:delphi-request@delphi.org.nz">delphi-request@delphi.org.nz</a> with Subject:<br>
> unsubscribe<br>
><br>
> _______________________________________________<br>
> NZ Borland Developers Group - Delphi mailing list<br>
> Post: <a href="mailto:delphi@delphi.org.nz">delphi@delphi.org.nz</a><br>
> Admin: <a href="http://delphi.org.nz/mailman/listinfo/delphi" target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a><br>
> Unsubscribe: send an email to <a href="mailto:delphi-request@delphi.org.nz">delphi-request@delphi.org.nz</a> with Subject:<br>
unsubscribe<br>
><br>
_______________________________________________<br>
NZ Borland Developers Group - Delphi mailing list<br>
Post: <a href="mailto:delphi@delphi.org.nz">delphi@delphi.org.nz</a><br>
Admin: <a href="http://delphi.org.nz/mailman/listinfo/delphi" target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a><br>
Unsubscribe: send an email to <a href="mailto:delphi-request@delphi.org.nz">delphi-request@delphi.org.nz</a> with Subject:<br>
unsubscribe<br>
<br>
_______________________________________________<br>
NZ Borland Developers Group - Delphi mailing list<br>
Post: <a href="mailto:delphi@delphi.org.nz">delphi@delphi.org.nz</a><br>
Admin: <a href="http://delphi.org.nz/mailman/listinfo/delphi" target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a><br>
Unsubscribe: send an email to <a href="mailto:delphi-request@delphi.org.nz">delphi-request@delphi.org.nz</a> with Subject: unsubscribe<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Kyley Harris<br>Harris Software<br>+64-21-671-821<br>