line = string.Concat("// ", line ," // comment");
But its adding comment withount indenting means..
Hey all, i need some help..
I'm using C# language for my project.. I'm having problems with my RTC program..
The program cannot make outgoing calls to the SIP server and VoIP phone..
But the SIP server and VoIP phone can call the RTC program..
This is the part of the code which enables the SIP server to connect with the program..
Because your question involves intimate knowledge of this 3rd party RTC component, you may not receive a meaningful answer here. Have you tried posting your question in the RTC manufacturer's forums or support desk?
I solved the problem below, what I found was that when I built in data relations into the dataset it created the problem described. How do I build a data relation into my tables without getting the error.
I have a DataSet with 5 tables and a Form with tabs and a grid on each tab to view the data in the DataSet. I have used the add datasource to attach the DataSet DataBinder, and DataAdapter to the grids. However when I try call the form I get the following error message concerning my DataSet:
"Object reference not set to an instance of an object."
Yet the following line is in my code.
this.dataSet_I = new AnalysisCSLib.DataSets.DataSet_I();
Furthermore from other classes I have received the same message and also received a message stating Parent and Child Columns not set or something similar.
Any ideas as to what the problem is here, I would greatly appreciate your help.
Thanks in advance.
i want to use parallel programming method for write my project.but i don't know how can i do it.
and i have one question about it:
is parallel programming similar to threading or not.
oh my god im confusing... please help me.
Parallel programming is not the same as multi-threading. In a parallel processing system you have multiple processors each with their own memory. These processors can run the same computational process, different processes, or parts of a single process independently and simulataneously without requiring context switching.
Multi-threading allows multiple threads of execution to occur on a single processor and requires context switching to move between the threads.
These are really two completely different concepts.
Scott. —In just two days, tomorrow will be yesterday.
Hmm, well, I bow to your ultimate coding supremacy, Scott. But I'm not sure about this part:
Scott Dorman wrote:
Multi-threading allows multiple threads of execution to occur on a single processor
That's not true, right? I mean, the OS can schedule threads to run on any CPU or CPU core it chooses. Multi-threading enables one to program code that's run in parallel.
On single-CPU machines, the OS simply switches between the different executing threads (context switching), thus simulating real parallel programs.
"Some people consider parallel programming to be synonymous with concurrent programming. Others draw a distinction between parallel programming, which uses well-defined and structured patterns of communications between processes and focuses on parallel execution of processes to enhance throughput, and concurrent programming, which typically involves defining new patterns of communication between processes that may have been made concurrent for reasons other than performance. In either case, communication between processes is performed either via shared memory or with message passing, either of which may be implemented in terms of the other."
I guess I've always considered parallel programming to mean writing software that executes in parallel. You do this using threads, which I think was the question of the post, after all, he said, "is parallel programming similar to threading or not?"
All that said, I admit I'm not an expert at threading. I'm probably wrong and you're probably right.