View unanswered posts | View active topics It is currently Thu Sep 09, 2010 4:42 am



Post new topic Reply to topic  [ 2 posts ] 
run-time check failed in function p_bayesTrain nl-math.c 
Author Message

Joined: Wed Mar 03, 2010 1:03 pm
Posts: 1
Post run-time check failed in function p_bayesTrain nl-math.c
Hi,
I am porting newLISP to MS Visual C++ using the Windows 7 SDK.
In the p_bayesTrain function total should be allocated as an array:

total = alloca(maxIdx * sizeof(int));

Thanks,
pahihu


Wed Mar 03, 2010 1:08 pm
Profile E-mail

Joined: Thu Sep 26, 2002 4:45 pm
Posts: 4159
Location: Boca Raton, Florida
Post Re: run-time check failed in function p_bayesTrain nl-math.c
Thanks, I uploaded a corrected file here:

http://www.newlisp.org/downloads/develo ... /nl-math.c

strangely this never has caused a problem, probably because the stack allocated memory grows into unused areas.

Make sure, you also get the other updated files in the development/latest/ directory for your build.


Wed Mar 03, 2010 2:50 pm
Profile E-mail WWW
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Forum style by Vjacheslav Trushkin for Free Forums/DivisionCore.