CPB Mailing List

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Access Violation




This is a wierd one.  I've used this same code in other routines without
problems.

Here's some extracts from the code:

   char buff[255];


   sprintf(buff,"");
   SStat->Results->Lines->Add(buff);
   sprintf(buff,"            ONE-WAY ANALYSIS OF VARIANCE (EQUAL SAMPLE SIZES)");
   SStat->Results->Lines->Add(buff);

When I execute the line below I get an access violation.  I set a breakpoint
on the above line to determine the exact line I get the crash on.

   sprintf(buff,"");
   SStat->Results->Lines->Add(buff);

Any ideas?

------------------------------------------------------------------
Chris Strickland
Email: cstrick@iu.net
New Horizons Software - http://new-horizon.net/
[Central Florida Jobs, Mutual Fund Directory, Games and more]




W Komornicki's Home Page | Main Index | Thread Index