This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

AW: STATUS+-AF8-ACCESS+-AF8-VIOLATION Exception


Of course it crashes.
writing to a string literal +ACo-is+ACo- an access violation.
BTW: This piece of code is a violation of any good taste
and should crash on any system.

(depends on whether the string constant is stored on the data segment or in
the code segment).

Nevertheless, this is not really a cygwin topic (ASAIK).

Kristof Doffing
Lufthansa Systems
Airline Services GmbH, FRA AS/S
FAC, Hugo-Eckener-Ring A.8.02
60549 Frankfurt/Main
Tel.: +-49 69 / 696 92630
Fax : +-49 69 / 696 92062


-----Urspr+APw-ngliche Nachricht-----
Von: Amos +AFs-mailto:tirtsab+AEA-inter.net.il+AF0-
Gesendet am: Donnerstag, 24. Januar 2002 14:01
An: cygwin+AEA-cygwin.com
Betreff: STATUS+-AF8-ACCESS+-AF8-VIOLATION Exception

Hi,

Any simple c program that uses a string function crashes with the
STATUS+AF8-ACCESS+AF8-VIOLATION exception.

+ACM-include +ADw-string.h+AD4-
main()
+AHs-    char +ACo-abc +AD0- +ACI-a b c+ACIAOw-
    strcpy(abc, +ACI-hello+ACI-)+ADs-
    printf(+ACIAJQ-s+AFw-n+ACI-, abc)+ADs-
+AH0-

Can you please help me. I use Windows2000.

Thanks,

Amos


--
Unsubscribe info:      http://cygwin.com/ml/+ACM-unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]