Multithreading experience?

Multithreading experience?

Anonymous
Not applicable
576 Views
3 Replies
Message 1 of 4

Multithreading experience?

Anonymous
Not applicable

Hello group,

 

Does anyone have experience with multithreaded apps using ObjectARX? I first tried OpenMP, but that crashed AutoCAD att first attempt.

 

Next try, PPL, seemed to work better ... until I get a memory-related crash in AcGeLine3d::getClosestPoint. According to the debugger, it's trying to allocate 3+MB memory for that operation?!?

 

I'm not too fond of those AcGe* classes anyway, since they hide data in pimpl-style structures, making debugging unnecessary hard. Inserting my own classes is a definate workaround.

 

This is an evaluation copy of AutoCAD 2013. BTW,

 

1) The appload commands creates it's dialog but crashes on first mouse click.

2) AutoCAD 2013 also fails to install on computers with Visual Studio11 preview installed.

 

Best regards,

Henrik Vallgren

0 Likes
577 Views
3 Replies
Replies (3)
Message 2 of 4

owenwengerd
Advisor
Advisor

Except for some parts of the display code, none of AutoCAD's core code supports multiple threads. Even if you test something that seems to work, there is no guarantee that it will work all the time. That doesn't mean your own code can't be multi-threaded, of course, but you can't safely call into AutoCAD from any but the main AutoCAD thread.

--
Owen Wengerd
ManuSoft
0 Likes
Message 3 of 4

Anonymous
Not applicable

Thanks for your reply Owen. Good thing I only use a few simple AcGe classes/methods that could easily be replaced.

0 Likes
Message 4 of 4

Anonymous
Not applicable

PPL seems to work if you stay away from AutoCAD related calls.

0 Likes