gettingstarted
[Top] [All Lists]

Debugger crashes on breakpoint

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Debugger crashes on breakpoint
From: Wayne Dreier <wwdmld at earthlink dot net>
Date: Mon, 27 Oct 2003 21:11:01 -0500
Here is some code I am using (leaving out most of the unnecessary lines).

  Dim File As FolderItem
  Dim FileStream As TextOutputStream

File = GetFolderItem("Last Source Number") // If I set a breakpoint here it will crash
  FileStream = File.CreateTextFile
  (... more code here)
  FileStream.Close

File = GetFolderItem("Source File") // If I instead set a breakpoint here it will crash
  FileStream = File.AppendToTextFile
  (... more code here)
  FileStream.Close

  Counter = 0
  LC = pmSearchLocation.ListCount
File = GetFolderItem("Popup Menu Values") // If I instead set a breakpoint here it will crash
  FileStream = File.CreateTextFile
(... more code here) // If I instead set a breakpoint here it will NOT crash
  FileStream.Close

The debugger runs fine and compiles if I don't set a breakpoint at all. If I run the build app. it too runs ok.

I suspect it has something to do with the fact I'm using File = (a different file each time) because prior to this I Dimmed each one with a different name and also used a different name for each of the FileStream(s) and did not have the problem.

Has anyone else had this happen? If so, what can be done?

Wayne


- - -
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>