INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: More on VB controls not terminating...  (Read 1487 times)

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42373
  • Shoes gone again!
More on VB controls not terminating...
« on: April 24, 2002, 06:56:50 am »

Hey Rhino (and anybody else),

I did some more digging, and it looks like VB doesn't like this:

Public g_Interface As BusyBox.BusyBoxCtrl
Set g_Interface = Me

I think the problem is that Set(...) bumps the reference count to 2 (MJ is the first) so that when we release the control, the reference count is still at one, so it isn't destroyed.

Would it be possible to code around global references?  Maybe a public GetInterface() function, or some type of pointer or non-reference counted Set(...)

Otherwise, we'll add a function "Terminate" (or similar) that MJ will call if it exists on exit.

Let us know...

-Matt
Logged
Matt Ashland, JRiver Media Center

RhinoBanga

  • Citizen of the Universe
  • *****
  • Posts: 1703
  • Developer
RE:More on VB controls not terminating...
« Reply #1 on: April 24, 2002, 12:14:08 pm »

Well how about that ... it worked!

Unfortunately I still get crashes as my timers are still active when the app is exiting Next Page

Without a terminate function I can't turn them off.

Also other people may have things like files/sockets open and would like to terminate gracefully.

So we still do need a terminate function Matt.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42373
  • Shoes gone again!
RE:More on VB controls not terminating...
« Reply #2 on: April 24, 2002, 02:35:38 pm »

It'll be in the next build. (hopefully out within an hour)

void Terminate()

Hopefully it does the trick.  Thanks for all the help.

-Matt
Logged
Matt Ashland, JRiver Media Center

Nikolay

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1681
  • Former CTO, JRiver, Inc.
RE:More on VB controls not terminating...
« Reply #3 on: April 24, 2002, 07:54:33 pm »

Rhino,

did you try build 8.0.257? Terminate function is in it.

Nikolay
Logged

RhinoBanga

  • Citizen of the Universe
  • *****
  • Posts: 1703
  • Developer
RE:More on VB controls not terminating...
« Reply #4 on: April 24, 2002, 11:02:28 pm »

Nikolay ... terminate works a treat Next Page
Logged
Pages: [1]   Go Up