CString confusion

BlitzMax Forums/BlitzMax Programming/CString confusion

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Even a simplified version of the line leaks:
For Local i:Int = 1 To 1000000
	Local DLL:Int = LoadLibraryA ( "Data/DLL/OSInfo.dll" )
	Local GetOSInfoProc:Byte Ptr ( typ:Byte Ptr ) "win32" = GetProcAddress ( DLL, "GetOSInfo" )
	Local Name:Byte Ptr = GetOSInfoProc ( ("Name".ToCString ( ) ) )
	FreeLibrary ( DLL )
	GCCollect()
Next