Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: ph.getGlobal Bug? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
GadgetGuy
Super User
Super User
Avatar

Joined: June 01 2008
Location: United States
Online Status: Offline
Posts: 942
Posted: March 08 2009 at 20:17 | IP Logged Quote GadgetGuy

After a day of debugging and going crazy as I couldn't discover any reasons for the failure of a small vbScript to execute, I finally pared it all down to the following simple single line of code that fails.


I have found no way to make this "acceptable" to Windows Script Host.

I have entered this in the PH Multi-Edit VB Script Editor window, and received the above noted error comments when trying to test execute this in the editor window.

In actual practice the Macro that calls this script produces no results (in practice x is written to a Global Variable in the next line of the script using ph.setglobal_n. That write operation works OK. It is only the 'ph.getglobal_n" that fails.

Anyone have any ideas?

Edited by GadgetGuy - March 09 2009 at 07:49


__________________
Ken B - Live every day like it's your last. Eventually, you'll get it right!
Back to Top View GadgetGuy's Profile Search for other posts by GadgetGuy
 
JaredM
Newbie
Newbie


Joined: November 04 2007
Online Status: Offline
Posts: 36
Posted: March 09 2009 at 22:16 | IP Logged Quote JaredM

I've caused PH to behave similarly after doing something that's caused it to get into a bad state. A quit-then-restart of pwrhome.exe has always fixed it. I'll throw it out there in case it helps your situation, b/c I don't see anything wrong w/ your code.
Back to Top View JaredM's Profile Search for other posts by JaredM
 
GadgetGuy
Super User
Super User
Avatar

Joined: June 01 2008
Location: United States
Online Status: Offline
Posts: 942
Posted: March 10 2009 at 08:55 | IP Logged Quote GadgetGuy

In the strong belief that these Forums are highly useful and educational, coupled with the realization that it is easy to ask questions, but often overlooked to provide the answers when an issue is solved, I pass on what was discoved about this issue.

Dave VNC'd into my system last night in an effort to discover the bazarre reasons behind this failure, as the written code is correct, but efforts to execute it none-the-less failed.

It turned out that somehow my "phscr.pbd" file (located in the pwrhome root directory and which controls PH<>WSH interactions) got corrupted, thus no "ph.xxx" commands would work.

Replacing that single file cured the problem. (Had to do a clean install to replace the file, but on my 2nd computer which is sync'd to the PH machine for editing purposes, I only had to replace just this one file.)

I would not have found this in a million years without Dave's help.

Thanks Dave and KUDO's for such world class user support. (Probably the best user support I have ever experienced and I have been a computer programmer/user ever since memory was acoustic waves in a pool of mercury and a fast machine was one instruction per millisecond!)

__________________
Ken B - Live every day like it's your last. Eventually, you'll get it right!
Back to Top View GadgetGuy's Profile Search for other posts by GadgetGuy
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: March 10 2009 at 09:05 | IP Logged Quote BeachBum

Ken,
“a fast machine was one instruction per millisecond!” Seems like that was only yesterday but a different century and what was a hard drive. I was in the programming support business for most of my career and it don’t get any better than right here.

__________________
Pete - X10 Oldie
Back to Top View BeachBum's Profile Search for other posts by BeachBum
 
GadgetGuy
Super User
Super User
Avatar

Joined: June 01 2008
Location: United States
Online Status: Offline
Posts: 942
Posted: March 10 2009 at 09:54 | IP Logged Quote GadgetGuy

I still marvel at the 16GB hard drive in my iPhone!

An IBM 7090 I worked on way back when was upgraded to include a remarkable 20MB hard drive. We had never seen so much storage capatity. It was the size of a large refrigerator and was hydraulically acuated. Every time it was taken off-line for any appreciable time we had to "warm up" the hydraulic fluid again before the disk could be used. This consisted of about 15 minutes of first track/last track end to end seek operations that rocked the whole cabinet, but then she was good to go.

Yep! We've come a long way and every morning when I turn on my 3 GHz multi-thread processors with 1TB of disk and 4GB of RAM I just plain MARVEL at how good it is today!

__________________
Ken B - Live every day like it's your last. Eventually, you'll get it right!
Back to Top View GadgetGuy's Profile Search for other posts by GadgetGuy
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: March 10 2009 at 10:19 | IP Logged Quote BeachBum

That’s like when 2311s came around and became the 1st portable disk storage and the heads flew in microns. Sounds like you came from the same era as Lee and I. Does PSR mean anything?

__________________
Pete - X10 Oldie
Back to Top View BeachBum's Profile Search for other posts by BeachBum
 
GadgetGuy
Super User
Super User
Avatar

Joined: June 01 2008
Location: United States
Online Status: Offline
Posts: 942
Posted: March 10 2009 at 11:09 | IP Logged Quote GadgetGuy

Pete - You got me on "PSR"

Other than "Public Service Recording" or "Power Surge Resistor" or something equally crazy and unlikely, it does not ring a bell (of course when you reveal it, I will say "OMG, but of course!"

My BS in Electrical Engineering from University of Michigan was in '62, followed by a BS in Math and a Masters in Computer Science. I had (as it sounds like you did) the joy of growing up with computers. I designed,or participated in the design of, three in all starting with Digital COmputer Corp and ending with Ford Motor on the first engine computer used on the Lincoln.

It has been a great experience (and thanks to PH's many challenges to learn and use more) it still is!

__________________
Ken B - Live every day like it's your last. Eventually, you'll get it right!
Back to Top View GadgetGuy's Profile Search for other posts by GadgetGuy
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: March 10 2009 at 13:30 | IP Logged Quote BeachBum

PSR, Program Support Rep. IBM.. Put my 30 years in and got out of Dodge 14 years ago. Background is too long for this post. PH is a great learning tool to gap the technology for us old mainframe generation folks.

__________________
Pete - X10 Oldie
Back to Top View BeachBum's Profile Search for other posts by BeachBum
 
GadgetGuy
Super User
Super User
Avatar

Joined: June 01 2008
Location: United States
Online Status: Offline
Posts: 942
Posted: March 10 2009 at 14:07 | IP Logged Quote GadgetGuy

Ah Pete! But of course. Some of my favorite people were PSR's! You trigger many nice memories.

__________________
Ken B - Live every day like it's your last. Eventually, you'll get it right!
Back to Top View GadgetGuy's Profile Search for other posts by GadgetGuy
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum