<div dir="ltr">I can't spare that amount of time, but try commenting out the bodies of all events on the dataset and datasource (ondatachange etc) and the bodies of events on any data-aware controls (that are linked to the datasets in question). Then if the basics work, uncomment step by step. I'm guessing there's something around that's posting your dataset when you don't want it to and something else that's pushing a change when it shouldn't.<div><br></div><div>Having said that, I only use TSQLQuery and TClientDataSet (which I don't use MasterSource on), so if you're using some master-detail dataset setup or ADO etc. things will be different.</div><div><br></div><div>As far as debugging goes,</div><div>- put on debugging and range checking and overflow checking in the compiler. If you're still learning you can leave debug dcus off, which will simplify your call stack.</div><div>- put breakpoints in your code<br></div><div>- F7 to step into a function, Shift F7 to continue to the next source line (like when the CPU window shows), Shift F8 to continue back to the function that called it</div><div>- if you're really struggling with not being able to evaluate variables, turn optimization off</div><div>- The Call Stack is your friend<br></div><div>- When the Call Stack is not your friend, bring up the Threads window to switch threads to the right one. Then the Call Stack is your friend again.</div><div><br></div><div>Cheers,</div><div>Carl</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 17, 2015 at 11:13 PM, Marshland Engineering <span dir="ltr"><<a href="mailto:marshland@marshland.co.nz" target="_blank">marshland@marshland.co.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have got to the end of my tether. Table not in insert mode. I have quite a<br>
few programs that use single tables in forms with editing and all is well.<br>
<br>
This new form has editing in 2 tables and here is where the trouble starts.<br>
Even if I don't enter any data and just close the form, I get not in edit<br>
mode. I've take off all the SQL relationships to try and find the issue but I<br>
can't pinpoint where it lies. If I leave the tables in edit mode, all is ok if<br>
I post and them immediately put them back into edit mode, I get a crash.<br>
<br>
Is there anyone in ChCh who is willing to spare a hour or 2 to give me a hand.<br>
Help with how to debug something like this would be very handy.<br>
<br>
Cheers Wallace 3237449<br>
<br>
_______________________________________________<br>
NZ Borland Developers Group - Delphi mailing list<br>
Post: <a href="mailto:delphi@listserver.123.net.nz">delphi@listserver.123.net.nz</a><br>
Admin: <a href="http://delphi.org.nz/mailman/listinfo/delphi" rel="noreferrer" target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a><br>
Unsubscribe: send an email to <a href="mailto:delphi-request@listserver.123.net.nz">delphi-request@listserver.123.net.nz</a> with Subject: unsubscribe<br>
</blockquote></div><br></div>