Hello!
Which functions should I use instead of
_xvalloc, _xvfree, _xvlock and _xvunlock?
http://clipper.ecofor.cl/C52G03B/ng1763f.html
Looking at hbapi.ch, I see that there exist
hb_xalloc and hb_xfree. Is it safe to use
them without locking?
Is there any difference between fixed
and virtual memory in Harbour:
http://clipper.ecofor.cl/C52G03B/ng16770.html
Thanks, Roman
_xvalloc _xvfree _xvlock _xvunlock
_xvalloc _xvfree _xvlock _xvunlock
© I'm not patented!
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Roman,
You just need to use:
hb_xgrab( ULONG ulSize ) --> void * pMem
and
hb_xfree( void * pMem ) --> void
In 32 bits there is no need to lock the memory at all.
If you are going to store a Harbour item into it, then you should call hb_gcGripGet( PHB_ITEM ) and hb_gcGripDrop( PHB_ITEM ) to avoid the garbage collector to destroy that item.
You just need to use:
hb_xgrab( ULONG ulSize ) --> void * pMem
and
hb_xfree( void * pMem ) --> void
In 32 bits there is no need to lock the memory at all.
If you are going to store a Harbour item into it, then you should call hb_gcGripGet( PHB_ITEM ) and hb_gcGripDrop( PHB_ITEM ) to avoid the garbage collector to destroy that item.
Thanks!
BTW, where can I download Harbour source?
Link to ftp://ftp.harbour-project.org/source/ha ... 45.src.zip
does not work...
Roman
BTW, where can I download Harbour source?
Link to ftp://ftp.harbour-project.org/source/ha ... 45.src.zip
does not work...
Roman
© I'm not patented!
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Thanks!
FYI, I was trying to download file
ftp://ftp.harbour-project.org/source/ha ... 45.src.zip
with Opera and Internet Explorer 6, but no success (timeout)
Eventually, I downloaded it with "FAR Manager":
http://farmanager.com/download.php?l=en
http://farmanager.com/updates.php?l=en
BTW, there are no file packages on
http://sourceforge.net/projects/harbour-project
Regards, Roman
FYI, I was trying to download file
ftp://ftp.harbour-project.org/source/ha ... 45.src.zip
with Opera and Internet Explorer 6, but no success (timeout)
Eventually, I downloaded it with "FAR Manager":
http://farmanager.com/download.php?l=en
http://farmanager.com/updates.php?l=en
BTW, there are no file packages on
http://sourceforge.net/projects/harbour-project
Regards, Roman
© I'm not patented!
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Roman,
> BTW, there are no file packages on
> http://sourceforge.net/projects/harbour-project
Go to the CVS source repository.
> BTW, there are no file packages on
> http://sourceforge.net/projects/harbour-project
Go to the CVS source repository.
Hello!
http://cvs.sourceforge.net/viewcvs.py/h ... t/harbour/
BTW, I've found two small bugs in alert & achoice so I've
subscribed to the harbour mailing list
http://lists.harbour-project.org/piperm ... 01075.html
and posted corrections to the list. I hope that
someone will incorporate them into CVS.
Regards, Roman
Oh, I see!Go to the CVS source repository.
http://cvs.sourceforge.net/viewcvs.py/h ... t/harbour/
BTW, I've found two small bugs in alert & achoice so I've
subscribed to the harbour mailing list
http://lists.harbour-project.org/piperm ... 01075.html
and posted corrections to the list. I hope that
someone will incorporate them into CVS.
Regards, Roman
© I'm not patented!
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact: