Jump to content
Excelsior Forums


  • Content count

  • Joined

  • Last visited


Community Reputation

0 Neutral

About stroy

  • Rank
  • Birthday 01/01/1
  1. I have been trying for some time to write a program to process databases contained in structured ASCII text files. The program (1) opens a standard Windows dialog box for the user to select a input file; (2) reads the input ASCII text file and generates an in-memory index; (3) uses the index to process the information various ways, with a dialog box showing the progress of the processing; (4) opens a standard Windows dialog box for the user to select a file (new or existing) into which to write ASCII file reports based on the processed index. The program behaves exactly the same regardless of whether written in XDS Modula-2 or XDS Oberon, both under Windows XP. I.e. it works fine, exactly as described above, for small data files, e.g. about 30 or 40 kByte. For a large file, e.g. about 3 MByte, the program displays the input dialog box OK, the display of the in-process dialog box is erratic, and the call to the standard Windows dialog box to select an output file fails, with an error message instead. Only the size of the input file, and the corresponding size of the in-memory index, is different. I went from Modula-2 to Oberon to take advantage of memory garbage collection, but this does not seem to make ay difference. I would appreciate any suggestion or advice on what to try next.
  2. stroy

    Error (54) message question

    That works! Thank you!
  3. I have been writing programs in XDS Modula-2 for years with great success, but now I am having trouble with a program, using the Win32 interface, that puts a lot of data onto the heap. The program runs fine with smaller amounts of data but behaves erratically with large amounts of data. I tried increasing the memory allocations in the project file, with no improvement. I tried converting the main module from Modula-2 to Oberon-2 (my first use of Oberon) in order to gain garbage collection. This compiles with no errors, but gives the following error on linking: "Error (54): Name 'main' not found (referenced in file xstart.asm (library C:\XDS\lib\x86\xstart.lib}}" None of my program uses assembly language, so I don't understand this message, and I can't find any mention of this error message in any of the XDS documentation. Can anybody suggest why I might be getting this message, or what to do about it?