#1  
Old 1st June 2012, 08:19 PM
Bernhard Roos
 
Posts: n/a
Default Messaging Plugin Exception with Delphi XE2 and NexusDB 3.10

In the following Routine in the line aList.LoadFromStream, I get the
exception Invalid Propertievalue since I'm using Delphi XE 2 and NexusDB
3.10. Any ideas?

Best wishes
Bernhard

function TpsnxRemoteMessagingPlugin.GetMessagingClients(aLi st:
TpsnxRegisteredClientList)
: TnxResult;
var
MStream: TStream;
begin
MStream := TnxMemoryStream.Create;
try
Result := bpeProcessRequest(nxnmGetMsgSessions, nil, 0,
@Pointer(MStream), nil, nmdStream);

if Result = DBIERR_NONE then
begin
MStream.Seek(0, soFromBeginning);
aList.LoadFromStream(MStream);
end;

finally
MStream.Free;
end;
end;
  #2  
Old 2nd June 2012, 02:22 AM
R. Lichtendahl R. Lichtendahl is offline
Junior Member
 
Join Date: Aug 2011
Location: The Netherlands
Posts: 8
Default

Same story here
Using NexusDB 3.10.04 with Delphi 2007.

Also get the "Invalid PropertyValue" error in the routine "LoadFromStream"
Code:
procedure TpsnxRegisteredClientList.LoadFromStream(aStream: TStream);
var
...
begin
  Reader := TReader.Create(aStream, 4096);
  try
    aCount := Reader.ReadInteger;

    for Index := 0 to (aCount - 1) do
    begin
      SessionID       := Reader.ReadInteger; <-- Error starts here
      ...
      ...
    end;
  finally
    Reader.Free;
  end;
end;
__________________
Thanks in advance,

Richard Lichtendahl,
ENK Software BV - The Netherlands, Europe (+1 GMT)
  #3  
Old 2nd June 2012, 04:18 AM
Anders Gustavsson
 
Posts: n/a
Default Re: Messaging Plugin Exception with Delphi XE2 and NexusDB 3.10

Hi,

Try changing the designated row to

SessionID := Reader.ReadInt64;

That is the way it is in my code here, and I vaguely remember having
changed it in code I uploaded. Can't see that now, but I guess it is the
way it should be....


/Anders




R. Lichtendahl skrev 2012-06-01 17:22:
> Same story here
> Using NexusDB 3.10.04 with Delphi 2007.
>
> Also get the "Invalid PropertyValue" error in the routine
> "LoadFromStream"
>
> Code:
> --------------------
>
> procedure TpsnxRegisteredClientList.LoadFromStream(aStream: TStream);
> var
> ...
> begin
> Reader := TReader.Create(aStream, 4096);
> try
> aCount := Reader.ReadInteger;
>
> for Index := 0 to (aCount - 1) do
> begin
> SessionID := Reader.ReadInteger;<-- Error starts here
> ...
> ...
> end;
> finally
> Reader.Free;
> end;
> end;
>
>
> --------------------
>
>


  #4  
Old 4th June 2012, 11:42 PM
Bert Binnenmarsch
 
Posts: n/a
Default Re: Messaging Plugin Exception with Delphi XE2 and NexusDB 3.10

Anders Gustavsson wrote:

> Try changing the designated row to
>
> SessionID := Reader.ReadInt64;
>
> That is the way it is in my code here, and I vaguely remember having
> changed it in code I uploaded. Can't see that now, but I guess it is
> the way it should be....
>
>
> /Anders


Search the support group for ReadInt64. There is a discussion dating
back to 2010.
Currently I am still using version 3.05, so I don't know which changes
to the code were made since then.
Can you confirm that the problem only occurs on systems with a 64-bit
OS?

Bert

  #5  
Old 5th June 2012, 03:05 AM
Anders Gustavsson
 
Posts: n/a
Default Re: Messaging Plugin Exception with Delphi XE2 and NexusDB 3.10

Bert,

I wasn't speaking about the nexusdb code - the messaging plugin lives
it's own life as a third party add-on. I made some changes to the
project, and it was that code I was referring to: I thought the change
should be there. The problem existed on my non-64-bit machines as well,
so - no - it has nothing to do with you OS.

/Anders


Bert Binnenmarsch skrev 2012-06-04 14:42:
> Anders Gustavsson wrote:
>
>> Try changing the designated row to
>>
>> SessionID := Reader.ReadInt64;
>>
>> That is the way it is in my code here, and I vaguely remember having
>> changed it in code I uploaded. Can't see that now, but I guess it is
>> the way it should be....
>>
>>
>> /Anders

>
> Search the support group for ReadInt64. There is a discussion dating
> back to 2010.
> Currently I am still using version 3.05, so I don't know which changes
> to the code were made since then.
> Can you confirm that the problem only occurs on systems with a 64-bit
> OS?
>
> Bert
>


  #6  
Old 5th June 2012, 04:16 AM
Anders Gustavsson
 
Posts: n/a
Default Re: Messaging Plugin Exception with Delphi XE2 and NexusDB 3.10

Sorry, Bert,

I thought the change was something I had done at the time, but I now
found your discussion in support from August 2010. I rest my case :-)

/Anders


Anders Gustavsson skrev 2012-06-04 18:05:
> Bert,
>
> I wasn't speaking about the nexusdb code - the messaging plugin lives
> it's own life as a third party add-on. I made some changes to the
> project, and it was that code I was referring to: I thought the change
> should be there. The problem existed on my non-64-bit machines as well,
> so - no - it has nothing to do with you OS.
>
> /Anders
>
>
> Bert Binnenmarsch skrev 2012-06-04 14:42:
>> Anders Gustavsson wrote:
>>
>>> Try changing the designated row to
>>>
>>> SessionID := Reader.ReadInt64;
>>>
>>> That is the way it is in my code here, and I vaguely remember having
>>> changed it in code I uploaded. Can't see that now, but I guess it is
>>> the way it should be....
>>>
>>>
>>> /Anders

>>
>> Search the support group for ReadInt64. There is a discussion dating
>> back to 2010.
>> Currently I am still using version 3.05, so I don't know which changes
>> to the code were made since then.
>> Can you confirm that the problem only occurs on systems with a 64-bit
>> OS?
>>
>> Bert
>>

>




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
nxserver 3,06 delphi 2010, nexusdb server licensed plugin 2.061.1 Francisco San José Juárez nexusdb.public.support 2 14th December 2010 12:25 PM
Messaging Plugin Kenneth nexusdb.public.support 7 26th May 2010 03:27 AM
messaging plugin - plugin engine? Germain C. nexusdb.public.support 2 21st October 2008 12:33 PM
Messaging Plugin Anders Gustavsson nexusdb.public.support 0 1st July 2005 06:59 AM
Problem with Messaging Plugin and NexusDB 1.03 Gudmund Madsen nexusdb.public.support.thirdparty 10 5th December 2003 02:30 AM


All times are GMT +11. The time now is 09:39 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.