Online Talk to our
support team or
sales department.
Apr 19th, 2021, 10:09am
Welcome, Guest. Please Login or Register.
Pages: 1  Reply Reply  Notify of replies Notify of replies  Print Print
   Author  Topic: Windows exeption  (Read 2151 times)
Grueni
FabulaTech Forum Newbie
*



View Profile         
Gender: male Posts: 3
Windows exeption
« on: May 23rd, 2011, 2:49am »
Quote Quote  Modify Modify

Hello all,
I need your help.
we use the control to communicate with a measuring device.
It sends 10 ASCII for a single measurment. We measure 4000 times / sec.
All goes well for a couple of hours.
But some times we get a windows exeption:
 
in this code section:
 
Private Sub CHRControl_OnReceive(ByVal Sender As Object, _
        ByVal NumberOfBytesInBuffer As System.UInt32) _
        Handles CHRControl.OnReceive
        '----------------------------------------------------------------
        Dim BytesInBuffer(CInt(NumberOfBytesInBuffer - 1)) As Byte
        Dim ActualNumberOfBytesInBuffer As Integer = 0
        Try
            ActualNumberOfBytesInBuffer = _
            CInt(CHRControl.ReadArray(BytesInBuffer))
            If ActualNumberOfBytesInBuffer > 0 Then
                '---------------------------------------------------------
                CHRBuffer.Append(Encoding.ASCII.GetString(BytesInBuffer))
                '---------------------------------------------------------
            End If
        Catch ex As FabulaTech.SPC.FTSPCException
            
        End Try
End Sub
 
We are using Windows 7 prof. 32Bit
Fabula control 2.0
Visual Studio 2011
VB.net
 
The exception says overflow of "NumberOfBytesInBuffer"= 4294966994  
 
 
Overflow Exception arithmetric operation resulted in an overflow
 
 
Do you have any advice?
 
Thanks
Rainer
« Last Edit: May 23rd, 2011, 3:43am by Grueni » IP Logged
Harry_Mitkov
FabulaTech Forum Full Member
***



View Profile   WWW         
Gender: male Posts: 136
Re: Windows exeption
« Reply #1 on: May 23rd, 2011, 3:25am »
Quote Quote  Modify Modify

Dear Grueni,
 
Please try using the latest version of Serial Port Control 2.2
http://www.fabulatech.com/serial-port-control.msi
If your problem happens again with 2,2 version then please contact me at support@fabulatech.com
 
Thanks
IP Logged
Grueni
FabulaTech Forum Newbie
*



View Profile         
Gender: male Posts: 3
Re: Windows exeption
« Reply #2 on: May 24th, 2011, 1:14am »
Quote Quote  Modify Modify

Dear Harry
 
I'm now in big trouble
after I reinstalled our version 2.16
 
and try to start my application I always get:
 
FTSPC Eception
FTSPC Access is denied
 
What did I wrong?
 
Thanks
Rainer
IP Logged
Harry_Mitkov
FabulaTech Forum Full Member
***



View Profile   WWW         
Gender: male Posts: 136
Re: Windows exeption
« Reply #3 on: May 24th, 2011, 1:48am »
Quote Quote  Modify Modify

Dear Grueni,
 
Have you tried version 2.2 from our website?
http://www.fabulatech.com/serial-port-control.msi  
 
Please try it. If issue will happen again with version 2.2 then please send me
the code of your application  to support@fabulatech.com so our developer can analyse it.
(The complete source code of your application is not necessary. That would be great to if you can give us a separate part of code that reproduces the issue)
IP Logged
Grueni
FabulaTech Forum Newbie
*



View Profile         
Gender: male Posts: 3
Re: Windows exeption
« Reply #4 on: May 25th, 2011, 1:09am »
Quote Quote  Modify Modify

Dear Harry,
 
it did not help.
I got the same error as before.
 
I sent email to your support division
 
Thanks for your help
 
Rainer
IP Logged
Pages: 1  Reply Reply  Notify of replies Notify of replies  Print Print

« Previous topic | Next topic »