I’m getting an IRQL_NOT_LESS_OR_EQUAL on a call to RtlStringCbPrintfW. I’m
used to RtlStringCbPrintfW and I have debugged the BSOD dump file and I have
checked that each of the arguments are OK. I expected to find a wrong buffer
as in other times but they are ok !
RtlStringCbPrintfW calls to RtlStringVPrintfWorkerW that calls to mbtowc
that crash with an illegal access.
I guess this question needs more information to be answered properly, sorry.
“Julián de Navascués” wrote in message news:xxxxx@windbg… > Hello all, > > I’m getting an IRQL_NOT_LESS_OR_EQUAL on a call to RtlStringCbPrintfW. I’m > used to RtlStringCbPrintfW and I have debugged the BSOD dump file and I > have > checked that each of the arguments are OK. I expected to find a wrong > buffer > as in other times but they are ok ! > > RtlStringCbPrintfW calls to RtlStringVPrintfWorkerW that calls to mbtowc > that crash with an illegal access. > > I guess this question needs more information to be answered properly, > sorry. > > > Any ideas? > > Thanks in advance > > > Julian >
Well, you can use unicode, just not those rtl functions.
On Thu, Jun 12, 2008 at 5:35 PM, Jim Donelson wrote:
> Well, you can still use unicode, just not those routines. > > > > On Thu, Jun 12, 2008 at 1:20 PM, Don Burn wrote: > >> You are using Unicode at DISPATCH_LEVEL or higher, that will cause this >> fault. The wide routines have to be used at <= DISPATCH_LEVEL >> >> >> – >> Don Burn (MVP, Windows DDK) >> Windows 2k/XP/2k3 Filesystem and Driver Consulting >> Website: http://www.windrvr.com >> Blog: http://msmvps.com/blogs/WinDrvr >> Remove StopSpam to reply >> >> >> >> >> “Juli?n de Navascu?s” wrote in message >> news:xxxxx@windbg… >> > Hello all, >> > >> > I’m getting an IRQL_NOT_LESS_OR_EQUAL on a call to RtlStringCbPrintfW. >> I’m >> > used to RtlStringCbPrintfW and I have debugged the BSOD dump file and I >> > have >> > checked that each of the arguments are OK. I expected to find a wrong >> > buffer >> > as in other times but they are ok ! >> > >> > RtlStringCbPrintfW calls to RtlStringVPrintfWorkerW that calls to mbtowc >> > that crash with an illegal access. >> > >> > I guess this question needs more information to be answered properly, >> > sorry. >> > >> > >> > Any ideas? >> > >> > Thanks in advance >> > >> > >> > Julian >> > >> >> >> >> — >> You are currently subscribed to windbg as: xxxxx@jimdonelson.com >> To unsubscribe send a blank email to xxxxx@lists.osr.com >> > >
In general, any routine that can potentially need to do some Unicode
conversion is not safe to be used at dispatch or higher IRQL.
The reason for that requirement is that the “conversion tables” are
paged in on demand and if U R running @ dispatch, you cannot do that.
The bad thing about it is that you don’t know whether the tables are
paged in by someone else which may make your driver work most of the
time and not work on particular setups.
Best regards,
Bobby Marinov
Hello all,
I’m getting an IRQL_NOT_LESS_OR_EQUAL on a call to RtlStringCbPrintfW.
I’m used to RtlStringCbPrintfW and I have debugged the BSOD dump file
and I have checked that each of the arguments are OK. I expected to find
a wrong buffer as in other times but they are ok !
RtlStringCbPrintfW calls to RtlStringVPrintfWorkerW that calls to mbtowc
that crash with an illegal access.
I guess this question needs more information to be answered properly,
sorry.
On Mon, Jun 23, 2008 at 4:17 AM, Bobby Marinov wrote:
> In general, any routine that can potentially need to do some Unicode > conversion is not safe to be used at dispatch or higher IRQL. > The reason for that requirement is that the “conversion tables” are paged > in on demand and if U R running @ dispatch, you cannot do that. > The bad thing about it is that you don’t know whether the tables are paged > in by someone else which may make your driver work most of the time and not > work on particular setups. > Best regards, > Bobby Marinov > >> Hello all, >> >> I’m getting an IRQL_NOT_LESS_OR_EQUAL on a call to RtlStringCbPrintfW. I’m >> used to RtlStringCbPrintfW and I have debugged the BSOD dump file and I have >> checked that each of the arguments are OK. I expected to find a wrong buffer >> as in other times but they are ok ! >> >> RtlStringCbPrintfW calls to RtlStringVPrintfWorkerW that calls to mbtowc >> that crash with an illegal access. >> >> I guess this question needs more information to be answered properly, >> sorry. >> >> Any ideas? >> >> Thanks in advance >> >> >> Julian >> > > — > You are currently subscribed to windbg as: xxxxx@gmail.com > To unsubscribe send a blank email to xxxxx@lists.osr.com >