Using a Multi-threaded DLL

ToddC

New Member
I'm writing a DLL in C# for Openedge (Webspeed) to use and I'm wondering if I can write my DLL to be multi-threaded or not. I know Openedge (at least 11.7) does not support multi-threading .NET calls but if I have a startup routine in my DLL that then spins off multi-threading to load some information into the DLL memory while returning control back to Openedge, is that allowed? If that makes any sense. Or must I stay away from all multi-threading completely in the DLL?
 

Osborne

Active Member
I have never used multi-threaded DLLs so cannot answer direct, but a couple of comments from others on linking to multi-threaded DLLs were:

If you do not need the response of the method, you can create a wrapper method in C#.

The ABL with GUI for .NET can only handle events from the foreground thread. So you'll have to write a little .NET Assembly yourself (C#, VB.NET) and handle that event there and raise an event to the foreground thread that you can handle in the ABL.

You may find this useful:
 
Top