Hello,

First and foremost: this is not correct list, use amibroker-dll list instead.

DLLs are for advanced programmers, if you are having problems with matching 
braces then you should
not be using DLLs at all.
AFL is all you need, unless you are professional programmer and you know 
precisely what you are doing.

As to your memory - in DLLs you should be using gSita.AllocArrayResult() 
instead. By using so,
you don't need to worry about deallocation because AB will do that for you.

Using malloc/free is very fast route to memory fragmentation, not to mention 
that MinGW probably uses
its own allocator that you can't use to return arrays to AB.

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "bertbulaba" <[email protected]>
To: <[email protected]>
Sent: Thursday, May 07, 2009 5:37 PM
Subject: [amibroker] DLL Problems


>I am struggeling with a DLL I have of some resource hogging indicators. The 
>problems are:
>
> 1. Eats up my internal memory
> The indicator plots perfectly, but when I use it in an optimization within 30 
> min all my merory is gone. I have triple checked my 
> malloc/free declarations and they are all fine. Besides this happens with 
> indicators not even using malloc/free.
>
> 2. Plots, NOT!
> When I press Apply the indicator plots just as it should, then when I scroll 
> the chart, it disappears and claims an empty array.
>
> I use Code::Blocks with MinGW. Perhaps it has something to do with a warning 
> I cannot get rid of: "warning: missing braces around 
> initializer". The initializer refered to is the FunctionTag gFunctionTable[] 
> = {}. The braces are there, of course.
>
> Desperately seeking help!
>
>
>
> ------------------------------------
>
> **** IMPORTANT PLEASE READ ****
> This group is for the discussion between users only.
> This is *NOT* technical support channel.
>
> TO GET TECHNICAL SUPPORT send an e-mail directly to
> SUPPORT {at} amibroker.com
>
> TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
> http://www.amibroker.com/feedback/
> (submissions sent via other channels won't be considered)
>
> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
>
> Yahoo! Groups Links
>
>
>

Reply via email to