Hi,

Apply this patch in olecore.c and let me know it solves this issue:

but there is a question if we want to still tolerate code with
C pointer <-> HVM number item conversions and keep workarounds
for it. I'm leaving the decision to Mindaugas.

Usage of numbers instead of pointers is one of the things I want to eliminate.

I understand this numeric pointers approach (and used myself in the past), but this make Harbour programmer a little C or ASM programmer. All mistakes becomes GPF or some mystic errors (later you found, it was just a memory corruption).

Numeric to pointer conversion does not fit current OLE implementation after collectible pointers was implemented. Just numbers does not have counter. Some things start to be different, for example, we do not need to do AddRef() in Harbour code on cloning object, because our collectible pointer does the job. So, some existing hacky numeric pointer code does not fit.


I have an idea to make some compatibility layer. Some kind of:
CLASS TOleAuto FROM HB_OleAuto, implement compatibility :New() constructor for it, add :hObj for compatibility. But do not know all FWH, etc code and how hacky it is.


Regards,
Mindaugas


P.S. some messages does not reach newsgroup. I replay to individual persons too.


_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to