IEnumIDList and C# problem

senglory

Newcomer
Joined
Mar 8, 2007
Messages
3
IEnumIDList folderEnum = (IEnumIDList)Marshal.GetTypedObjectForIUnknown(folderEnumPtr, typeof(IEnumIDList));
while (folderEnum.Next(1, out pidlSubItem, out celtFetched) == ShellAPI.S_OK && celtFetched == 1)
{
}



The cycle "while" execute several time ok but suddenly raises exception "First-chance exception at 0x7c81eb33 in Server.exe: 0x80004002 Not supported"



Info about Studio:

Microsoft Visual Studio 2005
Version 8.0.50727.762 (SP.050727-7600)
Microsoft .NET Framework
Version 2.0.50727

Installed Edition: Professional



Whats wrong to my code?
 
Having no idea what your code does, this is all I can tell you. Since the exception is thrown in Server.exe, there isn't necessarily anything wrong with your code. I'm not quite sure what the address 0x7c81eb33 refers to, but 99% of google search results associated that offset with kernel32.dll (not that that probably helps much). It also seems to be related to things like static initializers and Windows Forms initialization.
 
Back
Top