Write error: #ERROR 448#

G

Guest

Hi All,

When I write to a file using the Write method, #ERROR 448# is written to the
file instead of the string being sent!

Has anybody come across this problem?

Thanks in advance.
 
O

One Handed Man \( OHM - Terry Burns \)

I would not swear to it, but this may be to do with the length of the
filename being more that 11 characters, is your target an old DOS partition
?

--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
Next
Process.Start("mailto:" & New String(ch))
 
H

Herfried K. Wagner [MVP]

sm said:
When I write to a file using the Write method, #ERROR 448#
is written to the file instead of the string being sent!

Post your code.
 
G

Guest

The name of the file is test.txt

One Handed Man ( OHM - Terry Burns ) said:
I would not swear to it, but this may be to do with the length of the
filename being more that 11 characters, is your target an old DOS partition
?

--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
Next
Process.Start("mailto:" & New String(ch))
 
G

Guest

Hi,

Here is my code

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles

MyBase.Load

nfileno = FreeFile()

FileOpen(nfileno, "C:\download\test.txt", OpenMode.Append, OpenAccess.Write,
OpenShare.Shared)

With AxNETComm1

..CommPort = CShort(4&)

..set_Settings("9600, E, 7, 1")

..DTREnable = False

..RThreshold = 1

..PortOpen = True

End With

End Sub



Private Sub AxNETComm1_OnComm(ByVal sender As Object, ByVal e As
System.EventArgs) Handles

AxNETComm1.OnComm

With AxNETComm1

Select Case .CommEvent

Case NETCommOCX.NETCommConstants.NETComm_EV_RECEIVE

MsgBox(.InputData, MsgBoxStyle.OKOnly, "Test Application")

Write(nfileno, CStr(.InputData))

'FilePut(nfileno, CStr(.InputData))

End Select

End With

End Sub

I send a formatted text through the serial port. The text is being displayed
in the message box. But test.txt file has several #ERROR 448# strings wriiten
to it after the operation. When FilePut is used, however, nothing is written
to the file!

Writing strings to the file using Write is successful, however writing to
the file the data being received from the serial port fails. MsgBox however
successfully displays the data being sent through the port.

Can anybody out there figure out where the problem lies?

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Farmula wrong result 1
Error 448 3
Help with Serialization and Deflation 1
streamwriter.write 2
Can't read Tab characters from an XML File... 3
Word VBA to update cross-referencing 0
_PTAWIA error 3
increase the view area 2

Top