Issue 153 in soar: Invalid Heap Exception Inside Semantic Memory

0 views
Skip to first unread message

so...@googlecode.com

unread,
Feb 18, 2014, 2:26:30 PM2/18/14
to soar-...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 153 by alex.nic...@soartech.com: Invalid Heap Exception Inside
Semantic Memory
http://code.google.com/p/soar/issues/detail?id=153

Semantic memory contains:

delete weighted_pq.top();
weighted_pq.pop();

on lines 2312-2314. On occasion, the memory used by the top of the
priority queue can be altered before the the pop command is executed, which
causes the queue to throw an invalid heap exception. The easy fix is to
grab the pointer, pop the queue, and then delete the pointer:

smem_prioritized_weighted_cue::value_type top = weighted_pq.top();
weighted_pq.pop();
delete top;

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages