[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: Problem removing OptimizerSetEngine("cmae");


  • Date: Tue, 02 Feb 2010 10:32:22 -0000
  • From: "vlanschot" <vlanschot@xxxxxxxxx>
  • Subject: [amibroker] Re: Problem removing OptimizerSetEngine("cmae");

PureBytes Links

Trading Reference Links

James,

I had a similar "cmae" crash (although it may have had a different cause). One of the things I changed is that I made sure the optimizer could not somehow be activated outside of an optimization run, i.e. I used my code also to plot/explore/etc. So I use the following code which, in my case, seems to have stopped the crash from happening:

WhichOptimizer = ParamList("Which Optimizer?", ",spso,trib,cmae");// Leave the comma before spso !!!

your code

if (WhichOptimizer != "") OptimizerSetEngine(WhichOptimizer);

Obviously you can further "protect" this by stating something like

if (Status("action") == 5) if (WhichOptimizer != "") OptimizerSetEngine(WhichOptimizer);

It may also help in your case.

PS

--- In amibroker@xxxxxxxxxxxxxxx, James <jamesmemphis@xxx> wrote:
>
> Thank you for the information. I am not as computer literate as most on here and I thought I was losing my mind.
> 
> Best regards,
> James
> 
> 
> 
> 
> ________________________________
> From: Tomasz Janeczko <groups@xxx>
> To: amibroker@xxxxxxxxxxxxxxx
> Sent: Mon, February 1, 2010 12:44:49 PM
> Subject: Re: [amibroker] Problem removing OptimizerSetEngine("cmae");
> 
>   
> Hello,
> 
> No it is not memory error. This is some intermittient bug in CMAE. You would need to close AmiBroker and move CMAE.DLL outside Plugins directory when it happens. 
> 
> Best regards,
> Tomasz Janeczko
> amibroker.com
> 
> On 2010-02-01 17:13, James wrote: 
> 
> >
> >
> >Ton,
> >
> >1. 1GB of Ram
> >2. 61 optimization steps, the total number for exahustive optimization
> >3. It was happening almost immediately after hitting the optimize button, but just now I tried running one of the files that was making it crash and cannot get it to crash. Even stranger the first time I ran the file today it took 5.5 minutes to run the 61 steps, and now I just ran it in 42 seconds. I don't understand it.
> >
> >It must have been a memory problem on my end, but this occurred on Friday, Saturday and Sunday, but it is not happening now. Plus the exception report included the line below regarding module CMAE.dll, but this was when I had removed the CMAE line and was attempting exhaustive optimization.
> >
> >> AmiBroker version 5.29.6.5096
> >>  ( cooltool.dll 5.28.0,  mfc42.dll 6.2.4131,  msvcrt.dll 7.0.2600 )
> >> Microsoft Windows XP version 5.1 (Build 2600)
> >> Service Pack 3.0
> >> Common Controls: 6.0
> >> Unhandled exception
> >> Type: CSysException
> >> Code: c0000005
> >> Description: ACCESS VIOLATION
> >> Address: 69015ADB
> >> Detailed exception information:
> >> Broker.exe caused an EXCEPTION_ACCESS_ VIOLATION in module CMAE.dll at 001B:69015ADB
> >> Call Stack:
> >> 001B:69015ADB CMAE.dll
> >
> >
> >
> >From: Ton Sieverding <ton.sieverding@ scarlet.be>
> >To: amibroker@xxxxxxxxx ps.com
> >Sent: Mon, February 1, 2010 8:37:37 AM
> >Subject: Re: [amibroker] Problem removing OptimizerSetEngine( "cmae");
> >
> >  
> > 
> >Hi James, 
> >
> >Can you please let me know the following. Just to avoid a wrong conclusion ... 
> >
> >1. Internal memory on your system ? GBytes ? 
> >2. Number of steps with exhaustive optimization ? Is 60 steps the total number or the number for cmae ? 
> >3. Does this happen immed after hitting the OPTIMIZE button or after several steps ? So after 60 steps ? 
> >
> >Regards, Ton. 
> >
> >
> >
> >
> >----- Original Message ----- 
> >>From: James 
> >>To: amibroker@xxxxxxxxx ps.com 
> >>Sent: Monday, February 01, 2010 2:57 PM
> >>Subject: Re: [amibroker] Problem removing OptimizerSetEngine( "cmae");
> >>
> >>  
> >>There are only 60 steps and it crashes on the second one. I have been able to replicate it. Any code that I have this line:
> >>OptimizerSetEngine ( "cmae" ); will crash after I change it to: // OptimizerSetEngine( "cmae"); 
> >>If I delete the line altogether, it still crashes. 
> >>
> >>
> >>
> >>From: Steve Dugas <sjdugas@xxxxxxxx net>
> >>To: amibroker@xxxxxxxxx ps.com
> >>Sent: Sun, January 31, 2010 6:42:42 PM
> >>Subject: Re: [amibroker] Problem removing OptimizerSetEngine( "cmae");
> >>
> >>  
> >>Hi - Exhaustive optimizer can crash if the opt has too many steps and it eventually runs out of memory.  Does the crash happen well into the opt? 
> >>
> >>Steve 
> >>
> >>----- Original Message ----- 
> >>>From: James 
> >>>To: amibroker@xxxxxxxxx ps.com 
> >>>Sent: Sunday, January 31, 2010 6:26 PM
> >>>Subject: [amibroker] Problem removing OptimizerSetEngine( "cmae");
> >>>
> >>>
> >>>Has anyone else had a problem removing this line from their code:
> >>> 
> >>>OptimizerSetEngine ( "cmae" ); 
> >>> 
> >>>and then trying to run an exhaustive optimization? Every file of code I remove this from, I then can an exception error crash when I try to optimize. I am running XP pro and version 5.29.6.
> >>> 
> >>>James
> >>>
> >>
> >
> >
> >
>




------------------------------------

**** 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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    amibroker-digest@xxxxxxxxxxxxxxx 
    amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/