Message 1 of 5
Do we have to start transaction and dispose it in every subroutine?
Not applicable
06-01-2014
02:22 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
Why I am asking this is; I was declaring module base Public variables like Acad, doc, mspace and assiging them once in a sub and using through whole program. But what I see in .net example codes is always start transaction and dispose. Lets say I want to get polyline vertices from a sub or something else. Which is better to start transaction and dispose evertime the sub is called. Or like I said at the beginnig to assign transaction or document or database to public variables and use them throughout the program.
What precautions sholud we take to prevent crash? Somtimes when transaction is started and an error occurs ,autocad crashes. I am not so familiar with .net.
Thanks,