Web Connection
Getting error when compiling EXE upgrading to 6.12
Gravatar is a globally recognized avatar based on your email address. Getting error when compiling EXE upgrading to 6.12
  Jerry Tovar
  All
  Jul 17, 2017 @ 07:03pm

We are upgrading WWWWC from 5.68 to 6.12.

I have manually copied all the files (prgs, dlls, etc...) to our VFP project folder.

I can compile our project without any errors. However, when I attempt to build an EXE, the project compiles without errors, but when build process attempts to register the COM Component I get this error in a messagebox: Function argument value, type, or count is invalid.

Then the EXE that is created is only 24kb in size when it should be 13,000+ kb in size.

Any idea on what could be causing this sort of error?

Gravatar is a globally recognized avatar based on your email address. re: Getting error when compiling EXE upgrading to 6.12
  Rick Strahl
  Jerry Tovar
  Jul 17, 2017 @ 07:26pm

See if you can build a .app file first. This will tell you if there's a problem with the project's compilation or some sort of permissions issue. I suspect it's the latter.

Are you running as an Administrator? Web Connection Servers are COM servers and FoxPro auto-registers them which requires Admin rights. Without it the EXE won't build.

You should should check the project's .err file for potentially more info on what's going wrong and SET NOTIFY ON.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Getting error when compiling EXE upgrading to 6.12
  Jerry Tovar
  Jerry Tovar
  Jul 18, 2017 @ 05:45pm

Hmmm... I can compile the project to an .APP just fine, no errors. I'm on Windows server 2012. It looks like I am logged in as Administrator. And I start VFP9 as Administrator. But I still get the error when trying to compile to an EXE.

 Function argument value, type, or count is invalid

I tried to revert my changes to 563. But now when I try to compile version 563, I get weird messages like "myproject.pjt is missing or invalid" even though the project file is opened. If I ignore, I get a message about not being able to delete "somefile.fxp" in a temp folder.

Did I mess up some registered DLL?

© 1996-2024