-
April 10th, 2013, 09:03 AM
#16
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
-
April 10th, 2013, 09:19 AM
#17
Re: getting RpcExceptionCode 5 with RPC code
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?
Victor Nijegorodov
-
April 10th, 2013, 09:21 AM
#18
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()
-
April 10th, 2013, 09:30 AM
#19
Re: getting RpcExceptionCode 5 with RPC code
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?
Victor Nijegorodov
-
April 10th, 2013, 09:36 AM
#20
Re: getting RpcExceptionCode 5 with RPC code
ok i attached a screen shot of the error message that came up:
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()
-
April 10th, 2013, 09:42 AM
#21
Re: getting RpcExceptionCode 5 with RPC code
Then rebuild your project before starting debugger.
Victor Nijegorodov
-
April 10th, 2013, 09:45 AM
#22
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 );
-
April 10th, 2013, 09:52 AM
#23
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!
Victor Nijegorodov
-
April 11th, 2013, 02:57 AM
#24
Re: getting RpcExceptionCode 5 with RPC code
i can't find an answer for this problem
-
April 11th, 2013, 03:00 AM
#25
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?
Victor Nijegorodov
-
April 11th, 2013, 03:02 AM
#26
Re: getting RpcExceptionCode 5 with RPC code
no one else had a similar problem. i couldn't find a solution
-
April 11th, 2013, 03:29 AM
#27
Re: getting RpcExceptionCode 5 with RPC code
In what OS do you have this Access denied exception?
Victor Nijegorodov
-
April 11th, 2013, 03:31 AM
#28
Re: getting RpcExceptionCode 5 with RPC code
i'm using a windows 7 computer and visual studio 2008
-
April 11th, 2013, 03:34 AM
#29
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
-
April 11th, 2013, 03:38 AM
#30
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?
Victor Nijegorodov
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|