getting RpcExceptionCode 5 with RPC code - Page 2
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 36

Thread: getting RpcExceptionCode 5 with RPC code

  1. #16
    Join Date
    Mar 2012
    Posts
    99

    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

  2. #17
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,018

    Re: getting RpcExceptionCode 5 with RPC code

    Quote Originally Posted by beginner91 View Post
    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

  3. #18
    Join Date
    Mar 2012
    Posts
    99

    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()

  4. #19
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,018

    Re: getting RpcExceptionCode 5 with RPC code

    Quote Originally Posted by beginner91 View Post
    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

  5. #20
    Join Date
    Mar 2012
    Posts
    99

    Re: getting RpcExceptionCode 5 with RPC code

    ok i attached a screen shot of the error message that came up:
    Name:  error.png
Views: 60
Size:  23.3 KB

    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()

  6. #21
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,018

    Re: getting RpcExceptionCode 5 with RPC code

    Then rebuild your project before starting debugger.
    Victor Nijegorodov

  7. #22
    Join Date
    Mar 2012
    Posts
    99

    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 );

  8. #23
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,018

    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

  9. #24
    Join Date
    Mar 2012
    Posts
    99

    Re: getting RpcExceptionCode 5 with RPC code

    i can't find an answer for this problem

  10. #25
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,018

    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

  11. #26
    Join Date
    Mar 2012
    Posts
    99

    Re: getting RpcExceptionCode 5 with RPC code

    no one else had a similar problem. i couldn't find a solution

  12. #27
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,018

    Re: getting RpcExceptionCode 5 with RPC code

    In what OS do you have this Access denied exception?
    Victor Nijegorodov

  13. #28
    Join Date
    Mar 2012
    Posts
    99

    Re: getting RpcExceptionCode 5 with RPC code

    i'm using a windows 7 computer and visual studio 2008

  14. #29
    Join Date
    Mar 2012
    Posts
    99

    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

  15. #30
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,018

    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

Page 2 of 3 FirstFirst 123 LastLast

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
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center