Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: wwDotnetBridge not loaded

$
0
0
Re: wwDotnetBridge not loaded
West Wind Client Tools
Re: wwDotnetBridge not loaded
04/19/2012
01:29:53 AM
3HE037NLX Show this entire thread in new window
Gratar Image based on email address
From:
Marco Sommacal
To:
Attachments:
None
These are the reesults.
FULLPATH("wwipstuff.dll") ="D:\WORK\CODE\VFP\GEDEL\COMPRJ\WWIPSTUFF.DLL"
FULLPATH("wwdotnetbridge.dll")="D:\WORK\CODE\VFP\GEDEL\COMPRJ\WWDOTNETBRIDGE.DLL"
I doublechecked the two DLL are there.
During declaration of ClrCreateInstanceFrom IN WWC_CLR_HOSTDLL (=WWIPSTUFF.DLL) no errors.
During debugging I verified, in the Command window, the declared DLL using DISPLAY DLLS and the result was:
Declared DLLs:
ClrCreateInstanceFrom
SetClrVersion

The DLL paths are on the local HDD (no network)

Marco

Ok... so two things.

Can you check what FULLPATH("wwipstuff.dll") and FULLPATH("wwdotnetbridge.dll") are? Are these valid and the files can be found?

Where are these? Is wwDotnetBridge.dll on a network share - there are configuration issues with that.

+++ Rick ---



Done.
In Load()
*** Load by filename - assumes the wwDotNetBridge.dll is in the Fox path
DECLARE Integer ClrCreateInstanceFrom IN WWC_CLR_HOSTDLL string, string, string@, integer@

lcError = SPACE(2048)
lnSize = 0
lnDispHandle = ClrCreateInstanceFrom(FULLPATH("wwDotNetBridge.dll"),;
"Westwind.WebConnection.wwDotNetBridge",@lcError,@lnSize)
Here I receive lnDispHandle=-1 then no instantiation of wwDotNetBridge.dll. The Dll is not in FoxPro directory, but you use FULLPATH the it should be ok.
The control return to wwDotNetBridge.prg to the row I have sent to you with this.cErrorMsg=""

Marco

Can you step into the Load() please and see what's happening in there and where it's failing and returning from?

Did you get an error message?

+++ Rick --



Rick,
I'm really sorry but I had to leave the office.
To answer your question: yes the fail is before and exactly when I try to create the object
loBridge=CREATEOBJECT("wwDotNetBridge","V4")
I used the debugger, wich shows up the wwDotNetBridge.prg (see below)
*** Fail creation if the object couldn't be created
IF ISNULL(this.Load())
ERROR "Unable to load wwDotNetBridge: " + this.cErrorMsg <--------
RETURN .F.
ENDIF

and highlights the error row. Unable to find wwDotNetBridge.dll?

Marco


Hmmm... Marco I'm not sure what might be happening. Can you step through the code and tell me exactly what's blowing up inside of wwDotNetBridge?

It's failing before you load your .NET assembly right, so this is happening before you get loBridge instantiated?

+++ Rick ---



I used Options to define search path and default directory path. wwIPStuff.dll and wwDotNetBridge.dll are both in the default directory of the proj. I checked .NET 4 is installed and precisely: Microsoft .NET Framework 4 Extended ver. 4.0.30319.
Also Microsoft .NET Framework 4 Client Profile is installed.
Marco


Are you sure that:


  • .NET 4.0 is loaded (since you're referencing .NET 4.0 runtime
  • wwIPStuff.dll and wwDotNetBridge.dll are in your FoxPro path

+++ Rick ---


I just downloaded the WWclient tools pck. to test it. I set up few lines prg (copying from docs):
#INCLUDE WCONNECT.H
CLEAR
*** Load libraries
DO wwDotNetBridge
*** Create instance and use .NET 4.0
LOCAL loBridge as wwDotNetBridge
loBridge=CREATEOBJECT("wwDotNetBridge","V4")
*** Load known assembly
? loBridge.LoadAssembly("PDFSignDll")
? loSign = loBridge.CreateInstance("PDFSign")
RETURN

When prg tryes to execute createobject an error is generated ""Unable to load wwDotNetBridge: " Simply that. What to do?

Marco











Viewing all articles
Browse latest Browse all 10393

Trending Articles