Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New bug in VFP 9

Status
Not open for further replies.

wgcs

Programmer
Mar 31, 2002
2,056
EC
Try this in VFP9 (works in VFP8,7,6):

wait window juststem("'")

Instant blowup!

A parameter of just a double-quote also blows up, but that parameter isn't a valid file name, whereas just a single-quote IS a valid file name.

(I've submitted this bug to Microsoft)

These also blow up:
Code:
	WAIT WINDOW JUSTEXT(['])
	WAIT WINDOW JUSTPATH(['])
	WAIT WINDOW JUSTDRIVE(['])
	WAIT WINDOW JUSTFNAME(['])
	WAIT WINDOW FORCEEXT(['],'whatever')
	WAIT WINDOW FORCEPATH(['],'whatever')
	WAIT WINDOW DEFAULTEXT(['],'whatever')

- Bill

Get the best answers to your questions -- See FAQ481-4875.
 
Code:
wait window juststem("'")
Hmmm. That doesn't make VFP blow up for me (Visual FoxPro 09.00.0000.2412 for Windows). What do you mean by "blow up"?

Andy
 
Hmmm. That's interesting. It does it every time for me. The blow up is similar to the old 0xC0005 error, but the error is "caught" by the "Microsoft Visual FoxPro has encountered a problem and needs to close." dialog.
The appVer is 9.0.0.2412, appStamp 41be02c0, offset 000258c
The exception is 0xc0000005, address 42358c

Version() returns Visual FoxPro 09.00.0000.2412 for Windows

I've restarted VFP at least two dozen times due to this error, though I haven't restarted the computer yet. I'll post back as to whether a reboot solves it. (otherwise, VFP is behaving just as it always does, so I wasn't even thinking of a reboot...)

- Bill

Get the best answers to your questions -- See FAQ481-4875.
 
Just rebooted, everything still works the same: the "JUST..." file functions all blow up when given ['] as a parameter.

Maybe they are all calling an OS function to parse the file name? In that case, the source of the problem could be the OS: I'm running Windows 2000 Server, SP4, build 2195.

- Bill

Get the best answers to your questions -- See FAQ481-4875.
 
OK, I just tried on my home PC. It blows up on Windows 2000 Professional SP 4.

My office PC (where it did not blow up earlier) is Win XP Pro SP 2.

Andy
 
Bill,

Maybe they are all calling an OS function to parse the file name?

If so, it is probably PathFindFileName() -- see
You could try calling that function directly, on both Win 2000 SP4 and some other OS, and compare the results.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

My sites:
Visual FoxPro (www.ml-consult.demon.co.uk)
Crystal Reports (www.ml-crystal.com)
 
I see it in Win2K as well.
 
No crashes with XP sp2 and Win2003 sp1. Seems to be a special case with the single quote. At one point I think I even saw it didn't display the single quote when it should have...

Where do we report bugs? I submitted one somewhere a few months back but it's not in the list of 9.0 sp1 beta fixes. (This is where the report form has the band too long when an activeX control is placed beside a text box with Stretch with Overflow enabled. In that case it can't track the real size needed for the band, so it concatenates the two "column" heights when calculating how much room the band needs. See thread1252-984387. I tested and found it in VFP 6, 8 and 9.)
 
Ignore this prior statement I made: Seems to be a special case with the single quote. At one point I think I even saw it didn't display the single quote when it should have... I was testing different combinations too late at night. Still, neither OS crashed.
 
I always go here:
to discover the current reporting system. There used to be a web-form on microsoft.com with pick lists for VFP version, etc, but now the microsoft page just launches your email program through a MAILTO:, and fills the email with a template.

- Bill

Get the best answers to your questions -- See FAQ481-4875.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top