Click here to Skip to main content
16,004,991 members
Home / Discussions / C#
   

C#

 
QuestionA network-related or instance-specific error occurred while establishing a connection to SQL Server Pin
Tridip Bhattacharjee4-Jan-10 20:34
professionalTridip Bhattacharjee4-Jan-10 20:34 
AnswerRe: A network-related or instance-specific error occurred while establishing a connection to SQL Server Pin
Jimmanuel5-Jan-10 8:32
Jimmanuel5-Jan-10 8:32 
QuestionMSMQ Receiving messages Help!!! Pin
faheemnadeem4-Jan-10 19:32
faheemnadeem4-Jan-10 19:32 
AnswerRe: MSMQ Receiving messages Help!!! Pin
Jimmanuel5-Jan-10 8:52
Jimmanuel5-Jan-10 8:52 
GeneralRe: MSMQ Receiving messages Help!!! Pin
faheemnadeem5-Jan-10 17:57
faheemnadeem5-Jan-10 17:57 
AnswerRe: MSMQ Receiving messages Help!!! Pin
Jimmanuel6-Jan-10 1:09
Jimmanuel6-Jan-10 1:09 
GeneralRe: MSMQ Receiving messages Help!!! Pin
faheemnadeem6-Jan-10 4:05
faheemnadeem6-Jan-10 4:05 
GeneralRe: MSMQ Receiving messages Help!!! Pin
Jimmanuel6-Jan-10 4:52
Jimmanuel6-Jan-10 4:52 
faheemnadeem wrote:
i am still looking for a single queue solution

Why? There's nothing wrong with having more than one Q and it makes it easier to avoid the situation that you're encountering.

Like you said, the problem with having only one Q is keeping track of which process is supposed to remove messages from it. You tried the easiest solution that I can think of - include the receiver in the label, have every process peek at the message and then based on that the proper receiver will know that it is supposed to be the one to remove it.

faheemnadeem wrote:
that code was complex

You're absolutely right! It's much easier to have one dedicated Q for each app, or for you at least one per layer.

faheemnadeem wrote:
Is that possible

No. A windows service by definition does not have a user interface so the manager application will need to be a separate process. The only way to combine then would be to add everything into the winfoms app which would probably undermine the reason that you're using a service to begin with Smile | :) .

Badger | [badger,badger,badger,badger...]

GeneralRe: MSMQ Receiving messages Help!!! Pin
faheemnadeem6-Jan-10 5:58
faheemnadeem6-Jan-10 5:58 
GeneralRe: MSMQ Receiving messages Help!!! Pin
Jimmanuel6-Jan-10 6:57
Jimmanuel6-Jan-10 6:57 
QuestionRead data from a SerialPort: cross-thread not true Pin
AlexB474-Jan-10 18:29
AlexB474-Jan-10 18:29 
AnswerMessage Closed Pin
4-Jan-10 21:50
stancrm4-Jan-10 21:50 
GeneralRe: Read data from a SerialPort: cross-thread not true Pin
AlexB475-Jan-10 1:46
AlexB475-Jan-10 1:46 
AnswerRe: Read data from a SerialPort: cross-thread not true Pin
Luc Pattyn5-Jan-10 2:36
sitebuilderLuc Pattyn5-Jan-10 2:36 
GeneralRe: Read data from a SerialPort: cross-thread not true Pin
AlexB475-Jan-10 3:44
AlexB475-Jan-10 3:44 
GeneralRe: Read data from a SerialPort: cross-thread not true Pin
Luc Pattyn5-Jan-10 3:52
sitebuilderLuc Pattyn5-Jan-10 3:52 
Questionminimizing and maximizing Pin
ummu 24-Jan-10 18:13
ummu 24-Jan-10 18:13 
AnswerMessage Closed Pin
4-Jan-10 21:48
stancrm4-Jan-10 21:48 
GeneralRe: minimizing and maximizing Pin
ummu 24-Jan-10 22:21
ummu 24-Jan-10 22:21 
QuestionHow to bookmark in ritchtextbox Pin
SuhebAhamd4-Jan-10 18:12
SuhebAhamd4-Jan-10 18:12 
AnswerRe: How to bookmark in ritchtextbox Pin
Pawel Gielmuda5-Jan-10 0:16
Pawel Gielmuda5-Jan-10 0:16 
AnswerRe: How to bookmark in ritchtextbox Pin
Eddy Vluggen5-Jan-10 10:29
professionalEddy Vluggen5-Jan-10 10:29 
QuestionWhat is the difference between Activator.CreateInstance and new operator ? Pin
md_azy4-Jan-10 17:45
md_azy4-Jan-10 17:45 
AnswerRe: What is the difference between Activator.CreateInstance and new operator ? Pin
_Maxxx_4-Jan-10 17:52
professional_Maxxx_4-Jan-10 17:52 
QuestionPrint Fit to Page Image Pin
rina184-Jan-10 15:45
rina184-Jan-10 15:45 

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.