Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / June 2006

Tip: Looking for answers? Try searching our database.

SerialPort on a Thread

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
George Nentidis - 23 Jun 2006 19:17 GMT
Hi there all.
I have a problem with SerialPort that can't seem to find a solution for
a couple of days now.

I use the SerialPort to send AT commands to a modem.
Simple AT commands like ATE1, ATQ0 etc. and simple call.
Open the port, Send the AT command, read the response, close the port.
When I use SerialPort in an OnClick event of a button in a form
everything works fine.
When I use SerialPort from inside a thread in single processor system
everything still works fine.

When I use SerialPort from a thread in a 4 cpu server, sending to the
port seems to work fine, but no data ever come from it. The BytesInRead
property is always zero, and the DataReceived event never fires.
The same thing on the same server, works fine if called from a OnClick
event of a button in a form. That is when called from the application's
main thread.

Does anyone has any ideas?
Thank you all in advance
George
Dick Grier - 24 Jun 2006 17:50 GMT
Hi,

I think you need to report this as a possible bug on:
http://msdn.microsoft.com/vstudio/support/.

I do not have a multiple processor system, so I cannot confirm it.  Sorry.

Dick

Signature

Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.

George Nentidis - 27 Jun 2006 11:35 GMT
> Hi,
>
[quoted text clipped - 4 lines]
>
> Dick

Thanks for your time Dick,

It was actually a thread serialization problem since in 4 cpu systems
things really go parallel.

George
Dick Grier - 27 Jun 2006 16:18 GMT
OK, thanks for reporting back.

Signature

Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.