I have this this problem on Win2000 only systems:
my application crashes very early at startup, I found it
doesn't crash if I:
- flag foxuser.* files as read-only
- delete foxuser.* files (but in this way it crashes next startup)

This never happened in the past and I can't find a reason.
At startup I SET RESOURCE OFF.
I changed nothing in my startup procedure.

--
Andrea Mariottini

Re: Foxuser.dbf file cause application crash by Andrea

Andrea
Tue Aug 05 08:51:22 CDT 2003

Stefan Wuebbe wrote:

> Try a "config.fpw" file with a line
> resource = off
> Otherwise the Fox runtime would create a "foxuser.dbf" at
> startup automatically before the first line of your own code
> actually runs.
>

I can't use a config.fpw file because a bug I found: if I include
a fpw file in my exe then I have problems with
createobject("VisualFoxPro.Application").

If I could find the cause of this, maybe I can solve in another way...
I don't explain why this never happened before, and why only on Win2000.

--
Andrea Mariottini


Re: Foxuser.dbf file cause application crash by Dan

Dan
Tue Aug 05 11:18:16 CDT 2003

Whoa! Back up! Your situation has anomaly written all over it. :-)

1. Why are you creating an instance of VisualFoxpro.Application in a runtime
app? Technically speaking, that object shouldn't be available *anyway* and
at runtime you can get a reference to the application object through _VFP.

2. What problems were you encountering? I have serious doubts that it had
anything at all to do with including a config.fpw.

3. What version of VFP?

Dan

"Andrea Mariottini" <a.mariottini@libero.it> wrote in message
news:BB5582FA.CDD2%a.mariottini@libero.it...
> Stefan Wuebbe wrote:
>
> > Try a "config.fpw" file with a line
> > resource = off
> > Otherwise the Fox runtime would create a "foxuser.dbf" at
> > startup automatically before the first line of your own code
> > actually runs.
> >
>
> I can't use a config.fpw file because a bug I found: if I include
> a fpw file in my exe then I have problems with
> createobject("VisualFoxPro.Application").
>
> If I could find the cause of this, maybe I can solve in another way...
> I don't explain why this never happened before, and why only on Win2000.
>
> --
> Andrea Mariottini
>



Re: Foxuser.dbf file cause application crash by Leonid

Leonid
Wed Aug 06 06:13:45 CDT 2003

May be=20

set resource off
delete file foxuser.dbf
delete file foxuser.fpt

will help you?

Leonid


"Andrea Mariottini" <a.mariottini@libero.it> wrote in message =
news:BB568278.CDF8%a.mariottini@libero.it...
> Gregory Adam wrote:
>=20
> > Then put the following line at the beginning of your main
> > set resource off
>=20
> This is what I already do very early at startup!!
>=20
> Dan Freeman wrote:
>=20
> > 1. Why are you creating an instance of VisualFoxpro.Application in a =
runtime
> > app? Technically speaking, that object shouldn't be available =
*anyway* and
> > at runtime you can get a reference to the application object through =
_VFP.
>=20
> I use VFP5 and I create an instance of VisualFoxpro.Application from
> VBA (Word). I know this doesn't work with VFP6/7/8 but works with VFP5
> and now I can't change my application logic at the moment.
> =20
> > 2. What problems were you encountering? I have serious doubts that =
it had
> > anything at all to do with including a config.fpw.
>=20
> If I include a config.fpw file, then createobject fails. I tested it =
and if
> I remove the config.fpw then it works. I have no doubts on this.
>=20
> Now the mail problem is why the foxuser.dbf/fpt files cause =
application
> to crash. As I said this happens only on Win2000 systems (and not =
all...
> On my test machines this doesn't happen).
>=20
> This never occurred before and I made no changes in my startup code.
> The crash occurs very early at startup and I suspect before any code
> is executed (my code obviously, not VFP internal..)
>=20
> --=20
> Andrea Mariottini
>=20


Re: Foxuser.dbf file cause application crash by Fred

Fred
Wed Aug 06 10:20:30 CDT 2003

If you're using VFP5, you can't share the FOXUSER files anyways.


--

Fred
Microsoft Visual FoxPro MVP
Please respond only to the newsgroups so that all may benefit.



Andrea Mariottini wrote:
> Andrea Mariottini wrote:
>
>> Leonid wrote:
>>
>>> May be
>>>
>>> set resource off
>>> delete file foxuser.dbf
>>> delete file foxuser.fpt
>>>
>>> will help you?
>>>
>>
>> I'll try it as soon as possible, but because the problem
>> doesn't occurs on machines I have access to, I'll need to distribute
>> a new exe to my customers having problem.
>
> A note: my app is shared over the network so I think I can't
> delete those file without access violation.


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.506 / Virus Database: 303 - Release Date: 8/1/2003



Re: Foxuser.dbf file cause application crash by Andrea

Andrea
Thu Aug 07 08:19:02 CDT 2003

Thanks to all for the solutions proposed.
By now I think to flag the file as read-only is the better choice
because I don't have to change my code.
However I would like to understand "why" this strange behavior
(never seen before) on Win2000 systems (not all!).
I hope someone in Microsoft could reply.

--
Andrea Mariottini