Results 1 to 2 of 2

Thread: Why is ActiveX EXE slower than ActiveX DLL?

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2001
    Location
    Dublin,Ireland
    Posts
    1

    Why is ActiveX EXE slower than ActiveX DLL?

    Hi,
    I'm coverting an ActiveX DLL to an ActiveX EXE and the EXE is much slower especially with data transfer between 2 DAO recordsets.Any ideas?

  2. #2
    New Member
    Join Date
    Jul 2001
    Posts
    4
    Hi,

    When moving data between two EXE's, VB is having to Marshall the data across the process boundries. These boundries exist because each EXE runs in its own process (protected memory). When you have an EXE load up a DLL, the DLL is loaded into the same process as the EXE, so there are now bounderies (barring threads) so there is very little overhead in transfering data to and from the EXE and DLL. This Marshalling is a huge performance hit in transfering data.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width