AnsweredAssumed Answered

vrf Importing DLL's, passing by reference

Question asked by VRFuser on Aug 19, 2004
> Ouch! I git confused.

It *is* confusing... it's not just you

> Can't be done cause c thinks its at the end of string

No - C (or any other language for that matter) will happily do whatever you
want it to, it's just that if you tell a copy function that a buffer is n
bytes long and it's actually 0 bytes long it will write into memory you
don't intend it to write into. At the very least, some other variable gets
overwritten. At worst, it writes beyond the process's memory space and that
results in a GPF. Er, Access Violation. That's that "0xC0000005" deal where
it says that process x tried to write to address y, "the memory could not be
written."
-SHAWN-


---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@agilent.com". 
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".

Outcomes