ATL dll failing to load in VB
  Home FAQ Contact Sign in
microsoft.public.vc.atl only
 
Advanced search
POPULAR GROUPS

more...

microsoft.public.vc.atl Profile…
 Up
ATL dll failing to load in VB         


Author: dinmith
Date: Jun 11, 2008 23:22

HI group,

i am using a lib for directshow which can instantiate another
directshow wrapper dll to use multiple cameras.
All goes fine if i use this lib inside a win32 project and create a
object of the class to work.

I made a ATL dll which uses this lib so that i can use this in vb as
well.
Whenever i load this new dll inside my vb client it never loads - it
gives me the errors like - "memory access error".

i tried to debug this dll project as well - but as soon as my vs2005
client starts it also shows the same "memory access error"

please help
4 Comments
Re: ATL dll failing to load in VB         


Author: Brian Muth
Date: Jun 12, 2008 10:16

gmail.com> wrote in message news:ab682348-703c-4413-b5e0-d57664613392@a32g2000prf.googlegroups.com...
> HI group,
>
> i am using a lib for directshow which can instantiate another
> directshow wrapper dll to use multiple cameras.
> All goes fine if i use this lib inside a win32 project and create a
> object of the class to work.
>
> I made a ATL dll which uses this lib so that i can use this in vb as
> well.
> Whenever i load this new dll inside my vb client it never loads - it
> gives me the errors like - "memory access error".
>
> i tried to debug this dll project as well - but as soon as my vs2005
> client starts it also shows the same "memory access error"
>

Is your ATL dll debugged? Have you tested it with any other client code? What is your interface definition?
no comments
Re: ATL dll failing to load in VB         


Author: pulkit.gaur
Date: Jun 13, 2008 04:17

Hi Brian ..

Well .. my dll is in debug mode

Copied the code of the lib inside my new dll.

Now the problems boils down to the call of my wrapper dll.

i get exception saying - Access violation reading location 0x00000000
in the
dllmain() of my wrapper dll whenever it gets called.

here is the code frag ..

=====================================================
struct cInfo
{
int nCamN;
IBaseFilter *pCap;
IBaseFilter *pSG;
CoSGCB *pSGCB;
dsCallBack *pCB;
CamInfo () : pCap(NULL), pSG(NULL), pSGCB(NULL), pCB(NULL) {};
};

static __declspec( thread ) vector *pinfo;
Show full article (0.94Kb)
no comments
Re: ATL dll failing to load in VB         


Author: dinmith
Date: Jun 13, 2008 08:00

Hi Brian ..

Well .. my dll is in debug mode

Copied the code of the lib inside my new dll.

Now the problems boils down to the call of my wrapper dll.

i get exception saying - Access violation reading location 0x00000000
in the
dllmain() of my wrapper dll whenever it gets called.

here is the code frag ..

=====================================================
struct cInfo
{
int nCamN;
IBaseFilter *pCap;
IBaseFilter *pSG;
CoSGCB *pSGCB;
dsCallBack *pCB;
CamInfo () : pCap(NULL), pSG(NULL), pSGCB(NULL), pCB(NULL) {};

};

static __declspec( thread ) vector *pinfo;
Show full article (0.94Kb)
no comments
Re: ATL dll failing to load in VB         


Author: Brian Muth
Date: Jun 13, 2008 09:02

gmail.com> wrote in message news:e6b09fa3-821a-4bf7-b65b-544968011c5a@a1g2000hsb.googlegroups.com...
> Hi Brian ..
>
>
> Well .. my dll is in debug mode
>
> Copied the code of the lib inside my new dll.
>
> Now the problems boils down to the call of my wrapper dll.
>
> i get exception saying - Access violation reading location 0x00000000
> in the
> dllmain() of my wrapper dll whenever it gets called.
>
> here is the code frag ..
>
> =====================================================
> struct cInfo
> {
> int nCamN; ...
Show full article (1.75Kb)
no comments