Web Connection
Cannot Clear the Object
Gravatar is a globally recognized avatar based on your email address. Cannot Clear the Object
  Eric Selje
  All
  May 25, 2020 @ 01:53pm

I'm (finally) getting around to trying out some of Rick's Vue demo code from last SWFox. I downloaded the latest WW and cloned the Vue repo, created the project, and launched. All seems well until the 2nd time I hit a request, when the app gives me a "Cannot clear the object" error.

The code indicates this error is to help debug when an object is hanging in memory. Any clue what I'm doing wrong?

Thanks,

Eric

Gravatar is a globally recognized avatar based on your email address. re: Canot Clear the Object
  Rick Strahl
  Eric Selje
  May 25, 2020 @ 04:29pm

Not sure. Just tried it here and it works for me without a problem.

CANCEL
CLEAR ALL
CLOSE ALL
RELEASE ALL
CLEAR PROGRAM

Then try deleting all FXP files in the current folder and the Web Connection classes folder.

I have the above to a F4 macro key - useful to do this in general when you have locking issues like this.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Canot Clear the Object
  Rick Strahl
  Eric Selje
  May 26, 2020 @ 03:07pm

For this to happen on a request is pretty strange. If you have problems with the server it's usually during startup.

But check to see what code is causing this in the debugger...

IAC, it looks like a compilation error - so the recompile of everything would be my first step no matter what.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Canot Clear the Object
  Eric Selje
  Rick Strahl
  May 26, 2020 @ 05:24pm

Getting closer. I'm now getting the Unable to Load CLR Instance when trying to instantiate wwDotNetBridge.dll. I've seen this before...

Gravatar is a globally recognized avatar based on your email address. re: Cannot Clear the Object
  Eric Selje
  Rick Strahl
  May 27, 2020 @ 07:31pm

I set it up from scratch on a different laptop and it works perfectly. Someday (maybe) I'll try to troubleshoot why I've never been able to instantiate wwDotNetBridge on that older PC, but not tonight. Onward...

Gravatar is a globally recognized avatar based on your email address. re: Cannot Clear the Object
  Rick Strahl
  Eric Selje
  May 28, 2020 @ 02:13pm

Yeah it'd be good to know.

Older? How old? Any Windows 10 machine should work without anything other than if you're running off a network share in which case you need the .config entries to handle startup properly. Windows 7 should be fine too unless it's not patched and no updated version of .NET was installed. wwDotnetBridge requires at least .NET 4.5.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Cannot Clear the Object
  Eric Selje
  Rick Strahl
  May 28, 2020 @ 07:35pm

Well it's not that old! Windows 10 1909 now but it started life about 10 years ago as a Windows 7 machine and has a decade of trial and error in it. Its .Net Frameworks are up-to-date (4.8 and Core 3.1 at this point) but it's never been able to instantiate wwDotNetCore going way back. I forget about it for a couple of years ago and then when I try again I remember, "Oh Yeah! Bummer."

Gravatar is a globally recognized avatar based on your email address. re: Cannot Clear the Object
  Rick Strahl
  Eric Selje
  May 28, 2020 @ 11:19pm

Maybe when you get some time we do a screen share session to see what the issue is. I'm curious to see what would cause problems on a Windows 10 machine.

+++ Rick ---

© 1996-2024