Still had the same problem when I tested your suggestion. And yes, I do have an Include statement in the Global Code event of both the main form and subform.
Here's the rundown. 1. It always works properly when the app files are on the Desktop. 2. I tried putting the app files in new folders (of various names, even though that shouldn't matter) on the Desktop, and it crashes. 3. I tried putting the app files in the root directory of C:, and it crashes. 4. I tried putting the app files in a new folder on drive H:, and it crashes.
It seems that no matter where they are located, except for the Desktop, there is a problem. Any idea why being on the Desktop would make it work differently?
Interestly, I can avoid the crash by opening the app, closing it, then re-opening it again with the same Sesame runtime session. In other words, it is only crashing when I open the app in a fresh session of Sesame.
Again, I have the exact same files on my laptop, and they do NOT crash there. (The entire Sesame2 folder, including all subfolders are copied from the desktop machine to the laptop daily.) So, something is funky on my main machine. I did install a program named "Programmer's Notepad" last night. I uninstalled that this morning, though.
Additional info: There is a report that is run and opened in the browser just before @MsgBox asks if I want to print, then @Calendar pops up so I can select a date. As soon as I select a date, PrintString should begin, but crashes instead. I also have the SESAME_REPORT_PATH environment variable set to C:\SESAME2\REPORTS.
|