Skip to main content
12 events
when toggle format what by license comment
Feb 3, 2022 at 9:32 answer added Ivan Silkin timeline score: 0
Apr 30, 2013 at 9:52 answer added gimpy timeline score: 0
Jan 17, 2012 at 9:37 answer added Hugh timeline score: 3
Nov 14, 2010 at 16:40 history edited Dan Thomas CC BY-SA 2.5
added 307 characters in body
Nov 14, 2010 at 16:35 answer added Dan Thomas timeline score: 29
Nov 14, 2010 at 14:28 comment added Dan Thomas Jens - Thanks for the information. I wondered if I was doing this right. -Dan
Nov 12, 2010 at 14:12 answer added vcldeveloper timeline score: 5
Nov 12, 2010 at 12:13 comment added Jeroen Wiert Pluimers You need to be very careful here. Delphi strings are reference counted; the refcount of s in DelphiFunction will be zero at the end of the function, so the memory that is used by s will be returned to the memory allocator, and potentially be used (and overwritten) by something else after DelphiFunction returns before the C# caller can fetch the content. When that happens, all sorts of havoc will occur. In a multi-threaded situation (especially on multi-core systems) that can be really soon.
Nov 12, 2010 at 10:36 comment added Jens Mühlenhoff You should rephrase your question to say "What is the proper way to use a Delphi DLL from a C# .NET application?" and then answer yourself with the rest of your post. See stackoverflow.com/faq (You may answer your own question) and here: meta.stackexchange.com/questions/12513/…
Nov 12, 2010 at 10:05 comment added Saeed Amiri I'm not familiar with delphi but know if is possible to convert it to COM its easy to use it in c#, I made a little search and find some resource which is about delphi and COM relation here: delphi.about.com/library/weekly/aa122804a.htm
Nov 12, 2010 at 9:57 comment added Jesper Fyhr Knudsen Not really a question, but +1 :).
Nov 12, 2010 at 9:49 history asked Dan Thomas CC BY-SA 2.5