Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread RemoteProcedures inside a DLL
Fri, Feb 17 2006 4:05 AMPermanent Link

"Jose Eduardo Helminsky"
How can I fix the code to work with RemoteParams using RemoteProcedures
inside a DLL ?

I have made a new server app and load a DLL. When I call the RemoteProcedure
it only works without parameters. When I put some parameters or need to
return something, it will result in AV. My doubts:
1) Should I put ShareMM at server side ?
2) I am using DBISAMMM (server app), it could be a problem ?
3) I am using {$M+} in both sides (server and DLL). Is this correct ?

Thanks

Eduardo

Fri, Feb 17 2006 11:49 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Jose,

<< How can I fix the code to work with RemoteParams using RemoteProcedures
inside a DLL ? >>

Are you trying to pass the RemoteParams object to a DLL ?  If so, then that
is a no-no.  You should use a runtime package instead or you'll have to
convert the RemoteParams to "raw" buffers (PChars) for sending to the DLL.

--
Tim Young
Elevate Software
www.elevatesoft.com

Fri, Feb 17 2006 12:43 PMPermanent Link

"Jose Eduardo Helminsky"
Tim

> Are you trying to pass the RemoteParams object to a DLL ?  If so, then
> that is a no-no.  You should use a runtime package instead or you'll have
> to convert the RemoteParams to "raw" buffers (PChars) for sending to the
> DLL.

My real intention is deploy a standard server and just code remote
procedures inside a DLL.
When you say "runtime package" I don't know exactly what you are talking
about, but I caugh the idea of convert RemoteParams to "raw" buffers.

Thanks for explanation.

Eduardo

Mon, Feb 20 2006 10:32 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Eduardo,

<< My real intention is deploy a standard server and just code remote
procedures inside a DLL.When you say "runtime package" I don't know exactly
what you are talking about, but I caugh the idea of convert RemoteParams to
"raw" buffers. >>

I mean a standard Delphi runtime package.  Using runtime packages allows you
to pass object references and long strings back and forth to the external
package, something that you cannot do with plain DLLs.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image