Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!caen!sol.ctr.columbia.edu!trantor.harris-atd.com!trantor!dsampson From: dsampson@x102a.harris-atd.com (sampson david 58163) Newsgroups: comp.lang.pascal Subject: Re: Problem with the WVSPrintF function Message-ID: Date: 6 Jun 91 13:37:02 GMT References: <91156.113452F0O@psuvm.psu.edu> Sender: news@trantor.harris-atd.com Organization: Harris Gov't Aerospace Systems Division Lines: 31 In-reply-to: oneel@heawk1.gsfc.nasa.gov's message of 5 Jun 91 18:54:28 GMT In article oneel@heawk1.gsfc.nasa.gov ( Bruce Oneel ) writes: [main msg deleted] But who knows, this could be all wrong. bruce Yes it is wrong Bruce. He cross posted into the ms.windows.programmer group where I put a msg explaining why it crashes. Simply put, when he redefined S to be a *char, he never allocated any space for the string. Borland sets S up as an array, which does the allocation for you. When he tried to copy a string to the pointer, it crashed. -- A new world record in the javalin throw / / / I ------------------------------------------------- David Sampson Harris Corporation dsampson@x102a.ess.harris.com Gov't Aerospace Systems Divison uunet!x102a!dsampson Melbourne, Florida -------------------------------------------------------------------------------