<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Approximatrix Forums — A project that RUNS won't DEBUG]]></title>
		<link>https://forums.approximatrix.com/viewtopic.php?id=124</link>
		<atom:link href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=124&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in A project that RUNS won't DEBUG.]]></description>
		<lastBuildDate>Mon, 29 Oct 2012 17:49:59 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[A project that RUNS won't DEBUG]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=407#p407</link>
			<description><![CDATA[<p>The debugger is working brilliantly for most of my Fortran 90/95 project development but there is one project in which it is failing to run properly and is completely preventing me from making any progress.</p><p>It may or may not be relevant that the project is one in which I have a linked library of my own, and in which I have elected to compile both the library as a 32-bit library and the main project as a 32-bit executable, which project is also very similar to another project in which I have both all-32-bit and all-64-bit versions, and I can compile and debug without a problem.</p><p>The problem project is also especially strange, in that I can RUN the project without error.&nbsp; What I cannot do is to run it through the debugger.&nbsp; When I run it normally, it presents the user with a data file-opening dialog boxes, opens the files, then begins the analysis and finally fails at a late stage in the work it is designed to do.&nbsp; When I try to debug it, it fails right at the start, before displaying the first data file-opening dialog box.</p><p>I haÂÂve managed to debug it as far as just the first few lines of source code, to find where it crashes.&nbsp; It fails when trying to execute the third of the three lines in the code fragment shown below:<br />*<br />*<br />&nbsp; &nbsp; USE DISLIN<br />&nbsp; &nbsp; CHARACTER AINPUT*128, FiNAME*128<br />*<br />*<br />*<br />&nbsp; &nbsp; CALL dwgfil(&#039;INPUT file name&#039;, FiNAME, &#039;*.*&#039;)</p><p>Here is what DWGFIL does (from the DISLIN manual):<br />&nbsp; &nbsp; The routine DWGFIL creates a file <br />&nbsp; &nbsp; selection box that can be used to <br />&nbsp; &nbsp; get a filename.&nbsp; The call is: <br />&nbsp; &nbsp; CALL DWGFIL (CLAB, CFIL, CMASK)<br />&nbsp; &nbsp; or: <br />&nbsp; &nbsp; char *dwgfil (char *clab, char *cfil, char *cmask);</p><p>&nbsp; &nbsp;CLAB&nbsp; &nbsp; is a character string that will be <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;displayed in the dialog widget.<br />&nbsp; &nbsp; CFIL&nbsp; &nbsp; is the returned filename selected by<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;the user. The variable can also be<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;used to pre-define a filename. <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;For the C Routine, the user input is <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;returned as function value. <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;The returned pointer is allocated by <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;malloc and can be freed by an user.<br />&nbsp; &nbsp;CMASK&nbsp; specifies the search pattern used in <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;determining the files to be displayed <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;in the file selection box.</p><br /><p>When the program fails, these things happen:</p><p>(1) A debugger warning appears:</p><p>&nbsp; &nbsp; !&nbsp; Program received signal SIGTRAP, Trace/breakpoint trap</p><p>(2) When I click [OK] to send this away, the Source Window goes blank except for a single line at the top which reads, </p><p>&nbsp; &nbsp; Select function name to disassemble</p><p>I am able to pull-down the file selector and re-select the source file which crashed but the debugging session has failed and cannot be revived.</p><p>Anyone got any ideas?<br />--- <br />John</p>]]></description>
			<author><![CDATA[null@example.com (JohnWasilewski)]]></author>
			<pubDate>Mon, 29 Oct 2012 17:49:59 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=407#p407</guid>
		</item>
	</channel>
</rss>
