|
From: Hossein H. <ult...@em...> - 2003-07-15 19:25:11
|
Daniel,
> I found another
>
> (from memory) it was:
> void* operator delete(_segment Seg, void* _based(void*) BasePtr, void*
> Memory)
>
> the variable names are my own, but I think the types are right. This is for
> segments.
>
I really do not remeber if that's mentioned in the Standard, nor am I
in the mood of finding such a fine in it (needle in a haystack).
> My problem needed a call to _ffree, but you cannot access the C runtime
> library from another segment except the DEFAULT segment. So from your
> segment you call your operator delete which calls your stub function (a
> function in the DEFAULT segment) that then calls _ffree.
>
> #include "SomeHeader.h" // Default seg header with MyDelete()
>
> #pragma codeseg("MYSEG_SEG") // something like this
>
> void operator delete (params here)
> {
> MyDelete(params); // Calls MyDelete which calls _ffree()
> }
>
> void SomeFunc()
> {
> // Create obj
> delete obj;
> }
I'm not sure if this is Standard-compliant. It more seems to me to be
Implementation-Specific, isn't it? I rememeber reading interesting
points in Help documentations of BCB6. Maybe not a bad idea to try the
Help documentation of your own implementation.
I will return on it as I got in the mood. I will check BCB6 for you,
and if I had enough time, I will look it up in Standard as well!
Regards,
--Hossein
--
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup
CareerBuilder.com has over 400,000 jobs. Be smarter about your job search
http://corp.mail.com/careers
|