Click here to Skip to main content
15,891,943 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Figures from a string - PLZ HELP! Pin
Steve Pullan16-Mar-06 19:54
Steve Pullan16-Mar-06 19:54 
GeneralRe: Figures from a string - PLZ HELP! Pin
Ciels16-Mar-06 20:00
Ciels16-Mar-06 20:00 
GeneralRe: Figures from a string - PLZ HELP! Pin
Steve Pullan17-Mar-06 1:00
Steve Pullan17-Mar-06 1:00 
GeneralRe: Figures from a string - PLZ HELP! Pin
Christian Graus17-Mar-06 3:22
protectorChristian Graus17-Mar-06 3:22 
AnswerRe: Figures from a string - PLZ HELP! Pin
Dave Kreskowiak17-Mar-06 3:45
mveDave Kreskowiak17-Mar-06 3:45 
QuestionHow to roll back changes done to the xml in dataset?? Pin
Ron.S15-Mar-06 23:24
Ron.S15-Mar-06 23:24 
AnswerRe: How to roll back changes done to the xml in dataset?? Pin
Dave Kreskowiak16-Mar-06 5:43
mveDave Kreskowiak16-Mar-06 5:43 
Question.net remoting lifetime problem Pin
Qaiser_Iftikhar15-Mar-06 22:59
Qaiser_Iftikhar15-Mar-06 22:59 
Hi there,


A really quick question

I have something like this in my shared dll.

Imports System.Runtime.Remoting
Public Interface ISKMDialog
Function showDialog(ByVal id As Integer, ByVal guid As System.Guid, Optional ByVal needResult As Boolean = True, Optional ByVal queueit As Boolean = True, Optional ByVal urgent As Boolean = False) As requestResult
Enum requestResult
OK = 1
WAIT = 2
DIALOG_NOT_FOUND = 3
End Enum

End Interface

Public Class CSKMDialog
Inherits MarshalByRefObject
Implements ISKMDialog

Public Delegate Sub dialogRequest(ByVal id As Integer, ByVal needResult As Boolean, ByVal queueit As Boolean, ByVal urgent As Boolean)
Public Event dialogShowEvent As dialogRequest

Public Function showDialog(ByVal id As Integer, ByVal guid As System.Guid, Optional ByVal needResult As Boolean = True, Optional ByVal queueit As Boolean = True, Optional ByVal urgent As Boolean = False) As ISKMDialog.requestResult Implements ISKMDialog.showDialog
RaiseEvent dialogShowEvent(id, needResult, queueit, urgent)
End Function


Public Overrides Function InitializeLifetimeService() As Object
Return Nothing
End Function
End Class

And in my main class I am doing something like this



Private WithEvents sharedObject As New dialogShared.CSKMDialog
Private Shared ref As ObjRef
Private chan As TcpChannel

Private Sub MarshallSharedObject()
chan = New TcpChannel(15090)
ChannelServices.RegisterChannel(chan)
ref = RemotingServices.Marshal(Me.sharedObject, "dialog")
ref.URI = "tcp://localhost:15090/dialog"



End Sub


In my constructor am calling above function,

Problem is remote object’s lifetime, even though am overriding InitializeLifetimeService() function and returning nothing but still my object get destroyed. If after 10 minute I call in my main class something like this

Dim o As System.Runtime.Remoting.Lifetime.ILease = sharedObject.GetLifetimeService()
MsgBox(o.CurrentLeaseTime.ToString)

It returns a negative lifetime value. If I try to get this object from my other app after 10-15 minute it says “unable to find service”. My main application is a gui app.

Any ideas, am stuck with this.

Qaiser.

AnswerRe: .net remoting lifetime problem Pin
Qaiser_Iftikhar15-Mar-06 23:30
Qaiser_Iftikhar15-Mar-06 23:30 
QuestionByte Array Pin
sturebergdahl15-Mar-06 22:51
sturebergdahl15-Mar-06 22:51 
AnswerRe: Byte Array Pin
Dave Kreskowiak16-Mar-06 7:33
mveDave Kreskowiak16-Mar-06 7:33 
GeneralRe: Byte Array Pin
sturebergdahl17-Mar-06 2:41
sturebergdahl17-Mar-06 2:41 
QuestionVB.NET and xml documantation Pin
HL_SUB15-Mar-06 22:51
HL_SUB15-Mar-06 22:51 
AnswerRe: VB.NET and xml documantation Pin
Dave Kreskowiak16-Mar-06 5:00
mveDave Kreskowiak16-Mar-06 5:00 
Questionhow to PAUSE media player? Pin
campbells15-Mar-06 22:18
campbells15-Mar-06 22:18 
AnswerRe: how to PAUSE media player? Pin
albCode15-Mar-06 22:31
albCode15-Mar-06 22:31 
GeneralRe: how to PAUSE media player? Pin
campbells15-Mar-06 23:51
campbells15-Mar-06 23:51 
Questionhow to write and create a ms word document usign vb 6.0 Pin
whippersnapper7615-Mar-06 21:41
whippersnapper7615-Mar-06 21:41 
AnswerRe: how to write and create a ms word document usign vb 6.0 Pin
Dave Kreskowiak16-Mar-06 4:53
mveDave Kreskowiak16-Mar-06 4:53 
GeneralRe: how to write and create a ms word document usign vb 6.0 Pin
whippersnapper7619-Mar-06 21:34
whippersnapper7619-Mar-06 21:34 
Questiontool strip Pin
Leavashni15-Mar-06 21:11
Leavashni15-Mar-06 21:11 
AnswerRe: tool strip Pin
Dave Kreskowiak16-Mar-06 4:45
mveDave Kreskowiak16-Mar-06 4:45 
Questioni have a stastic method in tha calss, how to invoke constructor, when called with class name Pin
Member 227165515-Mar-06 20:52
Member 227165515-Mar-06 20:52 
AnswerRe: i have a stastic method in tha calss, how to invoke constructor, when called with class name Pin
Member 227165515-Mar-06 20:54
Member 227165515-Mar-06 20:54 
GeneralRe: i have a stastic method in tha calss, how to invoke constructor, when called with class name Pin
Dave Kreskowiak16-Mar-06 2:42
mveDave Kreskowiak16-Mar-06 2:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.