This is a multi-part message in MIME format. ------=_NextPart_000_000F_01C70704.CC49CA00 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hi all, I did a program, which reads a file and loads numbers into a 100 x 2 array. I've used dev-c++. Then I went to another computer with VC++ 6.0, and the variables in the main appeared to be corrupted. The array is a global variable. I've found that changing the position of FILE *pf stops the function to destroy all main variables contents. In dev c++ never happens. FILE *pf has to be the first declaration in a function? Since so many firewalls are stripping out zip files, I have sent the code as corrupt.zix. Save this file to disk and rename it corrupt.zip The code to test is inside. Thank you in advance. Dennis. ------=_NextPart_000_000F_01C70704.CC49CA00 Content-Type: application/octet-stream; name="corrupt.zix" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="corrupt.zix" UEsDBBQAAgAIALVJbTUSPPo86QMAAEIJAAAGAAAAbWFpbi5jpVZbb9pIFH4OEv/hxKusTKGx2Y2q 1bqsRAmpKqEkyqUvlIfBPobRmhl3Zghko/zY/Sd7zphLaEl6WYNke+Z835z7cb32i1RpMc8Q3lqX SX08/au+u1bIsV+s16LofaHHooCPmDptoF6bKysnCjOQykFPZz2D2bAdx6Phb6MEomhuac9pyGVR QCacgNzoGQiTTuUd2or0FNNCGOGkVrTCTDMhVXinZdZI6jW+wwDxnbB4Kpy2uzvv58Jk4utN/u1y 1WsP9RopDTtao3JoSHWEDsTLOGa1HVon1QTuhJFiXCBzQWlIPA8D6K8Rf8JRBp9U0NpyNBhuEcFN keDFHEErsKlBVJ7F3luHszC47N5e94NGclCptGOfJymNppNn5JYU8rlK2T2QiqKoAPt41mtpYasV WosiUHoBbBHIHKSFVBszLx1mtEsr4Ub5TiduPG8nIZV2W/Qn9aXlhMXC4osUG/jhXvx+w2gVcCld GHsheKzy5tWPXgwCOLs97324OIfL7lUXBv3+FbzrXvfhlP7dm4tr6MLHfu/m4qqSFmODUGi7yll6 4BwfU6yO3dLBPWf9kzeWTIWZCKjgqCjbBCWhM/If+EzpYNH8C3MrMgEl1RAWcNm7wQLLqVb3Feg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AhQAFAACAAgAe0FtNZM+MMYHAAAAZAAAAAwAAAAAAAAAAAAg AAAADQQAAENyZWRiYXNlLnR4dFBLAQIUABQAAgAIADY+ajXDVqPOlgAAAJABAAALAAAAAAAAAAAA IAAAAD4EAABDb2RiYXNlLnR4dFBLBQYAAAAAAwADAKcAAAD9BAAAAAA= ------=_NextPart_000_000F_01C70704.CC49CA00 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist ------=_NextPart_000_000F_01C70704.CC49CA00--