From farooqmulla@rediffmail.com Tue Nov 26 03:39:07 2002 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 18GbFL-00045Z-00 for help-snacc@gnu.org; Tue, 26 Nov 2002 03:39:07 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 18GbFJ-00045L-00 for help-snacc@gnu.org; Tue, 26 Nov 2002 03:39:06 -0500 Received: from [202.54.124.179] (helo=webmail10.rediffmail.com) by monty-python.gnu.org with smtp (Exim 4.10) id 18GbFI-00045E-00 for help-snacc@gnu.org; Tue, 26 Nov 2002 03:39:04 -0500 Received: (qmail 20767 invoked by uid 510); 26 Nov 2002 08:38:00 -0000 Date: 26 Nov 2002 08:38:00 -0000 Message-ID: <20021126083800.20766.qmail@webmail10.rediffmail.com> Received: from unknown (202.63.162.42) by rediffmail.com via HTTP; 26 nov 2002 08:38:00 -0000 MIME-Version: 1.0 From: "Farooq Mulla" Reply-To: "Farooq Mulla" To: help-snacc@gnu.org Subject: Discrepancies in reading strings (ASNOcts) Content-type: multipart/mixed; boundary="Next_1038299880---0-202.54.124.179-20762" Sender: help-snacc-admin@gnu.org Errors-To: help-snacc-admin@gnu.org X-BeenThere: help-snacc@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for SNACC - the Sample Neufeld ASN.1 Compiler to C/C++ List-Unsubscribe: , List-Archive: This is a multipart mime message --Next_1038299880---0-202.54.124.179-20762 Content-type: text/plain; format=flowed Content-Disposition: inline --Next_1038299880---0-202.54.124.179-20762 Content-type: message/rfc822 MIME-Version: 1.0 Message-ID: <20021126075414.31940.qmail@webmail7.rediffmail.com> From: "Farooq Mulla" To: help-snacc@gnu.org Subject: Discrepancies in reading strings (ASNOcts) Content-type: text/plain; format=flowed Content-Disposition: inline Hi , I am relatively new to SNACC (& ASN.1 in general) ...so plzz bear with me. In my application i decode & read a ASN encoded file ...which contains a list of records ....this record contains a field (say employeeNo)having fixed length = 16 of type ASNOcts. my problem is this : in more then half the records employeeNo is read correctly i.e the full length of 16 is read ...i have confirmed this with the octetLen being 16 wheras in other records ,employeeNo reads only a part of the string i.e the length comes out around 8 or 10 (i.e the octetLen is 8/10) & hence the string comes out as incorrect. I have made an appln using the ASN1C compiler generated C encoders & decoders ...where on reading the same file I get proper desired results which means that the input file is not wrong. but i need to make this thing work with SNACC ...can ne1 give me a lead as to why this problem occurs or where i m going wrong .... ne help on the same will be appreciated..... thanx in advance & plzz bear with my questions Farooq --Next_1038299880---0-202.54.124.179-20762--