🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.ibm.pc.programmer
1 messages
1 total messages Started by hamish Tue, 14 May 1991 01:42
memcpy give exception 13
#1197
Author: 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)               |
==============================================================================
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads