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

Problem with buffering 1

Status
Not open for further replies.

tforr

Programmer
Aug 14, 2003
181
GB
Each field on the form has THISFORM.REFRESH() within its LOSTFOCUS procedure.

When I build the exe and run the 2 instances one instance will crash and I would like to therefore have some assistance regarding this multi-user issue.

INSTANCE 1
**********

1 - Select exe to open application.

2 - Click on Customers button from main menu.

3 - Scroll to specic customer using VCR Navigation button i.e. company = APV LTD.

4 - Make change to contact surname field.

INSTANCE 2
**********

1 - Slect exe to open application.

2 - Click on Customers button from main menu.

3 - Scroll to the same customer.

4 - Make change to contact surname field.

5 - Scroll to next record

Go back to instance 1 exe and attempt to scroll to next record.

PROGRAM ERROR
*************
*************

No Parameter Statement is found

CANCEL, IGNORE or HELP buttons displayed.

Can anyone help.

Thanks and kind regards,

Tom.
 
Tom,
Do you get this same error on two separate systems? (Two instances on one system is "artificial" and not really the same.)

Note: The App generator was never meant for multi-user production applications - it's sample code. Consider writing your own code or use one of the many real frameworks.

Rick
 
Hi Rick,

I get the same error on two seperate systems.

When you say the app generator I take it you mean the Build options. I dont use any wizards but I do use options like this. What do you suggest I do then if I want to deploy my apps in exe format. I know that I wont be able to write one as I'm only a novice.

Kind regards,

Tom
 
I guess you'll need to determine which function/procedure
is failing without defined parameters.
(i.e. No Parameter Statement is found)

A possible solution is to create a general error handler
that just issues a susp to see if you can catch the
errant function.

If that doesn't work, the error is probably in an object
that has a defined error() event, which will be very hard
to narrow down if you are using the VFP provided framework.

Also, create your own VCR control.

In addition, make sure your tables have the correct
buffering mode set and use private data sessions in
the forms.

Darrell
 
Hi Tom,

What OS and version of VFP are you using?

In the IDE Tools->Options selecting the Data tab, is Open Exclusive selected, or not?

What buffering are you using for your forms?

Could you post some code so we could try to duplicate your error?

I've been using VFP since VFP6 and I still consider myself a novice, but you need to provide more information if you want us to be of any help.

Regards,

Mike
 
Can anyone tell me the best way to convert my program into an executable without using the framework.

Thanks for your feedback so far.

Tom
 
File->New, select project and click New File.

Add a .prg file to Programs on the Project Manager Main tab, right click it and choose Set as Main.

The .prg can be as simple as:

DO FORM MyForm
READ EVENTS

In the Destroy Event of MyForm:

CLEAR EVENTS

Actually you can just compile a .prg without any forms.

In the Project Manager click the Build button, choose Win32 executable and click OK.

Distribution is a little more complicated.

What about the other stuff I asked about?

Regards,

Mike
 
Isn't that still using the framwork Mike. I'm attempting to make my software multi-user and have been told that the framework has not been tested for this purpose. I wanted to know if there is a solution to this.

Regards,

Tom
 
Nope. AFAIK if you select the project wizard then you are using the framework. If you just choose new file, you are not.

I don't know of a way to compile without the Project Manager (there probably is a way, I just haven't needed it).

Regards,

Mike
 
Mike,
While you don't need to use the Project Manager to build an .EXE, you do need a project. e.g.
BUILD EXE EXEFileName FROM ProjectName [RECOMPILE]

Rick
 
eah thanks Rick. Much appreciated.

Regards,

Tom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top