throwgcnewInvalidOperationException("Error creating a source string from filename "+_fileName+" Error: "+gcnewString(errorBuffer));
throwgcnewInvalidOperationException(String::Format(CultureInfo::InvariantCulture,"Error creating a source string from filename {0}. Error: ",_fileName,gcnewString(errorBuffer)));
@@ -294,7 +294,7 @@ PacketCommunicator::PacketCommunicator(const char* source, int snapshotLength, P
...
@@ -294,7 +294,7 @@ PacketCommunicator::PacketCommunicator(const char* source, int snapshotLength, P
errorBuffer);// error buffer
errorBuffer);// error buffer
if(pcapDescriptor==NULL)
if(pcapDescriptor==NULL)
throwgcnewInvalidOperationException("Unable to open the adapter. Adapter name: "+gcnewString(source)+". WinPcap Error: "+gcnewString(errorBuffer));
throwgcnewInvalidOperationException(String::Format(CultureInfo::InvariantCulture,"Unable to open the adapter. Adapter name: {0}. WinPcap Error: {1}",gcnewString(source),gcnewString(errorBuffer)));