PowerBasic Memory Leak Problem

PowerBasic (www.powerbasic.com) is a very easy and convenient way to build complex indicators for use in the NeuroShell Trader. If your indicator is too complicated for the Indicator Wizard (e.g., it requires looping or flag setting and testing), just a little coding in the simple BASIC language is probably all you need.

However, in the PB/DLL compilers 6.1 and below, there is a memory leak which could cause optimization in the NeuroShell Trader Professional and DayTrader Professional to get an out of memory error. This is because during optimization, the DLL could be loaded and released thousands of times, with a little memory loss each time.

PowerBasic has promised to fix this problem in future releases. However, in the mean time they have provided a simple workaround which you should use if you are affected by the problem. The following link tells you how to compile the fix into your PowerBasic DLL:

http://www.powerbasic.com/support/forums/Forum2/HTML/000036.html

We think it is a tribute to the power of PowerBasic that they are actually able to fix compiler problems at the source code level!

We have encountered other instances of DLLs which do not release memory when they are unloaded. Therefore, in future releases of NeuroShell beyond 3.5, we may stop unloading DLLs after use. However, we will provide the option of unloading them as we do now. That option is most convenient when you are compiling and testing, because if the DLL stays in memory, you would have to unload NeuroShell to replace the DLL.

Was this article helpful?

Related Articles