[comp.sys.ibm.pc.programmer] memcpy give exception 13

hamish@waikato.ac.nz (05/14/91)

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)               |
==============================================================================