Re: getting RpcExceptionCode 5 with RPC code
now when i try debug at the RpcExcept function it displays a messages saying there is no source code available for the current location
but this only comes up if i put the breakpoint at the RpcExcept. it i put it before this function that that message doesn't display
Re: getting RpcExceptionCode 5 with RPC code
Quote:
Originally Posted by
beginner91
now when i try debug at the RpcExcept function it displays a messages saying there is no source code available for the current location
What does call stack window show you?
Re: getting RpcExceptionCode 5 with RPC code
ok here is what is in callstack when the breakpoint is on the line with RPCExpect (1)
> DoRPC_Client.exe!@_EH4_CallFilterFunc@8() + 0x12 bytes Asm
DoRPC_Client.exe!_except_handler4(_EXCEPTION_RECORD * ExceptionRecord=0x0012f85c, _EXCEPTION_REGISTRATION_RECORD * EstablisherFrame=0x0012ff24, _CONTEXT * ContextRecord=0x0012f870, void * DispatcherContext=0x0012f830) + 0xb9 bytes C
ntdll.dll!770f7199()
[Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll]
ntdll.dll!770f716b()
ntdll.dll!770cf98f()
ntdll.dll!770f6ff7()
KernelBase.dll!74bc812f()
KernelBase.dll!74bc812f()
KernelBase.dll!74bc812f()
rpcrt4.dll!74cbbf55()
rpcrt4.dll!74cae106()
rpcrt4.dll!74cae0d1()
rpcrt4.dll!74ca61eb()
DoRPC_Client.exe!Show(const unsigned char * szMsg=0x0012fee4) Line 101 + 0x16 bytes C
DoRPC_Client.exe!main() Line 44 + 0x9 bytes C
DoRPC_Client.exe!__tmainCRTStartup() Line 266 + 0x19 bytes C
DoRPC_Client.exe!mainCRTStartup() Line 182 C
kernel32.dll!74d8ed6c()
ntdll.dll!7711377b()
ntdll.dll!7711374e()
Re: getting RpcExceptionCode 5 with RPC code
Quote:
Originally Posted by
beginner91
ok here is what is in callstack when the breakpoint is on the line with RPCExpect (1)
>
Code:
DoRPC_Client.exe!@_EH4_CallFilterFunc@8() + 0x12 bytes Asm
DoRPC_Client.exe!_except_handler4(_EXCEPTION_RECORD * ExceptionRecord=0x0012f85c, _EXCEPTION_REGISTRATION_RECORD * EstablisherFrame=0x0012ff24, _CONTEXT * ContextRecord=0x0012f870, void * DispatcherContext=0x0012f830) + 0xb9 bytes C
ntdll.dll!770f7199()
[Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll]
ntdll.dll!770f716b()
ntdll.dll!770cf98f()
ntdll.dll!770f6ff7()
KernelBase.dll!74bc812f()
KernelBase.dll!74bc812f()
KernelBase.dll!74bc812f()
rpcrt4.dll!74cbbf55()
rpcrt4.dll!74cae106()
rpcrt4.dll!74cae0d1()
rpcrt4.dll!74ca61eb()
DoRPC_Client.exe!Show(const unsigned char * szMsg=0x0012fee4) Line 101 + 0x16 bytes C
DoRPC_Client.exe!main() Line 44 + 0x9 bytes C
DoRPC_Client.exe!__tmainCRTStartup() Line 266 + 0x19 bytes C
DoRPC_Client.exe!mainCRTStartup() Line 182 C
kernel32.dll!74d8ed6c()
ntdll.dll!7711377b()
ntdll.dll!7711374e()
Well, now it is clear that the last statementof your code that was tried to execute was
Code:
DoRPC_Client.exe!Show(const unsigned char * szMsg=0x0012fee4) Line 101 + 0x16 bytes
- in your Show() function.
So why don't you want to set the breakpoint at the beginning of this function then debug it step-by-step (F10) to exactly know what statement/call causes the exception?
1 Attachment(s)
Re: getting RpcExceptionCode 5 with RPC code
ok i attached a screen shot of the error message that came up:
Attachment 31287
also heres what was in the callstack when this message came up
> DoRPC_Client.exe!main() Line 46 + 0x13 bytes C
DoRPC_Client.exe!__tmainCRTStartup() Line 266 + 0x19 bytes C
DoRPC_Client.exe!mainCRTStartup() Line 182 C
kernel32.dll!74d8ed6c()
[Frames below may be incorrect and/or missing, no symbols loaded for kernel32.dll]
ntdll.dll!7711377b()
ntdll.dll!7711374e()
Re: getting RpcExceptionCode 5 with RPC code
Then rebuild your project before starting debugger.
Re: getting RpcExceptionCode 5 with RPC code
ok it reaches this line in the show function and then jumps out of the function and goes to RpcExcept
Code:
NdrSendReceive( (PMIDL_STUB_MESSAGE) &_StubMsg, (unsigned char __RPC_FAR *) _StubMsg.Buffer );
Re: getting RpcExceptionCode 5 with RPC code
Good!
Now use Google to search for NdrSendReceive access denied and see how others tried to solve this problem!
Re: getting RpcExceptionCode 5 with RPC code
i can't find an answer for this problem
Re: getting RpcExceptionCode 5 with RPC code
So no one else had a similar problem?
Or no one could solve such a problem?
Or what?
Re: getting RpcExceptionCode 5 with RPC code
no one else had a similar problem. i couldn't find a solution
Re: getting RpcExceptionCode 5 with RPC code
In what OS do you have this Access denied exception?
Re: getting RpcExceptionCode 5 with RPC code
i'm using a windows 7 computer and visual studio 2008
Re: getting RpcExceptionCode 5 with RPC code
could you download the code and try it yourself?
http://www.aspfree.com/c/a/net/intro...indows-part-i/
the link to download the code is in the 3rd paragraph
Re: getting RpcExceptionCode 5 with RPC code
And where is this "3rd paragraph"? And where is a link for download?
And why not to ask the author of this code?