Re: HELP ME-RDI Protocol

From: Fred Viles (fv+abuse_at_nospam.usen.epitools.com)
Date: 04/16/04


Date: Fri, 16 Apr 2004 18:24:40 GMT

ardhendu_nandan@rediffmail.com (Ardhendu Nandan) wrote in
news:419fd31c.0404160508.7624215b@posting.google.com:

> Fred Viles <fv+abuse@nospam.usen.epitools.com> wrote in message
> news:<1a854761f9f55756d20fc0e9d56129d6@news.teranews.com>...
>>...
>> I'm not sure I understand you, have I got this right?
>>...
> To some extent I think you have got it correct . The I/O is not
> passed back to debugger. Just before the connection occurs there
> is a messagebox displaying the message - "RDI_MAJIC:Unable to
> create console window" this message is coming during call to
> RDI_OpenAgent.

Ah, now it all makes sense!

> I couldn't figure out why it is coming .Maybe some
> arguments are not specified properly.
> Can you help me on this front.

I can give you the next clue, but I'm not the guy who wrote the RDI
DLL so I can't provide a solution. I suggest you give EPI support
a try. Email support at epitools.com, and tell them that you are
writing a console-mode debugger and getting the above error when
connecting to rdimajic.dll. You'll get a response from the
engineer responsible for the RDI implementation.

> The code is written in C so no GUI or something is there which
> is intervening.

That's the problem. Since your debugger is a console app, it
already owns the one-and-only console window that Windows allows an
app to open. If your debugger was a GUI app you wouldn't be
running into this problem.

If you don't mind my asking, what are you trying to accomplish by
writing your own debugger? If it's just to automate some processes
or something, MAJIC comes with a highly scriptable console mode
debugger that can meet most such needs.

- Fred



Relevant Pages

  • Re: Process exits premature
    ... console app. ... In this callback function, the code is like: ... Once B is launched and DebugBreakis reached, VS debugger will come up and you'll be able to step through code, inspect variables, etc. ... If not, you might need to instrument your code: so that it writes strings into your custom logfile to send logging output to debug console, instead of logfile - DebugView.exe can be used to view messages sent to debug console). ...
    (microsoft.public.win32.programmer.kernel)
  • Can I debug a console app byt attaching a debugger to its process ?
    ... I compiled a console app to be debuggable and i verified to have the ... pdb file along with the .exe file. ... allows me to attache the debugger to the cmd.exe process successfully. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: mtx_lock_do_what_i_mean()
    ... kernel from anything to which we have a TTY attached. ... things that go into the message buffer to the console becomes 1) ... debugger is a problem all by itself... ... still normally goes to the same device as user and kernel i/o, ...
    (freebsd-arch)
  • Re: ethercons: ethernet console driver for 5-current
    ... >> bit of time exploring the FreeBSD console code. ... >> implementing ethernet console support for FreeBSD. ... Since the debugger suspends scheduling, ... polling of the network interface in an interrupt-thread-free environment, ...
    (freebsd-current)
  • Re: Reboot instead of debugger/dump from X11? (Re: an accidental way to pull the plug)
    ... when the panic took place on the normal text console, ... when it took place with X11 ... > happening during even normal failure modes when X11 is running for me. ... debugger on panic, ...
    (freebsd-current)