Page 3 of 3 FirstFirst 123
Results 21 to 23 of 23

Thread: Official Delphi SDK Download

  1. #21
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,817
    Rep Power
    10
    Just to let you know I didn't forget about this thread.

    I really would like to have an SDK for FreePascal but in all my tests, thinBasic BSTR strings passed as WideStrings in FreePascal retain their memory allocated and never release it. WideStrings a re managed by FreePascal heap manager and they are counted strings not really BSTR strings.

    I'm still testing in order to find a solution.

    I have a possible solution that is to use OLE32 native Sys* functions ( https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx ) in FreePascal source code but this would require a lot of work for the programmer developing thinBasic module using FreePascal. Maybe I will wrap some helper functions.
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  2. #22
    thinBasic MVPs Michael Hartlef's Avatar
    Join Date
    Sep 2006
    Location
    Germany
    Age
    58
    Posts
    3,299
    Rep Power
    348
    If Helper functions do the trick, then it is at least an alternative!

  3. #23
    thinBasic MVPs
    Join Date
    Oct 2012
    Location
    Germany
    Age
    55
    Posts
    1,554
    Rep Power
    174
    Quote Originally Posted by ErosOlmi View Post
    ... thinBasic BSTR strings passed as WideStrings in FreePascal retain their memory allocated and never release it. WideStrings a re managed by FreePascal heap manager and they are counted strings not really BSTR strings...

    so what if you take a stringpointer "sPtr" of freePascal-widestring and do this from a .dll (thinCore?):
    Heap_Free( sPtr )
    
    I think there are missing some Forum-sections as beta-testing and support

Page 3 of 3 FirstFirst 123

Similar Threads

  1. Delphi SDK Download
    By Petr Schreiber in forum Turbo Delphi language SDK development
    Replies: 1
    Last Post: 15-02-2006, 11:37

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •