Normal Topic Problem with Particular Folder Causing Crash (Read 1307 times)
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
Problem with Particular Folder Causing Crash
Apr 22nd, 2008 at 1:49pm
Print Post Print Post  
I have an application that crashes ONLY when it is located in the Sesame2\Data folder. It happens at the point where I select a date from @Calendar and PrintString begins to execute.

The strange thing is that if I move the .db and .dat files to the Desktop and run the app from there, everything works perfectly.  Shocked

I tend to think that this is NOT Sesame's problem, since the same files work from my laptop, even when they are in the Data folder.

Has anyone else experienced this kind of thing?

EDIT: BTW, it's not because I updated to 2.0.6, because I tested it from 2.0.5 and it still does the same thing.
« Last Edit: Apr 23rd, 2008 at 8:22pm by The Cow »  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged
 
proudpoppy
Full Member
Members
***
Offline


Do What ??

Posts: 420
Location: South Carolina
Joined: Apr 7th, 2004
Re: Problem with Particular Folder Causing CRASH
Reply #1 - Apr 22nd, 2008 at 4:21pm
Print Post Print Post  
Knowing you, I doubt this is the probem but I'll take a shot anyway. Could the program be looking for the "sbasic_include.sbas file"?
  
Back to top
 
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: Problem with Particular Folder Causing CRASH
Reply #2 - Apr 22nd, 2008 at 5:18pm
Print Post Print Post  
Crashes just before printing... Looking for file in certain location - directory. Have you set any Environment variable for "C:\Sesame2\data\ " directory?
  
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Problem with Particular Folder Causing CRASH
Reply #3 - Apr 22nd, 2008 at 6:40pm
Print Post Print Post  
Carl,

Try the following
Rename the Data directory to be Old_Data
Create a new directory named Data
In the new Data directory place only your DB and DAT files
What is the outcome?

Are there any include or insert statements in your programming?

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
Re: Problem with Particular Folder Causing CRASH
Reply #4 - Apr 23rd, 2008 at 3:10am
Print Post Print Post  
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.
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged
 
Amor
Full Member
Members
***
Offline


No personal text

Posts: 366
Location: Germany
Joined: Feb 7th, 2004
Re: Problem with Particular Folder Causing CRASH
Reply #5 - Apr 23rd, 2008 at 11:54am
Print Post Print Post  
Hello Carl,
Using  C:\SESAME2\REPORTS i have the same Problem but the  C:\SESAME\REPORTS  works fine. 

Belhareth
  

Dr. med. Amor Belhareth&&Medizin Labor &&Germany
Back to top
 
IP Logged
 
Ben
Lantica Support
*****
Offline



Posts: 218
Joined: Apr 7th, 2005
Re: Problem with Particular Folder Causing CRASH
Reply #6 - Apr 23rd, 2008 at 1:16pm
Print Post Print Post  
Carl -


What are the Start In paths for your Sesame & SDesigner icons on the computer having trouble and the laptop that works?

What directories are listed in your rootdirs.ini file on both machines?

Does the directory C:/Sesame2/Reports exist on both machines?
    - Is the environment variable set on both your laptop and the desktop?

-Ben
  
Back to top
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
Re: Problem with Particular Folder Causing CRASH
Reply #7 - Apr 23rd, 2008 at 3:54pm
Print Post Print Post  
Quote:
What are the Start In paths for your Sesame & SDesigner icons on the computer having trouble and the laptop that works?

C:\Sesame2 on both machines.


Quote:
What directories are listed in your rootdirs.ini file on both machines?

Same on both machines:
Data
Data\Samples
\Documents and Settings\Carl\Desktop\
.
[DRIVES]



Quote:
Does the directory C:/Sesame2/Reports exist on both machines?
   - Is the environment variable set on both your laptop and the desktop?

Yes.
Yes.

EDIT: Main machine has it in System Variables. Laptop has it in User Variables. Tried moving main machine setting to User Variable, but no changed in behaviour.
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
Re: Problem with Particular Folder Causing CRASH
Reply #8 - Apr 23rd, 2008 at 4:07pm
Print Post Print Post  
Quote:
Hello Carl,
Using  C:\SESAME2\REPORTS i have the same Problem but the  C:\SESAME\REPORTS  works fine.  

Belhareth

I get no change in the crash behavior whether it is pointing to Sesame or Sesame2.
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged
 
Ben
Lantica Support
*****
Offline



Posts: 218
Joined: Apr 7th, 2005
Re: Problem with Particular Folder Causing CRASH
Reply #9 - Apr 23rd, 2008 at 6:17pm
Print Post Print Post  
Carl,
We are still looking into the cause of this. However, it appears that you can work around the situation, by replacing @Layout in Global Code with the name of your form.

-Ben
  
Back to top
IP Logged