Página 1 de 1

OCX and GPF's

Publicado: Mié Oct 24, 2007 6:41 am
por Nick Hilder
Howdy
I have been playing around with the Active X controls,
I have now got a form with the Citrix ICA client window running in it (I can
click it to connect, then I get told about a protocol error, but it is
working ok)
I have another form with an Ink control which I think is working, I just
need to load it onto my tablet laptop to check
I can't though, for the life of me get the Ms.RDPClient running. I get a
GPF, it's the same GPF I get if I try and run the exe on my other system
with no ICA client installed
#1: GPF (Code = c0000005):
Access violation
OLEADDREF (0)
TOLEAUTO:NEW (316)
TMSRDPCLIENT5:CREATE (68)
TFORM3:LOADRDP (28)
TFORM3:ONINITIALIZE (0)
TFORM3:NEW (183)
TFORM1:RDPSESSION (56)
TTOOLBUTTON:ONCLICK (0)
(b)XTOOLBUTTON:XTOOLBUTTON (41)
TTOOLBUTTON:CLICK (0)
TTOOLBAR:COMMAND (377)
TSCROLLINGWINCONTROL:WMCOMMAND (253)
TFORM1:WMCOMMAND (885)
RUNFORM (0)
TAPPLICATION:RUN (209)
MAIN (15)
I know the rdpclient is there, I can see it in OLEViewer, I can see the path
to the dll, which I have checked and it exists
It's very easy for someone to test
Create a project
Import the Microsoft Terminal Services Control (redist) (choose the top
one, it's the latest version)
You'll need at least Win 2000 I think
Then stick this code in (don;t forget to declare COMPONENT OcxRDP in the
class
METHOD LoadRDP( oSender ) CLASS TForm3
::oOcxRDP := TMsRdpClient5():New(Self)
::oOcxRDP:nAlign := alCLIENT
::oOcxRDP:Create()
RETURN Nil
I'd be very intersted to hear if anyone can get this working
Nick