×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

FoxyPreviewer Error Nr 1939

FoxyPreviewer Error Nr 1939

FoxyPreviewer Error Nr 1939

(OP)
Hi,

I use foxypreviewr, and recently I started having the following error on clients:

  • WITH/ENDWITH no match
  • show
They are programs that I haven't updated for months, and out of nowhere they started giving this error.
Any suggestion?

Best Regards,
Fernando Pereira

RE: FoxyPreviewer Error Nr 1939

Hi Fernando,
set your debugger on and find the place where the error occurs.
Stay healthy,
Koen

RE: FoxyPreviewer Error Nr 1939

Fernando, can you narrow down where the error occurs: within FoxyPreviewer itself, or in your code that calls it?

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads

RE: FoxyPreviewer Error Nr 1939

(OP)
Hi,

The error occurs within FoxyPreviewer itself.

Fernando Pereira

RE: FoxyPreviewer Error Nr 1939

We have the source code for FoxyPreviewer. So can you give us the module (PRG, VCX, etc) and line number where the error occurs?

Also, you say you have been running your programs for months. But, given that the error hasn't occurred before, something must have changed. If not your program code, then perhaps something in the computers' environment, or in your data, or in some other component. Can you identify what has changed.

Finally, have you reported the error to the developers? (To do so, you will still need the module and line number where the error occurred.)


Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads

RE: FoxyPreviewer Error Nr 1939

(OP)
Hi,

The only information I have about the error is:
  • method: show
  • line: 312
  • error: unknown member oform
I think it's in the file: frxpreview.vcx

Does this information help?

Best Regards,
Fernando Pereira

RE: FoxyPreviewer Error Nr 1939

Not really. FRXPREVIEW.VCX is class library. The Show method usually applies to a form. But the library contains seven forms, and as far as I can see, none of them has any code in its Show method. But there is a Custom class that has a Show method (presumably a custom method), and this does have a reference to oForm at line 312 (but you also mentioned a WITH/ENDWITH error; I can't see how that is relevant).

I'm afraid this is as far as I can go with this. To solve this, you would need someone with a knowledge of the inner working of FoxyPreviewer. But, even then, you would have to demonstrate that you can reproduce the error.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads

RE: FoxyPreviewer Error Nr 1939

(OP)

Hi,

Yes, I mentioned a WITH / ENDWITH error because sometimes I get an error on line 305, having the same origin.

The this.oForm object does not exist.

The error occurs in frxpreview.vcx, in method Show.

Code where the error below occurs.

CODE -->

*------------------------------------------
* Changed for SP1: These have nothing to do
* with the size and shape of the window:
*------------------------------------------
with THIS.oForm
	*--------------------------------------------
	* New in SP2:
	*--------------------------------------------
	.MemberClass        = THIS.MemberClass
	.MemberClassLibrary = THIS.MemberClassLibrary
	*--------------------------------------------
	if THIS.canvasCount > 0
		.canvasCount = THIS.canvasCount
	endif
	if THIS.currentPage > 0
		.currentPage = THIS.currentPage
	endif
	if THIS.zoomLevel > 0
		.zoomLevel = THIS.zoomLevel
	endif
	if not isnull( THIS.toolbarIsVisible )
		.toolbarIsVisible = THIS.toolbarIsVisible
	endif
	if not isnull( THIS.TextOnToolbar )
		.TextOnToolbar = THIS.TextOnToolbar
	endif
	.AllowPrintFromPreview = THIS.AllowPrintFromPreview
endwith

*-------------------------------
* Hook in the extension handler:
*-------------------------------
if not isnull( THIS.ExtensionHandler )
	THIS.oForm.extensionHandler = THIS.ExtensionHandler 
endif 

I haven't been able to simulate it yet, nor understand why it happened.

I noticed that I only know about clients that are working on an application that is on the server, and that are using a shortcut.

Best Regards,
Fernando Pereira

RE: FoxyPreviewer Error Nr 1939

Fernando,
this is not correct, your error speaks about line 132, the piece of code does not have so much lines.
Also the method show on line 132 does not have a local oForm.
Since you state, I recently started getting errors, I believe it used to work before as it should be.
Please investigate what your clients changed lately.
And does it work OK with you localy? If not you should be able to reproduce the error.
And since it worked before I suggest you first update/refresh all your files app or exe
BTW which version of FP are you using?
Stay heathy,
Koen

RE: FoxyPreviewer Error Nr 1939

Quote:

The error occurs in frxpreview.vcx, in method Show.

As I mentioned earlier, frxpreview.vcx is class library, not a class. Class libraries do not have methods. You have to identify the specific class within the library that has the method that causes the error.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close