Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2007-07

IDE blows up itself

5 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Arjan van Dijk

Hi!

I had problems debugging my program under the last official IDE/Freepascal for Windows,
so I just installed the release candidate that is bound to become official in 2 months.
My problem still stands: during my debug session the whole IDE simply disappears!
I narrowed down the problem to just 1 page of code, which I provide below (and an
ASCII datafile, which I don't include here, but which you can get via e-mail).
I had a break on the call "ProcessOneMonth(Toa,Roa,Bool1);" in the main program.
Trying to step into this procedure with F7 triggers the problem. When I just run the program without stepping, there is no problem!

What can be the cause/solution?
Anyone interested in the datafile of 171 K is welcome to ask for it!

Regards,

Arjan

PROGRAM BlowUpIDE;
TYPE
  Float = DOUBLE;
  GridType = RECORD
               NGridX,NGridY : WORD;
               XMin,XMax,YMin,YMax : Float;
               Values : ARRAY[0..400,0..200] OF Float;
             END;
VAR
  Toa,Roa : GridType;
  Bool1 : BOOLEAN;
PROCEDURE ProcessOneMonth(ToaTable,Roa:GridType;VAR Bool1:BOOLEAN);
BEGIN
  Bool1 := FALSE;
END;
PROCEDURE ReadToa(VAR Toa,Roa : GridType);
VAR
  ToaFile : TEXT;
  Ch : CHAR;
  i,j : INTEGER;
  HeadLine : STRING;
  Dum : Float;
BEGIN
  ASSIGN(ToaFile,'thetoa.dat');
  RESET(ToaFile);
  READLN(ToaFile);
  WITH Toa DO
  BEGIN
    YMin := 0;
    NGridY := 90;
    YMax := 90;
    NGridX := 0;
    XMin := 60;
    XMax := 500;
    FOR j := 6 TO 50 DO
    BEGIN
      IF (j>6) THEN INC(NGridX);
      READ(ToaFile,Dum);
      FOR i := 0 TO NGridY DO READ(ToaFile,Values[NGridX,i]);
      READ(ToaFile,Dum);
      FOR i := 0 TO NGridY DO READ(ToaFile,Roa.Values[NGridX,i]);
      READLN(ToaFile);
    END;
  END;
  CLOSE(ToaFile);
  WITH Toa DO
  BEGIN
    Roa.NGridX := NGridX;
    Roa.NGridY := NGridY;
    Roa.XMin := XMin;
    Roa.XMax := XMax;
    Roa.YMin := YMin;
    Roa.YMax := YMax;
  END;
END;
BEGIN
  ReadToa(Toa,Roa);
  ProcessOneMonth(Toa,Roa,Bool1);
END.
____________________________________________________________________________

DISCLAIMER: http://www.rivm.nl/disclaimer.htm

Reply by email

Tiziano_mk
to Arjan van Dijk
Arjan van Dijk wrote 23 lines
Hi! I had problems debugging my program under the last official IDE/Freepascal for Windows, so I just installed the release candidate that is bound to become official in 2 months. My problem still stands: during my debug session the whole IDE simply disappears! I narrowed down the problem to just 1 page of code, which I provide below (and an ASCII datafile, which I don't include here, but which you can get via e-mail). I had a break on the call "ProcessOneMonth(Toa,Roa,Bool1);" in the main program. Trying to step into this procedure with F7 triggers the problem. When I just run the program without stepping, there is no problem! What can be the cause/solution? Anyone interested in the datafile of 171 K is welcome to ask for it! Regards, Arjan

This happens to me if I am stepping in any program with the disassembly window opened ( Debug|Disassembly ).

But, if I have set some breakpoint, I receive these errors before quitting:

"Program generated a RTE 35 at address $0081D471. Save your sources and restart the IDE."

"The IDE generated an internal error and will now be closed."

No problem if I have other debug windows opened (Registers, Floating Point Unit or Vector Unit).

tiziano

Reply by email

Daniël Mantione
to Tiziano_mk

Op Fri, 13 Jul 2007, schreef Tiziano_mk:

Show quoted text 40 lines
Arjan van Dijk wrote: > Hi! > > I had problems debugging my program under the last official > IDE/Freepascal > for Windows, > so I just installed the release candidate that is bound to become > official > in 2 months. > My problem still stands: during my debug session the whole IDE simply > disappears! > I narrowed down the problem to just 1 page of code, which I provide below > (and an > ASCII datafile, which I don't include here, but which you can get via > e-mail). > I had a break on the call "ProcessOneMonth(Toa,Roa,Bool1);" in the main > program. > Trying to step into this procedure with F7 triggers the problem. > When I just run the program without stepping, there is no problem! > > What can be the cause/solution? > Anyone interested in the datafile of 171 K is welcome to ask for it! > > Regards, > > Arjan This happens to me if I am stepping in any program with the disassembly window opened ( Debug|Disassembly ). But, if I have set some breakpoint, I receive these errors before quitting: "Program generated a RTE 35 at address $0081D471. Save your sources and restart the IDE." "The IDE generated an internal error and will now be closed." No problem if I have other debug windows opened (Registers, Floating Point Unit or Vector Unit).

Please create bug reports (both of you please), otherwise this will be forgotten.

Daniël

Reply by email

Arjan van Dijk
to Daniël Mantione
Please create bug reports (both of you please), otherwise this will be forgotten.

Okay, I will.

I wrote a piece of code to generate a sample input datafile for my program. When I ran my program on that datafile, there was no error! The original datafile comes from g77/Cygwin and both the real and the faked data
are "DOS"-type textfiles.

Arjan

Reply by email