Adblock breaks this site

Need help on RS Client (VB.net)

Discussion in 'Programming General' started by gixslayer, Jan 16, 2009.

  1. gixslayer

    gixslayer Newcomer

    Joined:
    Jan 16, 2009
    Posts:
    1
    Referrals:
    0
    Sythe Gold:
    0
    Need help on RS Client (VB.net)

    Hey, I consider myself quite good on VB.net, never thought I'd get stranded on this lol.

    What I want to do is this, have a form with a webbrowser in it to load Runescape. Not hard to do I know. When I run and go to runescape.com, it's all good. But as soon as I click on play member or free user it loads for like half a sec then crashes. Tried many many things but none seemed to work.
    Getting quite annoyed b/c of it, I mean like wth creating my own RS scripting langauge is all fine but loading RS inside a webbrowser I just cannot acomplish rofl. Anyway here's the error report I get. It's VB.net 2008 express edition on Vista Ultimate BTW.

    Code:
    System.AccessViolationException was unhandled
      Message="Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
      Source="System.Windows.Forms"
      StackTrace:
           at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
           at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
           at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
           at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
           at System.Windows.Forms.Application.Run(ApplicationContext context)
           at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
           at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
           at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
           at Rscript.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
           at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
           at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
           at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
           at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
           at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
           at System.Threading.ThreadHelper.ThreadStart()
      InnerException: 
    
     
  2. Dem0n

    Dem0n Active Member
    Banned

    Joined:
    Oct 26, 2008
    Posts:
    200
    Referrals:
    1
    Sythe Gold:
    0
    Need help on RS Client (VB.net)

    I'm on windows 7. HAVE THE SAME PROBLEM. Rs homepage loads, I click free member, crashes. Click member, crashes.
     
  3. Flaming Idiots

    Flaming Idiots Active Member
    Visual Basic Programmers

    Joined:
    Dec 22, 2005
    Posts:
    235
    Referrals:
    1
    Sythe Gold:
    0
    Two Factor Authentication User
    Need help on RS Client (VB.net)

    I believe what you need to do is set your post-build events to this:

    Code:
    [FONT=Monospace]REM Mark project as DEP Noncompliant
    call "$(DevEnvDir)..\..\VC\bin\vcvars32.bat"
    call "$(DevEnvDir)..\..\VC\bin\editbin.exe" /NXCOMPAT:NO "$(TargetPath)"[/FONT]
     
  4. mistyfyed

    mistyfyed Member

    Joined:
    Sep 26, 2008
    Posts:
    55
    Referrals:
    0
    Sythe Gold:
    0
    Need help on RS Client (VB.net)

  5. exiled warrior

    exiled warrior Forum Addict
    Banned

    Joined:
    Apr 4, 2006
    Posts:
    585
    Referrals:
    3
    Sythe Gold:
    0
    Need help on RS Client (VB.net)

    any chance u can post the code to load rs in a form

    i could really find it useful
     
< [VB.Net] How Can I Mute My App? | What's the Best way to do this? >


 
 
Adblock breaks this site