🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.programmer
Article #1197

memcpy give exception 13

#1197
From: hamish
Date: Tue, 14 May 1991 01:42
21 lines
1680 bytes
I have a problem with Borland Turbo C++ version 1.0 When I try to do a memcpy()
with the destination declared in the local .c file and the source declared
external, turbo debugger will tell me there is an exception 13 (something about
accessing data outside the segment). This is in Large model. I know that the 2
memory blocks will be in a different segment, but I thought that memcpy was
good enough to do it. Is there some other routine provided? The manual says
nothing about being limited to copying within the same segment.

Please use email to reply, I don't usually read this group. Many thanks in
advance.

-- 
==============================================================================
|  Hamish Marson   <h.marson@waikato.ac.nz>                                    |
|  Computer Support Person,  Computer Science Department                     | 
|  University of Waikato                                                     |
|Disclaimer:  Anything said in this message is the personal opinion of the   |
|             finger hitting the keyboard & doesn't represent my employers   |
|             opinion in any way. (ie we probably don't agree)               |
==============================================================================
Technical Details
Message-ID: <1991May14.134256.3687@waikato.ac.nz>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!spool.mu.edu!munnari.oz.au!comp.vuw.ac.nz!waikato.ac.nz!hamish

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!spool.mu.edu!munnari.oz.au!comp.vuw.ac.nz!waikato.ac.nz!hamish
From: hamish@waikato.ac.nz
Newsgroups: comp.sys.ibm.pc.programmer
Subject: memcpy give exception 13
Message-ID: <1991May14.134256.3687@waikato.ac.nz>
Date: 14 May 91 01:42:56 GMT
Organization: University of Waikato, Hamilton, New Zealand
Lines: 21