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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Graphs, GRAPH.EXE & WIN.INI

Status
Not open for further replies.

ChrisMc

Programmer
Apr 24, 2002
43
GB
My App is written under FP Windows 2.6a with the fast processor patch applied. On startup and if required it adds to WIN.INI the entry

[MSAPPS]
msapps=c:\windows\msapps

If required it then copies GRAPH.EXE (version 3) to C:\WINDOWS\MSAPPS\MSGRAPH

The App contains an included CONFIG.FPW file with the line _GENGRAPH="PROGRAMS\GENGRAPH.APP" (PROGRAMS is a sub-directory of my App's tree and GENGRAPH.APP exists there) and, for completeness I've added the full file to the end of this note.

I call graphs using Rick Strahl's GGRAPH program. This worked fine and indeed worked on other systems but has now stopped: trying to track down the cause is driving me up the wall. This is the scenario:

If I delete the C:\WINDOWS\MSAPPS directory on my development machine (a P4 with 512Mb RAM running XP Professional), remove the entry from WIN.INI and check by double blipping an OLE Graph general field in a table, I expect & get 'Cannot activate OLE server'. If I then install the App, everything is back & graphs work fine.

HOWEVER, if I install the App on other machines (I've tried XP, ME & 98 - all the same), the entry *is* in WIN.INI and GRAPH.EXE *does* exist in C:\WINDOWS\MSAPPS\MSGRAPH BUT I get the 'Cannot activate OLE server' error and graphs wont work. The machines I tried have sufficient memory - 512Mb on two, 256Mb on the other.

Does anybody have any idea of what else could effect the behaviour? I've totally run out of ideas and I'm begining to seriously doubt my sanity! Thanks in advance to anybody who saves me from the men in white coats.

Chris

**CONFIG.FPW included in App***

CATMAN=OFF
_FOXGRAPH=""
_FOXDOC=""
_GENGRAPH="PROGRAMS\GENGRAPH.APP"
_GENXTAB=""
DOSMEM=OFF
CODEPAGE=AUTO
DEVELOPMENT=OFF
ODOMETER=1000
REFRESH=0,200
RESOURCE=SYSTEM\FOXUSER.DBF
RESOURCE=ON
SAFETY=OFF
TIME=1000000
MVCOUNT=1500
PLATONLY=ON
MEMLIMIT=80,4096,16384
KEYCOMP = WINDOWS
 
The answer is of course the good ole' registry

I've updated my FAQ with the required entries, for anybody going down this road.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top