Multi-Thread and GM_ExportRasterEx / GM_ExportElevationEx for self-gridding

codemousecodemouse Global Mapper UserPosts: 186Trusted User
edited August 2013 in SDK
Mike,

I've seen a bunch of old posts on multi-threading - any 2013 status on multi-threading? Particularly for self-gridding operations with large amounts of exports of rasters, vectors, or elevation?

I've basically already tried to abstract this in c# and once I try anything about 1 thing at a time, GM cannot handle the image export. I figured it's still not in there, but just wanted to check. Thanks!
Parallel.ForEach(requests, new ParallelOptions { MaxDegreeOfParallelism = 1 }, request =>
{
     //run GM_ExportRasterEx here
}

I'll get a JPEG export error on every other thread. I assume it has to do with access to shared libraries (such as lti_dsdk.dll), etc.

Brian

Comments

Sign In or Register to comment.