Hi all
I've written a smartcard driver and a CSP for windows ce using EVC4 , now it
is the time to test the CSP.

I've got a debug emulator image of windows CE so i can test the csp but the
problem is when i try

tu use my driver the debug console say:

PID:43fbcd52 TID:c3d8bcd2 0x83d73930: Coredll: DEBUGCHK failed in file
d:\mckendric\private\winceos\coreos\core\dll\.\cscode.c at line 90

pressing F5 the execution cotinue, this DEBUGCHK bring me to

#elif defined(x86)

_inline void DebugBreak() {
__asm int 3
}

Please can some one tell me ho to disable this debug check? i need to run
the emulator in debug mode
to let the system load my csp dll

regards
Fabio

Re: (URGENT) Disable "Coredll: DEBUGCHK" platform builder 4.2 by Steve

Steve
Mon Dec 13 10:46:14 CST 2004

That debug check is telling you something VERY important! If you have the
shared source code installed you can see where that check is located and why
it's important. You will see that you are entering a critical section that
is NOT properly initialized or is completely bogus.

--
Steve Maillet
EmbeddedFusion
www.EmbeddedFusion.com
smaillet at EmbeddedFusion dot com



Re: (URGENT) Disable "Coredll: DEBUGCHK" platform builder 4.2 by Fabio

Fabio
Mon Dec 13 11:39:21 CST 2004


"Steve Maillet (eMVP)" <nospam1@EntelechyConsulting.com> ha scritto nel
messaggio news:ui$nGNT4EHA.4008@TK2MSFTNGP15.phx.gbl...
> That debug check is telling you something VERY important! If you have the
> shared source code installed you can see where that check is located and
> why it's important. You will see that you are entering a critical section
> that is NOT properly initialized or is completely bogus.
>

thank you Very mutch for the answer...well i don't have the shared souce
code installed
and i dunno where to take it.
Could u give me some more precise indications plese? So i could correct the
code.

Thanks Again
Fabio



Re: (URGENT) Disable "Coredll: DEBUGCHK" platform builder 4.2 by Fabio

Fabio
Mon Dec 13 11:56:50 CST 2004


"Fabio" <fabpet @ gmail.it (elimina gli spazi)> ha scritto nel messaggio
news:cpkjuq$63q$1@news.unina.it...
>
> "Steve Maillet (eMVP)" <nospam1@EntelechyConsulting.com> ha scritto nel
> messaggio news:ui$nGNT4EHA.4008@TK2MSFTNGP15.phx.gbl...
>> That debug check is telling you something VERY important! If you have the
>> shared source code installed you can see where that check is located and
>> why it's important. You will see that you are entering a critical section
>> that is NOT properly initialized or is completely bogus.
>>
>
> thank you Very mutch for the answer...well i don't have the shared souce
> code installed
> and i dunno where to take it.
> Could u give me some more precise indications plese? So i could correct
> the code.

Great, only now i figure out my driver have an incorrect EntryPoint:
"DllEntry" and not "DllMain"....

incredible....so long i've worked on it and never i figure out this....in
the entrypoint there is the

InitializeCriticalSection(&g_DriverCritSect); witch was never execute...now
i make a new image and let u know..

thanks again
Fabio