Archived Forum Post

Index of archived forum posts

Question:

Uidls null in collection

Nov 23 '14 at 12:35

I have an issue with hMailServer which seems to be the same with all versions of Chilkat mail component and it's driving me crazy.

I run Chilkat.StringArray uidls = mailman.GetUidls(); after unlocking the component successfully. Here is the output log of last error text. You can see there are 5 messages with a int counter for the actual mail and uidl. Environment is VS2013 on Win7 x86

ChilkatLog: GetUidls: DllDate: Jun 10 2014 ChilkatVersion: 9.5.0.40 UnlockPrefix: 1xxxxxxxxxxx Username: :Steve Architecture: Little Endian; 32-bit Language: .NET 4.5 VerboseLogging: 0 PopCmdSent: UIDL PopCmdResp: +OK 5 messages (513128 octets) PopCmdResp: 1 16 2 17 3 18 4 19 5 20 . UidlCount: 5 Success. --GetUidls --ChilkatLog

When I then call string uidl = uidls.GetString(i); it returns null, even though there are 5 elements in the collection.

Does anyone know how to get over this?

Steve


Answer

My fault, I was picking up the getuidl in reverse order and it didn't like it. Working now starting from 0 in the array.