Click here to Skip to main content
16,005,375 members
Home / Discussions / C#
   

C#

 
Generalflexgrid assembly Pin
fady_sayegh9-Aug-05 7:23
fady_sayegh9-Aug-05 7:23 
GeneralRe: flexgrid assembly Pin
Sean Michael Murphy9-Aug-05 14:47
Sean Michael Murphy9-Aug-05 14:47 
Generaladding dll and call its functions Pin
iramg9-Aug-05 7:19
iramg9-Aug-05 7:19 
GeneralRe: adding dll and call its functions Pin
magnifique9-Aug-05 7:28
magnifique9-Aug-05 7:28 
GeneralFlat Database Files Pin
bsohante9-Aug-05 6:50
bsohante9-Aug-05 6:50 
GeneralRe: Flat Database Files Pin
bsohante9-Aug-05 6:54
bsohante9-Aug-05 6:54 
QuestionHow to paint on a browser? Pin
Anonymous9-Aug-05 6:47
Anonymous9-Aug-05 6:47 
GeneralRichTextBox crashing remoting server Pin
NielsHertzum9-Aug-05 5:26
NielsHertzum9-Aug-05 5:26 
Hi all !

I have build a remoting server as a simple application using a WinForm to show messages.

The WinForm program starts a serverprogram, that registers a RemotableObject to be run in singleCall mode. The Server has an event (taking a string var) which the WinForm registers a method to, so that a RichTextBox in the WinForm will show any text from the stringvar on the event.

The RemotableObject on its side, has a static event which the server (abovementioned) registrs a method (on itself) to, just delegating the incomming event (from the remotableObject) on to the WinForm by firing its own even, thus sending the incomming text to the Winforms registered medthod.

That is: every time anything interesting happens on the remotableObject it fires the event, which the server has registered to - and receiving the text from the remotable object the server "sends" it to the WinForm (by firing its own event, which the WinForm has registered to) thus displaying the text from the remotable object in its RichTextBox control.

If I run some program, using the remotableObjects methods, everything works fine the first couple of times, but then the WinForm program crashes with a NullPointer error (actually the debugger traces this to happen just after the Application.Run statement starting the WinForm)

If then I replace the RichTextBox display with a Console.Writeline of the exact same text (at the exact same place, as the winform displays the text in the RichTextBox) I can go on and on without any errors, getting everything displayed in the console output.

Any ideas about why the RichTextBox causes the crashing ???

TIA


GeneralRe: RichTextBox crashing remoting server Pin
mav.northwind9-Aug-05 20:11
mav.northwind9-Aug-05 20:11 
GeneralRe: RichTextBox crashing remoting server Pin
NielsHertzum10-Aug-05 2:33
NielsHertzum10-Aug-05 2:33 
GeneralRe: RichTextBox crashing remoting server Pin
NielsHertzum13-Aug-05 3:15
NielsHertzum13-Aug-05 3:15 
QuestionTry {//code} catch{throw;} ? Pin
Adam °Wimsatt9-Aug-05 5:14
Adam °Wimsatt9-Aug-05 5:14 
AnswerRe: Try {//code} catch{throw;} ? Pin
J4amieC9-Aug-05 5:28
J4amieC9-Aug-05 5:28 
AnswerRe: Try {//code} catch{throw;} ? Pin
LobsterDK9-Aug-05 6:39
LobsterDK9-Aug-05 6:39 
GeneralUnable to programmatically add certificate to certificate store Pin
shubc9-Aug-05 3:56
shubc9-Aug-05 3:56 
Generalpls suggest solution for linking error between pocket pc and printer through infrared(IR) Pin
intractive9-Aug-05 3:39
intractive9-Aug-05 3:39 
GeneralRe: pls suggest solution for linking error between pocket pc and printer through infrared(IR) Pin
Dave Kreskowiak9-Aug-05 5:18
mveDave Kreskowiak9-Aug-05 5:18 
GeneralInstance of Pin
zaboboa9-Aug-05 3:34
zaboboa9-Aug-05 3:34 
GeneralRe: Instance of Pin
J4amieC9-Aug-05 3:52
J4amieC9-Aug-05 3:52 
GeneralRe: Instance of Pin
zaboboa9-Aug-05 4:08
zaboboa9-Aug-05 4:08 
GeneralRegex fun! Pin
Hauxon9-Aug-05 3:01
Hauxon9-Aug-05 3:01 
GeneralRe: Regex fun! Pin
Guffa9-Aug-05 4:35
Guffa9-Aug-05 4:35 
GeneralRe: Regex fun! Pin
Hauxon9-Aug-05 5:35
Hauxon9-Aug-05 5:35 
GeneralRe: Regex fun! Pin
Guffa9-Aug-05 5:46
Guffa9-Aug-05 5:46 
GeneralQuestion about returning a Structure as string (ToString) Pin
MaWeRic9-Aug-05 2:46
MaWeRic9-Aug-05 2:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.