Re: RichTextBox crash [example]
From: Shawn Kohan (shawn_at_nospampleasse.com)
Date: 02/18/04
- Next message: Eric Fortin: "Outlook, Address Book (Outlook w/Exchange Server), and Visual Basic 6, Help Pls"
- Previous message: Vlad: "Operation is not allowed in this context"
- In reply to: Ken Halter: "Re: RichTextBox crash [example]"
- Next in thread: Rick Rothstein: "Re: RichTextBox crash [example]"
- Reply: Rick Rothstein: "Re: RichTextBox crash [example]"
- Reply: Ken Halter: "Re: RichTextBox crash [example]"
- Messages sorted by: [ date ] [ thread ]
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
> > >
> > >
> >
> >
>
>
- Next message: Eric Fortin: "Outlook, Address Book (Outlook w/Exchange Server), and Visual Basic 6, Help Pls"
- Previous message: Vlad: "Operation is not allowed in this context"
- In reply to: Ken Halter: "Re: RichTextBox crash [example]"
- Next in thread: Rick Rothstein: "Re: RichTextBox crash [example]"
- Reply: Rick Rothstein: "Re: RichTextBox crash [example]"
- Reply: Ken Halter: "Re: RichTextBox crash [example]"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|