• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Allegro X PCB Editor
  3. Weird problem , running same code twice make allegro freeze...

Stats

  • Replies 1
  • Subscribers 159
  • Views 640
  • Members are here 0
More Content

Weird problem , running same code twice make allegro freeze/crush

stillfish
stillfish over 9 years ago
I have digged for a while but still have no idea why.
Following code can reproduce the problem,
the net name "M_A_DQ<0>" could be changed to any valid net.
 


r_net = axlDBFindByName('net "M_A_DQ<0>")
l_children = foreach(mapcan x r_net->branches x->children)
l_path = setof(x l_children equal(x->objType "path"))
l_segments = foreach(mapcan x l_path x->segments)    ; works perfect when first run
l_segments = foreach(mapcan x l_path x->segments)    ; make my allegro crush......
  • Sign in to reply
  • Cancel
  • stillfish
    stillfish over 9 years ago

    Well, i guess i know why.

    foreach + map function use destructive modification function nconc to concatenate list.

    therefore all other path's segments are append to first path->segments in database...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Cadence Guidelines

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information