One of the testers here recently discovered a bit of code that when broken down did this:
?(Date() + INT(1 / 0) ) > Date(9999,12,31)
It returns true. However, put that actual value in printed form and it displays as " / / "
Just something for the oddities in your VFP collection.
Tracy
Dividing by zero basically generates a numeric overflow. Add that to date() and you get nonsense. I'm a little surprised it doesn't throw an error as opposed to what looks like a blank date, which in and of itself is an xBase oddity. :-)
OTOH supporting my code in the year 9999 is not something I'm going to worry about...
--
rk -----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Tracy Pearson Sent: Monday, May 09, 2016 4:46 PM To: profoxtech@leafe.com Subject: ?(Date() + INT(1 / 0) ) > Date(9999,12,31)
One of the testers here recently discovered a bit of code that when broken down did this:
?(Date() + INT(1 / 0) ) > Date(9999,12,31)
It returns true. However, put that actual value in printed form and it displays as " / / "
Just something for the oddities in your VFP collection.
Tracy
VFP date variables can have a little "something extra" if the value added to a date variable is not an integer. Date fields don't have this.
m.d1 = DATE() m.d2 = m.d1 + .01 ? m.d1=m.d2 && shows .f.
Fred
On Mon, May 9, 2016 at 1:45 PM, Tracy Pearson tracy@powerchurch.com wrote:
One of the testers here recently discovered a bit of code that when broken down did this:
?(Date() + INT(1 / 0) ) > Date(9999,12,31)
It returns true. However, put that actual value in printed form and it displays as " / / "
Just something for the oddities in your VFP collection.
Tracy
[excessive quoting removed by server]
At 13:45 2016-05-09, "Tracy Pearson" tracy@powerchurch.com wrote:
One of the testers here recently discovered a bit of code that when broken down did this:
?(Date() + INT(1 / 0) ) > Date(9999,12,31)
It returns true. However, put that actual value in printed form and it displays as " / / "
Which value? The LHS?
The LHS, however it displays, is not equal to {}, so what is it?
Just something for the oddities in your VFP collection.
Dividing by 0 is naughty.
Sincerely,
Gene Wirchenko
Hey folks, Has anyone else experienced this error: "This app can't run on your PC"
Our VFP9 App ran fine on Servers 2003, 2008 for Terminal Server with the drive mapped as F:\AppFolder\App.EXE
Now when they upgraded to Server 2012, we get this error when running on a mapped drive, but if we use the full local drive path of the server: E:\Data\Appfolder\App.exe
It runs fine.
Does anyone know what part of Server 2012 is causing this block?
Thanks, Philip Borkholder
____________________________________________________________ Affordable Wireless Plans Set up is easy. Get online in minutes. Starting at only $9.95 per month! www.netzero.net?refcd=nzmem0216
Philip Borkholder wrote on 2016-05-26:
Hey folks, Has anyone else experienced this error: "This app can't run on your PC"
Our VFP9 App ran fine on Servers 2003, 2008 for Terminal Server with the drive mapped as F:\AppFolder\App.EXE
Now when they upgraded to Server 2012, we get this error when running on a mapped drive, but if we use the full local drive path of the server: E:\Data\Appfolder\App.exe
It runs fine.
Does anyone know what part of Server 2012 is causing this block?
Thanks, Philip Borkholder
Philip,
Is your EXE digitally signed with a 256 bit key?
Tracy Pearson PowerChurch Software
Is the non working EXE exactly the same size as the working one?
It is the exact same one. What does not work is to run it from a mapped, shared folder. It only works running it with the direct local path. In this case, the TS is the same server as the File Server luckily.
Philip
On 5/26/2016 5:18 PM, Alan Bourke wrote:
Is the non working EXE exactly the same size as the working one?
____________________________________________________________ Affordable Wireless Plans Set up is easy. Get online in minutes. Starting at only $9.95 per month! www.netzero.net?refcd=nzmem0216
Hi Tracy, That is something new to me. What is that and how do I do it? :-)
Thanks Philip
On 5/26/2016 3:31 PM, Tracy Pearson wrote:
Philip Borkholder wrote on 2016-05-26:
Hey folks, Has anyone else experienced this error: "This app can't run on your PC"
Our VFP9 App ran fine on Servers 2003, 2008 for Terminal Server with the drive mapped as F:\AppFolder\App.EXE
Now when they upgraded to Server 2012, we get this error when running on a mapped drive, but if we use the full local drive path of the server: E:\Data\Appfolder\App.exe
It runs fine.
Does anyone know what part of Server 2012 is causing this block?
Thanks, Philip Borkholder
Philip,
Is your EXE digitally signed with a 256 bit key?
Tracy Pearson PowerChurch Software
[excessive quoting removed by server]
It's the equivalent of an SSL certificate for desktop applications. Google code signing certificate to learn more.
--
rk
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Philip Borkholder Sent: Thursday, May 26, 2016 5:47 PM To: profoxtech@leafe.com Subject: Re: VFP 9 App on Server 2012 RDS/Terminal Server: This app can't run on your PC
Hi Tracy, That is something new to me. What is that and how do I do it? :-)
Thanks Philip
On 5/26/2016 3:31 PM, Tracy Pearson wrote:
Philip Borkholder wrote on 2016-05-26:
Hey folks, Has anyone else experienced this error: "This app can't run on your PC"
Our VFP9 App ran fine on Servers 2003, 2008 for Terminal Server with the drive mapped as F:\AppFolder\App.EXE
Now when they upgraded to Server 2012, we get this error when running on a mapped drive, but if we use the full local drive path of the server: E:\Data\Appfolder\App.exe
It runs fine.
Does anyone know what part of Server 2012 is causing this block?
Thanks, Philip Borkholder
Philip,
Is your EXE digitally signed with a 256 bit key?
Tracy Pearson PowerChurch Software
[excessive quoting removed by server]
Thanks Richard, I'll google it to see what to do. -Philip
On 5/26/2016 5:51 PM, Richard Kaye wrote:
It's the equivalent of an SSL certificate for desktop applications. Google code signing certificate to learn more.
--
rk
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Philip Borkholder Sent: Thursday, May 26, 2016 5:47 PM To: profoxtech@leafe.com Subject: Re: VFP 9 App on Server 2012 RDS/Terminal Server: This app can't run on your PC
Hi Tracy, That is something new to me. What is that and how do I do it? :-)
Thanks Philip
On 5/26/2016 3:31 PM, Tracy Pearson wrote:
Philip Borkholder wrote on 2016-05-26:
Hey folks, Has anyone else experienced this error: "This app can't run on your PC"
Our VFP9 App ran fine on Servers 2003, 2008 for Terminal Server with the drive mapped as F:\AppFolder\App.EXE
Now when they upgraded to Server 2012, we get this error when running on a mapped drive, but if we use the full local drive path of the server: E:\Data\Appfolder\App.exe
It runs fine.
Does anyone know what part of Server 2012 is causing this block?
Thanks, Philip Borkholder
Philip,
Is your EXE digitally signed with a 256 bit key?
Tracy Pearson PowerChurch Software
[excessive quoting removed by server]
Philip Borkholder wrote on 2016-05-26:
Thanks Richard, I'll google it to see what to do. -Philip
On 5/26/2016 5:51 PM, Richard Kaye wrote: It's the equivalent of an SSL certificate for desktop applications.
Google code signing certificate to learn more.
--
rk
Philip,
If you do consider signing the EXE, be sure to shop around for the best price. This company was the best price that I found when I was searching. http://codesigning.ksoftware.net/
Tracy Pearson PowerChurch Software
Thanks Tracy, -Philip
On 5/26/2016 6:30 PM, Tracy Pearson wrote:
Philip Borkholder wrote on 2016-05-26:
Thanks Richard, I'll google it to see what to do. -Philip
On 5/26/2016 5:51 PM, Richard Kaye wrote: It's the equivalent of an SSL certificate for desktop applications.
Google code signing certificate to learn more.
--
rk
Philip,
If you do consider signing the EXE, be sure to shop around for the best price. This company was the best price that I found when I was searching. http://codesigning.ksoftware.net/
Tracy Pearson PowerChurch Software
[excessive quoting removed by server]
Try running the EXE in UNC Path rather than the mapped folder.
\ServerName\SharedFolderName\Exe -- Cheers!!!
*Srikanth Bhandari* Mobile: +91 99625 42134 / +91 99001 39393 Email: consultant@srikanthbhandari.ind.in / srikanth.bhandaari@gmail.com Web: srikanthbhandari.ind.in
On Fri, May 27, 2016 at 4:13 AM, Philip Borkholder plborker@netzero.net wrote:
Thanks Tracy, -Philip
On 5/26/2016 6:30 PM, Tracy Pearson wrote:
Philip Borkholder wrote on 2016-05-26:
Thanks Richard, I'll google it to see what to do. -Philip On 5/26/2016 5:51 PM, Richard Kaye wrote: It's the equivalent of an SSL certificate for desktop applications.
Google code signing certificate to learn more.
-- rkPhilip,
If you do consider signing the EXE, be sure to shop around for the best price. This company was the best price that I found when I was searching. http://codesigning.ksoftware.net/
Tracy Pearson PowerChurch Software
[excessive quoting removed by server]