|
Log in | ||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|
Thread Tools | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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 | |
|
|
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 |