Searching \ for 'win95 question' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/index.htm?key=win95+question
Search entire site for: 'win95 question'.

Truncated match.
PICList Thread
'win95 question'
1998\01\16@132800 by Rob Aerts

flavicon
face
hello everbody,

my question is a little bit off topic (i gues)
but maybe somebody can point me to the right location (list or newsgroup)

i have a made a program (c++) witch reads data from the serial port
a data device on com1 f.e. sends lots of data to my computer
the big problem in win95 is, while i'm receiving data, my program is blocked
(task switching) and when it receive's control, data is lost.
how can i solve this problem.  i'm looking for some kind of blocking
procedure
to stop windows for task switching while my program receives data

Kind Regards,
Rob Aerts

1998\01\16@141244 by WF AUTOMACAO

flavicon
face
Rob Aerts wrote:
>
> hello everbody,
>
> my question is a little bit off topic (i gues)
> but maybe somebody can point me to the right location (list or newsgroup)
>
> i have a made a program (c++) witch reads data from the serial port
> a data device on com1 f.e. sends lots of data to my computer
> the big problem in win95 is, while i'm receiving data, my program is blocked
> (task switching) and when it receive's control, data is lost.
> how can i solve this problem.  i'm looking for some kind of blocking
> procedure
> to stop windows for task switching while my program receives data
>
> Kind Regards,
> Rob Aerts

Rob,

Last month, i used a .DLL for communicate with a ST6 kit that i developted,
using the
PC communication serial (Windows 95 plataform).
My ST6 send a 128 bytes string each second and the processing of WIN95 never
stopped! I think
that your C++ routine have problems.
Try whttp://www.marshallsoft.com.

I think that Pam Marshall have for C++.

Good luck.

mIGUEL.

1998\01\16@152538 by John Hansen

picon face
At 07:18 PM 1/16/98 +0100, you wrote:
>hello everbody,
>
>my question is a little bit off topic (i gues)
>but maybe somebody can point me to the right location (list or newsgroup)
>
>i have a made a program (c++) witch reads data from the serial port
>a data device on com1 f.e. sends lots of data to my computer
>the big problem in win95 is, while i'm receiving data, my program is blocked
>(task switching) and when it receive's control, data is lost.
>how can i solve this problem.  i'm looking for some kind of blocking
>procedure
>to stop windows for task switching while my program receives data
>
>Kind Regards,
>Rob Aerts

There are a number of ways to deal with this.  Windows95 is great because
it supports multiple threads.  You can simply instantiate a thread to do
nothing but watch the serial port.  It then notifies the rest of the
program when it needs to do something.

I suspect that you might be able to accomplish something similar with flow
control, but that assumes that the device that your serial port is
communicating with supports flow control.   Given that this message is on
the PIC list, I'll make the heroic assumption that you are communicating
with a PIC.  If that is the case, it seems to me you could use flow
control, but it would involve more resources (code or pins) that you may
not have available.  So I would try using a dedicated thread.

1998\01\16@153630 by Norm Cramer

flavicon
face
Go look at the TTY example that comes with visual C++.  It shows how to use
the port correctly and not miss any characters.  What version of C++ are
you using?

Norm

At 07:18 PM 1/16/98 +0100, you wrote:
{Quote hidden}

1998\01\16@200851 by anick

flavicon
face
I have done alot of Serial I/O work using the MS Visual C++ tools. If
you using MS C++ I can help. I acually use my C++ stuff to talk to a PIC
based device!! go figure....

Alan Nickerson


Rob Aerts wrote:
{Quote hidden}

1998\01\19@120436 by Eric W. Engler

flavicon
face
>i'm looking for some kind of blocking procedure
>to stop windows for task switching while my program receives data

Search for "critical section" in your C compiler help files.

Eric

More... (looser matching)
- Last day of these posts
- In 1998 , 1999 only
- Today
- New search...