Re: RichTextBox crash [example]

From: Shawn Kohan (shawn_at_nospampleasse.com)
Date: 02/18/04


Date: Tue, 17 Feb 2004 20:35:00 -0800

That won't work because then the text that I send to the user won't be
formatted correctly. We need colors and stuff like that if I use seltext all
the formatting goes away.

Shawn

"Ken Halter" <Ken_Halter@Use_Sparingly_Hotmail.com> wrote in message
news:O4ZnyHM9DHA.2656@TK2MSFTNGP11.phx.gbl...
> Use SelText instead.
>
> --
> Ken Halter - MS-MVP-VB - http://www.vbsight.com
> Please keep it in the groups..
>
>
> "Shawn Kohan" <shawn@nospampleasse.com> wrote in message
> news:eaJ8sEt8DHA.2832@tk2msftngp13.phx.gbl...
> > Enter this code into the richtext box and enjoy a system crash. If you
are
> > using Outlook your Outlook will get stuck until the VB program closes.
:(
> >
> > RichTextBox1.SelRTF =
> >
"{\rtf99999999999999999999999999999999999\ansi\ansicpg1252\deff0\deflang1033
> > {\fonttbl{\f0\fnil\fcharset0 Arial;}}" & _
> > "{\colortbl
> > ;\red0\green0\blue255;\red0\green0\blue0;}" & _
> > "\viewkind4\uc1\pard\cf1\b\fs22 >\cf2\b0" &
"testt"
> > & _
> > "\par \cf0\fs23" & _
> > "\par }"
> >
> > Please tell me if you know of a fix.
> >
> > Sincerely,
> > Shawn
> >
> >
> > "Rick Rothstein" <rickNOSPAMnews@NOSPAMcomcast.net> wrote in message
> > news:%23Nddzoh8DHA.2952@TK2MSFTNGP09.phx.gbl...
> > > > I have a chat server with RichTextBox and some users have found a
way to
> > > > send commands that crash it. Do you have any info on how to prevent
> > this.
> > > It
> > > > doesn't give a error, the whole program crashed.
> > >
> > > You've not given us a lot to work with. What "commands" are they
sending?
> > > What does the user's screen look like when the program crashes (left
over
> > > pieces of your program, your program just goes away and Windows
continues
> > to
> > > work, Windows freezes up, etc.? What code are you using in the section
> > > handling user input? I've got a feeling I won't be able to help you
with a
> > > chat server type of problem (not my area); however, it seems that the
> > > questions I've asked would be the one's someone who could help you
would
> > > want to know. Details... we need details.<g>
> > >
> > > Rick - MVP
> > >
> > >
> >
> >
>
>



Relevant Pages

  • Re: OE asks for identity & password
    ... "Shawn" wrote in message ... > XP service pack 2 has been recently installed on this ... Have you tried leaving the password blank and just clicking OK? ... Tom Koch - MVP for Internet Explorer and Outlook Express ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Outlook 2003 doesnt see my fnevNewMail !!!
    ... Shawn wrote on 12/1/2004 4:09 PM: ... > Can anybody tell me why Outlook 2003 ignore fnevNewMail notifications? ... once with a NULL ENTRYID and the second ...
    (microsoft.public.win32.programmer.messaging)
  • Re: Outlook 2000 Calendar
    ... also check Outlook (tools, options, calendar options) for the daylight ... savings time settings. ... Shawn wrote: ...
    (microsoft.public.exchange2000.clients)
  • Re: Cannot Start the Reminder Folders Service Error Message Box
    ... >> Hi Shawn, ... >> Outlook search Reminders folder in the root search folder hierarhy. ...
    (microsoft.public.win32.programmer.messaging)