| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Need to copy |
In a message dated 10-09-98, James Mckenzie said to Herbert Bushong about
"Need to copy"
Hi James,
JM>Ok. Let me state what happened again. I tried to use memcpy and I ended
JM>up with a SYS1808. Calling the FUNCTION with the same code
JM>compiled with Watcom C/C++ 10.0a results in the same error
JM>message. Something is wrong with either the structure or
JM>the method of accessing the function.
You don't tell us what exception code was in the SYS1808 message. I shall
assume 5, which is a GPF.
JM>The call is calc_offered_load (&ex);
JM>And the function line is
JM>void calc_offered_load (EXPT_DESC_PTR expt)
JM>{ Code in here }
You need to tell us what the code is, above, as this seems to be where your
memcpy() call resides.
JM>ex is of type EXPT_DESC
JM>And the structure ends with:
JM>} EXPT_DESC *EXPT_DESC_PTR
JM>which from what I remember makes expt a pointer to the variable ex.
The types will match, but what of the content?
The real problem is that one or both of the pointers used in the memcpy()
operation is invalid, probably NULL. Examine the code you use to initialize
the structure ex, in particular any embedded pointers that are involved in
the memcpy() operation.
Regards
Dave
___
* MR/2 2.25 #353 * Get OS/2 - the best Windows tip around!
--- Maximus/2 3.01
* Origin: DoNoR/2,Woking UK (44-1483-717904) (2:440/4)SEEN-BY: 396/1 632/0 371 633/210 260 267 270 371 635/506 728 639/252 670/218 @PATH: 440/4 255/1 251/25 396/1 633/260 635/506 728 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.