Loading...

Viewer Throws an error when form is disabled

Support for GdViewer OCX and GdViewer Pro ActiveX/SDK.

Viewer Throws an error when form is disabled

Postby JNewhouse » Mon Nov 26, 2007 9:35 pm

I have a form with the gdviewer control on it. above this is a toolbar with a Goto Page button. Clicking on the button brings up a modal dialog where the user can select the page to go to. On the unload of this form, i call DisplayFrame() to change page on the gdviewer control. this causes an "Invalid procedure call or argument" however and the app crashes.

This program was written in VFP9, however i've tried the same in .net where i disabled the form containing the control prior to calling the *modaless* goto page dialog.

I've stepped through my code and tried to access different methods or properties of the gdviewer control while it is disabled and gotten the same results.

So, the problem seems to be that when windows disabled the control (via a modal form in vfp, or disable form in .net) the control crashes when a property or method is called.

Can this be fixed??
JNewhouse
 
Posts: 41
Joined: Thu Nov 15, 2007 9:37 pm

Postby Loïc » Tue Nov 27, 2007 3:57 pm

Hi,

I can't reproduce this behaviour.

I think you are trying to access to a private form.

If you want, you can send me your project at esupport (at) gdpicture (dot) com in order to see what is wrong.

Regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4442
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Postby JNewhouse » Sun Dec 02, 2007 8:33 am

I just sent it...
JNewhouse
 
Posts: 41
Joined: Thu Nov 15, 2007 9:37 pm

Postby Loïc » Sun Dec 02, 2007 8:16 pm

Thanks for your mail.

I found the problem which raised the error. :oops:

The next release will get this problem fixed.


Best regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4442
Joined: Tue Oct 17, 2006 10:48 pm
Location: France


Return to GdViewer [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 2 guests