473,468 Members | 4,540 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

NETSERIALCOMM.EXE: problem with comm port not availabe to other ap

I am trying to use the software from John Hind's article: "Use P/Invoke to
Develop a .NET Base Class Library for Serial Device Communications".

When I use my application, everything works fine. I can open and close and
reopen the session with the internal modem with no problems. However, once my
application has been run, Hyperterminal and other modem-related programs will
not connect to the modem. Even if I terminiate my application, the problem
still persists.

Any ideas?

David

Nov 22 '05 #1
3 2555
md
Are you sure your app is ending? If you look in Task Manager is it still
there? It sounds like your app isn't ending correctly and is holding the
serial port open. If you do the same thing in the IDE does the app end
correctly? I found that when an app ends in the IDE the IDE seems to handle
closing the port.

Matt

"David W. Rogers" <Da**********@discussions.microsoft.com> wrote in message
news:27**********************************@microsof t.com...
I am trying to use the software from John Hind's article: "Use P/Invoke to
Develop a .NET Base Class Library for Serial Device Communications".

When I use my application, everything works fine. I can open and close and
reopen the session with the internal modem with no problems. However, once my application has been run, Hyperterminal and other modem-related programs will not connect to the modem. Even if I terminiate my application, the problem
still persists.

Any ideas?

David

Nov 22 '05 #2
Yep. The app is ending. It shouldn't have to end, since it looks like the
close code does everything it is supposed to do. Once I have dialed one
number, the only way to get Hyperterminal working again is to go to the
control panel and run the diagnostics. That "unblocks" the modem so that
Hyperterminal can connect to it.

David

"md" wrote:
Are you sure your app is ending? If you look in Task Manager is it still
there? It sounds like your app isn't ending correctly and is holding the
serial port open. If you do the same thing in the IDE does the app end
correctly? I found that when an app ends in the IDE the IDE seems to handle
closing the port.

Matt

"David W. Rogers" <Da**********@discussions.microsoft.com> wrote in message
news:27**********************************@microsof t.com...
I am trying to use the software from John Hind's article: "Use P/Invoke to
Develop a .NET Base Class Library for Serial Device Communications".

When I use my application, everything works fine. I can open and close and
reopen the session with the internal modem with no problems. However, once

my
application has been run, Hyperterminal and other modem-related programs

will
not connect to the modem. Even if I terminiate my application, the problem
still persists.

Any ideas?

David


Nov 22 '05 #3
I'm not sure I believe it, but removing "Q1" from my modem initialization
string eliminates the problem. "Q1" was preventing Hyperterminal et. al. from
connecting to the modem.

David

"David W. Rogers" wrote:
I am trying to use the software from John Hind's article: "Use P/Invoke to
Develop a .NET Base Class Library for Serial Device Communications".

When I use my application, everything works fine. I can open and close and
reopen the session with the internal modem with no problems. However, once my
application has been run, Hyperterminal and other modem-related programs will
not connect to the modem. Even if I terminiate my application, the problem
still persists.

Any ideas?

David

Nov 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: David | last post by:
Hi everyone, I have a ActiveX EXE component written in VB6. This ActiveX EXE exposes various public methods that can be called by several other independent Windows EXE applications (also written...
3
by: al | last post by:
Hi, I am creating an application in access 97, so coding in vba. I am at the stage of sending values to my external machine, but am stuck at a point. I need to send each character at an...
1
by: sarath1111 | last post by:
hi all, I am using comm port for serial communication between 2 PC's using C language. Once I have initialized the COMM port, Is there any option of closing the port in C language. Thanks in...
1
by: Don Tucker | last post by:
Hello, I am using Visual Studio .Net 2005 beta. I have my computer's two comm ports connected with a serial cable (and null modem). I'm trying to write the letter 'a' out on comm port 1 with the...
7
by: Michael Chong | last post by:
I wrote a program that communicate with SerialComm. In every 300 milliseconds, my program continuously send & receive data via the serial port once the program starts. My program is once in a...
3
by: Jay Patel | last post by:
Hello, I need to write visual basic.net code to interface with a Mettler Toledo Shipping Scale that interfaces with a PC via USB or a serial port. I have seen example code on how to communicate...
4
by: Iceman.Aragorn | last post by:
I'm having an odd problem where im reading input from a comm port (the maker of the software that exports the data TO the comm port is unhelpful). What im reading is fixed length (13 character)...
2
by: Jens Kallup | last post by:
Hello Newsgroup, I had program a little tool, thats output some assembler output: --- .section .rdata, "dr" LC1: .ascii "eins: %g\0" ..text ..globl _dbase_main
4
by: mithleshsridhar | last post by:
hi! im running late for my college project deadline.. plz help me guys.. im using a gsm phone as gsm modem and tryn to send AT commands to it so as to send text message to a mobile number. it is...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.