I am using Sybase Database in Dot net (Windows application), which is making use of the required Sybase DLL(Sybase.AdoNet4.AseClient). From the start of application the DataReader of AseCommand has AccessViolation Exception, which fires in our application while executing a particular stored procedure which in turn crashes the application. Error that I am getting is "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
Please find the attached snapshot for the same.
Error1 : This exception we find during the first time initialization of the command object, but this is not fired.
Click image for larger version. 

Name:	Error1.jpg 
Views:	4 
Size:	129.8 KB 
ID:	16635

Error2: This error gets fired during the execution of stored procedure, but it doesn't happen for all the procedure execution and gets fired only for a particular procedure.
Click image for larger version. 

Name:	Error2.jpg 
Views:	4 
Size:	114.0 KB 
ID:	16636