Lots of debug and build warnings. Cuda streams

Hello guys,
I have problems with many warnings that shop up. I try to make streaming memory transfers, but I guess these problems prevent me from doing this. Every time I try with streaming I get:

Unhandled exception at 0x000007FEE6625FA2 (nvcuda.dll) in EnvelopeCudaCode.exe: 0xC0000005: Access violation reading location 0xFFFFFFFFFFFFFFFF.

I am running Windows 7 64-bit, VS 2012 32-bit, CUDA 6.5 64-bit. I am doing this in an active x64 platform at my project. I have turned off the ‘generate debug information’ (’-G’). When I turn it on, I get the MSB3712 error.
Compute sm is sm_20
Some DEBUG output:

'EnvelopeCudaCode.exe' (Win32): Loaded 'C:\Users\Mirosław\Desktop\EnvelopeCudaCode\x64\Debug\EnvelopeCudaCode.exe'. Symbols loaded.
'EnvelopeCudaCode.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Cannot find or open the PDB file.
'EnvelopeCudaCode.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Cannot find or open the PDB file.
'EnvelopeCudaCode.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Cannot find or open the PDB file.
'EnvelopeCudaCode.exe' (Win32): Loaded 'C:\Users\Mirosław\Desktop\EnvelopeCudaCode\x64\Debug\cudart64_65.dll'. Module was built without symbols.
'EnvelopeCudaCode.exe' (Win32): Loaded 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\bin\cufft64_65.dll'. Module was built without symbols.
'EnvelopeCudaCode.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'. Cannot find or open the PDB file.
'EnvelopeCudaCode.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'. Cannot find or open the PDB file.
'EnvelopeCudaCode.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'. Cannot find or open the PDB file.
etc...

Some BUILD info:

1>------ Build started: Project: EnvelopeCudaCode, Configuration: Debug x64 ------
1>Build started 2014-10-17 14:44:42.
1>Building with tools version "4.0".
1>Target "_CheckForInvalidConfigurationAndPlatform" in file "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.Targets" from project "C:\Users\Mirosław\Desktop\EnvelopeCudaCode\EnvelopeCudaCode\EnvelopeCudaCode.vcxproj" (entry point):
1>Task "Error" skipped, due to false condition; ( '$(_InvalidConfigurationError)' == 'true' ) was evaluated as ( '' == 'true' ).
1>Task "Warning" skipped, due to false condition; ( '$(_InvalidConfigurationWarning)' == 'true' ) was evaluated as ( '' == 'true' ).
1>Using "Message" task from assembly "Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
1>Task "Message"
1>  Configuration=Debug
1>Done executing task "Message".
1>Task "Message"
1>  Platform=x64
1>Done executing task "Message".
1>Task "Error" skipped, due to false condition; ('$(OutDir)' != '' and !HasTrailingSlash('$(OutDir)')) was evaluated as ('C:\Users\Mirosław\Desktop\EnvelopeCudaCode\x64\Debug

and:

1>D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xutility(1522): warning : controlling expression is constant
1>
1>D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xutility(1547): warning : controlling expression is constant
1>
1>D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xutility(1626): warning : controlling expression is constant
1>
1>D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xstring(80): warning : controlling expression is constant


And:

and finally:

1>C:/Users/Miros│aw/Desktop/EnvelopeCudaCode/EnvelopeCudaCode/kernel.cu(129): warning : variable “streamBytes” was declared but never referenced
1>
1>D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xstring(251): warning : controlling expression is constant
1> detected during:
1> instantiation of “void std::_String_const_iterator<_Mystr>::_Compat(const std::_String_const_iterator<_Mystr>::_Myiter &) const [with _Mystr=std::_String_val<std::_Simple_types>]”
1> (203): here
1> instantiation of “std::_String_const_iterator<_Mystr>::difference_type std::_String_const_iterator<_Mystr>::operator-(const std::_String_const_iterator<_Mystr>::_Myiter &) const [with _Mystr=std::_String_val<std::_Simple_types>]”
1> (2248): here
1> instantiation of “std::basic_string<_Elem, _Traits, _Alloc>::size_type std::basic_string<_Elem, _Traits, _Alloc>::_Pdif(std::basic_string<_Elem, _Traits, _Alloc>::const_iterator, std::basic_string<_Elem, _Traits, _Alloc>::const_iterator) [with _Elem=char, _Traits=std::char_traits, _Alloc=std::allocator]”
1> (1270): here
1> instantiation of “std::basic_string<_Elem, _Traits, _Alloc>::iterator std::basic_string<_Elem, _Traits, _Alloc>::insert(std::basic_string<_Elem, _Traits, _Alloc>::const_iterator, _Elem) [with _Elem=char, _Traits=std::char_traits, _Alloc=std::allocator]”
1> (1686): here
1> instantiation of “void std::basic_string<_Elem, _Traits, _Alloc>::push_back(_Elem) [with _Elem=char, _Traits=std::char_traits, _Alloc=std::allocator]”
1> D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\iterator(33): here
1> instantiation of “std::back_insert_iterator<_Container>::_Myt &std::back_insert_iterator<_Container>::operator=(const std::back_insert_iterator<_Container>::_Valty &) [with _Container=std::string]”
1> D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xlocnum(1561): here
1> instantiation of “_OutIt std::num_put<_Elem, _OutIt>::_Rep(_OutIt, _Elem, size_t) const [with _Elem=char, _OutIt=std::back_insert_iteratorstd::string]”
1> D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xlocnum(1200): here


Please help! != '' and !HasTrailingSlash('C:\Users\Mirosław\Desktop\EnvelopeCudaCode\x64\Debug

and:

1>D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xutility(1522): warning : controlling expression is constant
1>
1>D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xutility(1547): warning : controlling expression is constant
1>
1>D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xutility(1626): warning : controlling expression is constant
1>
1>D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xstring(80): warning : controlling expression is constant


And:

and finally:

1>C:/Users/Miros│aw/Desktop/EnvelopeCudaCode/EnvelopeCudaCode/kernel.cu(129): warning : variable “streamBytes” was declared but never referenced
1>
1>D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xstring(251): warning : controlling expression is constant
1> detected during:
1> instantiation of “void std::_String_const_iterator<_Mystr>::_Compat(const std::_String_const_iterator<_Mystr>::_Myiter &) const [with _Mystr=std::_String_val<std::_Simple_types>]”
1> (203): here
1> instantiation of “std::_String_const_iterator<_Mystr>::difference_type std::_String_const_iterator<_Mystr>::operator-(const std::_String_const_iterator<_Mystr>::_Myiter &) const [with _Mystr=std::_String_val<std::_Simple_types>]”
1> (2248): here
1> instantiation of “std::basic_string<_Elem, _Traits, _Alloc>::size_type std::basic_string<_Elem, _Traits, _Alloc>::_Pdif(std::basic_string<_Elem, _Traits, _Alloc>::const_iterator, std::basic_string<_Elem, _Traits, _Alloc>::const_iterator) [with _Elem=char, _Traits=std::char_traits, _Alloc=std::allocator]”
1> (1270): here
1> instantiation of “std::basic_string<_Elem, _Traits, _Alloc>::iterator std::basic_string<_Elem, _Traits, _Alloc>::insert(std::basic_string<_Elem, _Traits, _Alloc>::const_iterator, _Elem) [with _Elem=char, _Traits=std::char_traits, _Alloc=std::allocator]”
1> (1686): here
1> instantiation of “void std::basic_string<_Elem, _Traits, _Alloc>::push_back(_Elem) [with _Elem=char, _Traits=std::char_traits, _Alloc=std::allocator]”
1> D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\iterator(33): here
1> instantiation of “std::back_insert_iterator<_Container>::_Myt &std::back_insert_iterator<_Container>::operator=(const std::back_insert_iterator<_Container>::_Valty &) [with _Container=std::string]”
1> D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xlocnum(1561): here
1> instantiation of “_OutIt std::num_put<_Elem, _OutIt>::_Rep(_OutIt, _Elem, size_t) const [with _Elem=char, _OutIt=std::back_insert_iteratorstd::string]”
1> D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xlocnum(1200): here


Please help!)).
1>Task "Error" skipped, due to false condition; ('$(BaseIntermediateOutputPath)' != '' and !HasTrailingSlash('$(BaseIntermediateOutputPath)')) was evaluated as ('obj

and:

1>D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xutility(1522): warning : controlling expression is constant
1>
1>D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xutility(1547): warning : controlling expression is constant
1>
1>D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xutility(1626): warning : controlling expression is constant
1>
1>D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xstring(80): warning : controlling expression is constant


And:

and finally:

1>C:/Users/Miros│aw/Desktop/EnvelopeCudaCode/EnvelopeCudaCode/kernel.cu(129): warning : variable “streamBytes” was declared but never referenced
1>
1>D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xstring(251): warning : controlling expression is constant
1> detected during:
1> instantiation of “void std::_String_const_iterator<_Mystr>::_Compat(const std::_String_const_iterator<_Mystr>::_Myiter &) const [with _Mystr=std::_String_val<std::_Simple_types>]”
1> (203): here
1> instantiation of “std::_String_const_iterator<_Mystr>::difference_type std::_String_const_iterator<_Mystr>::operator-(const std::_String_const_iterator<_Mystr>::_Myiter &) const [with _Mystr=std::_String_val<std::_Simple_types>]”
1> (2248): here
1> instantiation of “std::basic_string<_Elem, _Traits, _Alloc>::size_type std::basic_string<_Elem, _Traits, _Alloc>::_Pdif(std::basic_string<_Elem, _Traits, _Alloc>::const_iterator, std::basic_string<_Elem, _Traits, _Alloc>::const_iterator) [with _Elem=char, _Traits=std::char_traits, _Alloc=std::allocator]”
1> (1270): here
1> instantiation of “std::basic_string<_Elem, _Traits, _Alloc>::iterator std::basic_string<_Elem, _Traits, _Alloc>::insert(std::basic_string<_Elem, _Traits, _Alloc>::const_iterator, _Elem) [with _Elem=char, _Traits=std::char_traits, _Alloc=std::allocator]”
1> (1686): here
1> instantiation of “void std::basic_string<_Elem, _Traits, _Alloc>::push_back(_Elem) [with _Elem=char, _Traits=std::char_traits, _Alloc=std::allocator]”
1> D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\iterator(33): here
1> instantiation of “std::back_insert_iterator<_Container>::_Myt &std::back_insert_iterator<_Container>::operator=(const std::back_insert_iterator<_Container>::_Valty &) [with _Container=std::string]”
1> D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xlocnum(1561): here
1> instantiation of “_OutIt std::num_put<_Elem, _OutIt>::_Rep(_OutIt, _Elem, size_t) const [with _Elem=char, _OutIt=std::back_insert_iteratorstd::string]”
1> D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xlocnum(1200): here


Please help! != '' and !HasTrailingSlash('obj

and:

1>D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xutility(1522): warning : controlling expression is constant
1>
1>D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xutility(1547): warning : controlling expression is constant
1>
1>D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xutility(1626): warning : controlling expression is constant
1>
1>D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xstring(80): warning : controlling expression is constant


And:

and finally:

1>C:/Users/Miros│aw/Desktop/EnvelopeCudaCode/EnvelopeCudaCode/kernel.cu(129): warning : variable “streamBytes” was declared but never referenced
1>
1>D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xstring(251): warning : controlling expression is constant
1> detected during:
1> instantiation of “void std::_String_const_iterator<_Mystr>::_Compat(const std::_String_const_iterator<_Mystr>::_Myiter &) const [with _Mystr=std::_String_val<std::_Simple_types>]”
1> (203): here
1> instantiation of “std::_String_const_iterator<_Mystr>::difference_type std::_String_const_iterator<_Mystr>::operator-(const std::_String_const_iterator<_Mystr>::_Myiter &) const [with _Mystr=std::_String_val<std::_Simple_types>]”
1> (2248): here
1> instantiation of “std::basic_string<_Elem, _Traits, _Alloc>::size_type std::basic_string<_Elem, _Traits, _Alloc>::_Pdif(std::basic_string<_Elem, _Traits, _Alloc>::const_iterator, std::basic_string<_Elem, _Traits, _Alloc>::const_iterator) [with _Elem=char, _Traits=std::char_traits, _Alloc=std::allocator]”
1> (1270): here
1> instantiation of “std::basic_string<_Elem, _Traits, _Alloc>::iterator std::basic_string<_Elem, _Traits, _Alloc>::insert(std::basic_string<_Elem, _Traits, _Alloc>::const_iterator, _Elem) [with _Elem=char, _Traits=std::char_traits, _Alloc=std::allocator]”
1> (1686): here
1> instantiation of “void std::basic_string<_Elem, _Traits, _Alloc>::push_back(_Elem) [with _Elem=char, _Traits=std::char_traits, _Alloc=std::allocator]”
1> D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\iterator(33): here
1> instantiation of “std::back_insert_iterator<_Container>::_Myt &std::back_insert_iterator<_Container>::operator=(const std::back_insert_iterator<_Container>::_Valty &) [with _Container=std::string]”
1> D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xlocnum(1561): here
1> instantiation of “_OutIt std::num_put<_Elem, _OutIt>::_Rep(_OutIt, _Elem, size_t) const [with _Elem=char, _OutIt=std::back_insert_iteratorstd::string]”
1> D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xlocnum(1200): here


Please help!)).
1>Task "Error" skipped, due to false condition; ('$(IntermediateOutputPath)' != '' and !HasTrailingSlash('$(IntermediateOutputPath)')) was evaluated as ('x64\Debug

and:

1>D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xutility(1522): warning : controlling expression is constant
1>
1>D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xutility(1547): warning : controlling expression is constant
1>
1>D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xutility(1626): warning : controlling expression is constant
1>
1>D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xstring(80): warning : controlling expression is constant


And:

and finally:

1>C:/Users/Miros│aw/Desktop/EnvelopeCudaCode/EnvelopeCudaCode/kernel.cu(129): warning : variable “streamBytes” was declared but never referenced
1>
1>D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xstring(251): warning : controlling expression is constant
1> detected during:
1> instantiation of “void std::_String_const_iterator<_Mystr>::_Compat(const std::_String_const_iterator<_Mystr>::_Myiter &) const [with _Mystr=std::_String_val<std::_Simple_types>]”
1> (203): here
1> instantiation of “std::_String_const_iterator<_Mystr>::difference_type std::_String_const_iterator<_Mystr>::operator-(const std::_String_const_iterator<_Mystr>::_Myiter &) const [with _Mystr=std::_String_val<std::_Simple_types>]”
1> (2248): here
1> instantiation of “std::basic_string<_Elem, _Traits, _Alloc>::size_type std::basic_string<_Elem, _Traits, _Alloc>::_Pdif(std::basic_string<_Elem, _Traits, _Alloc>::const_iterator, std::basic_string<_Elem, _Traits, _Alloc>::const_iterator) [with _Elem=char, _Traits=std::char_traits, _Alloc=std::allocator]”
1> (1270): here
1> instantiation of “std::basic_string<_Elem, _Traits, _Alloc>::iterator std::basic_string<_Elem, _Traits, _Alloc>::insert(std::basic_string<_Elem, _Traits, _Alloc>::const_iterator, _Elem) [with _Elem=char, _Traits=std::char_traits, _Alloc=std::allocator]”
1> (1686): here
1> instantiation of “void std::basic_string<_Elem, _Traits, _Alloc>::push_back(_Elem) [with _Elem=char, _Traits=std::char_traits, _Alloc=std::allocator]”
1> D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\iterator(33): here
1> instantiation of “std::back_insert_iterator<_Container>::_Myt &std::back_insert_iterator<_Container>::operator=(const std::back_insert_iterator<_Container>::_Valty &) [with _Container=std::string]”
1> D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xlocnum(1561): here
1> instantiation of “_OutIt std::num_put<_Elem, _OutIt>::_Rep(_OutIt, _Elem, size_t) const [with _Elem=char, _OutIt=std::back_insert_iteratorstd::string]”
1> D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xlocnum(1200): here


Please help! != '' and !HasTrailingSlash('x64\Debug

and:

1>D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xutility(1522): warning : controlling expression is constant
1>
1>D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xutility(1547): warning : controlling expression is constant
1>
1>D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xutility(1626): warning : controlling expression is constant
1>
1>D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xstring(80): warning : controlling expression is constant


And:

and finally:

1>C:/Users/Miros│aw/Desktop/EnvelopeCudaCode/EnvelopeCudaCode/kernel.cu(129): warning : variable “streamBytes” was declared but never referenced
1>
1>D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xstring(251): warning : controlling expression is constant
1> detected during:
1> instantiation of “void std::_String_const_iterator<_Mystr>::_Compat(const std::_String_const_iterator<_Mystr>::_Myiter &) const [with _Mystr=std::_String_val<std::_Simple_types>]”
1> (203): here
1> instantiation of “std::_String_const_iterator<_Mystr>::difference_type std::_String_const_iterator<_Mystr>::operator-(const std::_String_const_iterator<_Mystr>::_Myiter &) const [with _Mystr=std::_String_val<std::_Simple_types>]”
1> (2248): here
1> instantiation of “std::basic_string<_Elem, _Traits, _Alloc>::size_type std::basic_string<_Elem, _Traits, _Alloc>::_Pdif(std::basic_string<_Elem, _Traits, _Alloc>::const_iterator, std::basic_string<_Elem, _Traits, _Alloc>::const_iterator) [with _Elem=char, _Traits=std::char_traits, _Alloc=std::allocator]”
1> (1270): here
1> instantiation of “std::basic_string<_Elem, _Traits, _Alloc>::iterator std::basic_string<_Elem, _Traits, _Alloc>::insert(std::basic_string<_Elem, _Traits, _Alloc>::const_iterator, _Elem) [with _Elem=char, _Traits=std::char_traits, _Alloc=std::allocator]”
1> (1686): here
1> instantiation of “void std::basic_string<_Elem, _Traits, _Alloc>::push_back(_Elem) [with _Elem=char, _Traits=std::char_traits, _Alloc=std::allocator]”
1> D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\iterator(33): here
1> instantiation of “std::back_insert_iterator<_Container>::_Myt &std::back_insert_iterator<_Container>::operator=(const std::back_insert_iterator<_Container>::_Valty &) [with _Container=std::string]”
1> D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xlocnum(1561): here
1> instantiation of “_OutIt std::num_put<_Elem, _OutIt>::_Rep(_OutIt, _Elem, size_t) const [with _Elem=char, _OutIt=std::back_insert_iteratorstd::string]”
1> D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xlocnum(1200): here


Please help!)).
1>Done building target "_CheckForInvalidConfigurationAndPlatform" in project "EnvelopeCudaCode.vcxproj".
1>Target "_PrepareForBuild" in file "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.BuildSteps.Targets" from project "C:\Users\Mirosław\Desktop\EnvelopeCudaCode\EnvelopeCudaCode\EnvelopeCudaCode.vcxproj" (target "Build" depends on it):
1>Task "CreateItem" skipped, due to false condition; ('%(CustomBuild.IncludeFileToTool)'!='') was evaluated as (''!='').

and:

1>D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xutility(1522): warning : controlling expression is constant
1>  
1>D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xutility(1547): warning : controlling expression is constant
1>  
1>D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xutility(1626): warning : controlling expression is constant
1>  
1>D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xstring(80): warning : controlling expression is constant

And:

and finally:

1>C:/Users/Miros│aw/Desktop/EnvelopeCudaCode/EnvelopeCudaCode/kernel.cu(129): warning : variable "streamBytes" was declared but never referenced
1>  
1>D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xstring(251): warning : controlling expression is constant
1>            detected during:
1>              instantiation of "void std::_String_const_iterator<_Mystr>::_Compat(const std::_String_const_iterator<_Mystr>::_Myiter &) const [with _Mystr=std::_String_val<std::_Simple_types<char>>]" 
1>  (203): here
1>              instantiation of "std::_String_const_iterator<_Mystr>::difference_type std::_String_const_iterator<_Mystr>::operator-(const std::_String_const_iterator<_Mystr>::_Myiter &) const [with _Mystr=std::_String_val<std::_Simple_types<char>>]" 
1>  (2248): here
1>              instantiation of "std::basic_string<_Elem, _Traits, _Alloc>::size_type std::basic_string<_Elem, _Traits, _Alloc>::_Pdif(std::basic_string<_Elem, _Traits, _Alloc>::const_iterator, std::basic_string<_Elem, _Traits, _Alloc>::const_iterator) [with _Elem=char, _Traits=std::char_traits<char>, _Alloc=std::allocator<char>]" 
1>  (1270): here
1>              instantiation of "std::basic_string<_Elem, _Traits, _Alloc>::iterator std::basic_string<_Elem, _Traits, _Alloc>::insert(std::basic_string<_Elem, _Traits, _Alloc>::const_iterator, _Elem) [with _Elem=char, _Traits=std::char_traits<char>, _Alloc=std::allocator<char>]" 
1>  (1686): here
1>              instantiation of "void std::basic_string<_Elem, _Traits, _Alloc>::push_back(_Elem) [with _Elem=char, _Traits=std::char_traits<char>, _Alloc=std::allocator<char>]" 
1>  D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\iterator(33): here
1>              instantiation of "std::back_insert_iterator<_Container>::_Myt &std::back_insert_iterator<_Container>::operator=(const std::back_insert_iterator<_Container>::_Valty &) [with _Container=std::string]" 
1>  D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xlocnum(1561): here
1>              instantiation of "_OutIt std::num_put<_Elem, _OutIt>::_Rep(_OutIt, _Elem, size_t) const [with _Elem=char, _OutIt=std::back_insert_iterator<std::string>]" 
1>  D:\Pliki programˇw (x86)\Microsoft Visual Studio 11.0\VC\include\xlocnum(1200): here

Please help!

Are you doing proper CUDA error checking in your code?

The initial set of debug output appears to be mostly because you are trying to debug a project for which you have not properly set the debug configuration.

Most of the remaining warnings appear harmless, and probably are due to the fact that you have verbose output set to a very high level.

The first line of output you show is the real issue. I would suggest reducing your code to the shortest possible program that still demonstrates that error, and post that. You can start from the end of your program and just start commenting out code until that particular error goes away. This may give you some ideas.

Alternatively, you can work on figuring out why your debug configurations are not working, fix that, and then use a debugger normally to identify the offending line of code that produces that access violation in nvcuda.dll.