AnsweredAssumed Answered

vrf Internal Segmentation Violation

Question asked by VRFuser on Mar 3, 2004
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII"><TITLE>Message</TITLE><META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD><BODY><DIV><FONT face=Arial color=#0000ff size=2><SPAN class=467020806-04032004>Hi,</SPAN></FONT></DIV><DIV><FONT face=Arial color=#0000ff size=2><SPAN class=467020806-04032004></SPAN></FONT> </DIV><DIV><FONT face=Arial color=#0000ff size=2><SPAN class=467020806-04032004> I have been playing a bit with the program that Simon sent. If you have NO instrument connected to the serial port then the program can be executed without problems all the times you want. If I connect a device that responds, even if is no asked (a device that waits a command through the serial port and send an answer if the command is not allowed), I got timeout error (811). I believe the real problem is that the serial port is not used correctly. </SPAN></FONT></DIV><DIV><FONT face=Arial color=#0000ff size=2><SPAN class=467020806-04032004>  I mean, the program is sending out data, for some reason, maybe unexpected, the device answers, but there's no instruction in VEE that captures the answer so the read buffer is getting filled with data and this buffer has a default size of 4096 bytes. When this buffer gets full, then SICL libraries complain. Another possible cause is the handshaking, if the control lines are not used properly, then timeouts and funny errors can be got.</SPAN></FONT></DIV><DIV><FONT face=Arial color=#0000ff size=2><SPAN class=467020806-04032004></SPAN></FONT> </DIV><DIV><FONT face=Arial color=#0000ff size=2><SPAN class=467020806-04032004> I am using VEE 6.02, VEE 7.0 beta 4, Windows XP, Agilent IO Libraries M.01.01.04, I have wrote lots of applications controlling serial devices and never got random errors.</SPAN></FONT></DIV><DIV><FONT face=Arial color=#0000ff size=2><SPAN class=467020806-04032004></SPAN></FONT> </DIV><DIV><FONT face=Arial color=#0000ff size=2><SPAN class=467020806-04032004> Regards,</SPAN></FONT></DIV><DIV><FONT face=Arial color=#0000ff size=2><SPAN class=467020806-04032004> </SPAN></FONT></DIV><DIV><FONT face=Arial color=#0000ff size=2><SPAN class=467020806-04032004> Paco</SPAN></FONT></DIV><BLOCKQUOTE style="MARGIN-RIGHT: 0px">  <DIV></DIV>  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT   face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> Simon Parfitt   [mailto:Simon.Parfitt@renesas.com] <BR><B>Sent:</B> Wednesday, March 03, 2004   4:37 PM<BR><B>To:</B> VRF<BR><B>Subject:</B> [vrf] RS232<BR><BR></FONT></DIV>  <DIV><FONT face=Arial size=2><SPAN class=729383215-03032004>Hello again   guys,</SPAN></FONT></DIV>  <DIV><FONT face=Arial size=2><SPAN   class=729383215-03032004></SPAN></FONT> </DIV>  <DIV><FONT face=Arial size=2><SPAN class=729383215-03032004>I have been   messing round with this com port all day and it just does not work   correctly.</SPAN></FONT></DIV>  <DIV><FONT face=Arial size=2><SPAN   class=729383215-03032004></SPAN></FONT> </DIV>  <DIV><FONT face=Arial size=2><SPAN class=729383215-03032004>I have attached a   simple program even this does not work all the time. </SPAN></FONT></DIV>  <DIV><FONT face=Arial size=2><SPAN   class=729383215-03032004></SPAN></FONT> </DIV>  <DIV><FONT face=Arial size=2><SPAN class=729383215-03032004>I am running   windows 2000 with vee 6.02 I have installed updated I/O drivers for   it.</SPAN></FONT></DIV>  <DIV><FONT face=Arial size=2><SPAN   class=729383215-03032004></SPAN></FONT> </DIV>  <DIV><FONT face=Arial size=2><SPAN class=729383215-03032004>The error messages   keep on changing!!!!!</SPAN></FONT></DIV>  <DIV><FONT face=Arial size=2><SPAN   class=729383215-03032004></SPAN></FONT> </DIV>  <DIV><FONT face=Arial size=2><SPAN class=729383215-03032004>I think it is a   windows problem.</SPAN></FONT></DIV>  <DIV><FONT face=Arial size=2><SPAN   class=729383215-03032004></SPAN></FONT> </DIV>  <DIV><FONT face=Arial size=2><SPAN class=729383215-03032004>Any help please   guys.</SPAN></FONT></DIV>  <DIV><FONT face=Arial size=2><SPAN   class=729383215-03032004></SPAN></FONT> </DIV>  <DIV><FONT face=Arial size=2><SPAN   class=729383215-03032004>Simon</SPAN></FONT></DIV><FONT   size=3><BR><BR>---------------------------------------------------------------------<BR>E-mail   Confidentiality Notice and Disclaimer <BR><BR>This email and any files   transmitted with it are confidential and are intended solely for the use of   the individual or entity to which they are addressed. Access to this email by   anyone else is unauthorised. If you are not the intended recipient, any   disclosure, copying, distribution or any action taken or omitted to be taken   in reliance on it, is prohibited. <BR><BR>Email messages are not necessarily   secure. Renesas Technology Europe does not accept responsibility for any   changes made to this message after it was sent. Please note that Renesas   Technology Europe checks outgoing email messages for the presence of computer   viruses. <BR></BLOCKQUOTE></FONT>---<BR>You are currently subscribed to vrf as: rsb@soco.agilent.com<BR>To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".<BR>To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".<BR>To send messages to this mailing list,  email "vrf@agilent.com".  <BR>If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".</BODY></HTML>  

Outcomes