title: Antivirus keeps detecting my project as a virus
body: <p>Good day, I am trying to create framework for my game to make coding easier for me.
  I just created function to add object, but after I created part where I create index buffers, anti-virus keeps telling me: "Virus found: Win32: Evo-gen [Susp]" and I don't know why.
  The code of function to load the object:</p>
  
  <pre><code>HRESULT Framework::AddObject(Object* obj){
      std::vector&lt;short&gt; indices;
      std::vector&lt;VertexType&gt; vertices;
      obj-&gt;GetData(indices,vertices);
      IDirect3DVertexBuffer9* cVBuffer;
      IDirect3DIndexBuffer9* cIBuffer;
      int at=vertexBuffers.size();
      vertexBuffers.push_back(cVBuffer);
      indexBuffers.push_back(cIBuffer);
      unsigned int sOfVerts=vertices.size()*sizeof VertexType;
      unsigned int sOfIndices=indices.size()*sizeof(short);
      vCount.push_back(vertices.size());
      iCount.push_back(indices.size());
      HRESULT hr=device-&gt;GetDevice()-&gt;CreateVertexBuffer(sOfVerts,0,D3DFVF_VertexType,D3DPOOL_DEFAULT,&amp;vertexBuffers[at],NULL);
      if(FAILED(hr)){
          EndWithError("Failed to load object",hr);
          return hr;
      } else {
          void* p_vertices;
          hr=vertexBuffers[at]-&gt;Lock(0,sOfVerts,(void**)&amp;p_vertices,0);
          if(FAILED(hr)){
              EndWithError("Failed to lock buffer",hr);
              return hr;
          } else {
              applog&lt;&lt;"Successfuly created VertexBuffer for object "&lt;&lt;obj-&gt;GetClass()&lt;&lt;"["&lt;&lt;at&lt;&lt;"], vertices size: "&lt;&lt;sOfVerts&lt;&lt;", vertices count: "&lt;&lt;vertices.size()&lt;&lt;std::endl;
              memcpy(p_vertices,&amp;vertices[0],sOfVerts);
              vertexBuffers[at]-&gt;Unlock();
          }
      }
      hr=device-&gt;GetDevice()-&gt;CreateIndexBuffer(sOfIndices,D3DUSAGE_WRITEONLY,D3DFMT_INDEX16,D3DPOOL_MANAGED,&amp;indexBuffers[at],NULL);
      if(FAILED(hr)){
          EndWithError("Failed to load indices",hr);
          return hr;
      } else {
          void* p_indices;
          hr=indexBuffers[at]-&gt;Lock(0,sOfIndices,(void**)&amp;p_indices,0);
          if(FAILED(hr)){
              EndWithError("Failed to lock index buffer",hr);
              return hr;
          } else {
              memcpy(p_indices,&amp;indices[0],sOfIndices);
              indexBuffers[at]-&gt;Unlock();            
          }
      }
      return S_OK;
  }
  //device-&gt;GetDevice() - returns IDirect3DDevice9*
  //obj-&gt;GetData(vector&lt;int&gt;&amp; indices,vector&lt;VertexType&gt;&amp; vertices); //gets vertices and indices
  //obj-&gt;GetClass() const; - returns name of class of object, because Object is base class for another objects
  </code></pre>
  
  <p>And Render function looks like this:</p>
  
  <pre><code>void Framework::RenderFrame(){
      IDirect3DDevice9* dev=device-&gt;GetDevice();
      if(dev!=NULL){
          dev-&gt;Clear(0,NULL,D3DCLEAR_TARGET,D3DCOLOR_XRGB(32,32,64),1.0f,0);
          if(SUCCEEDED(dev-&gt;BeginScene())){
              for(unsigned int i=0;i&lt;vertexBuffers.size();i++){
                  IDirect3DDevice9* dev=device-&gt;GetDevice();
                  dev-&gt;SetStreamSource( 0, vertexBuffers[i], 0, sizeof( VertexType ) );
                  dev-&gt;SetFVF( D3DFVF_VertexType );
                  dev-&gt;SetIndices(indexBuffers[i]);
                  //dev-&gt;DrawPrimitive( D3DPT_TRIANGLELIST, 0, 1 );
                  dev-&gt;DrawIndexedPrimitive(D3DPT_TRIANGLELIST,0,0,vCount[i],0,iCount[i]/3);
              }
              dev-&gt;EndScene();
          }
          dev-&gt;Present(NULL,NULL,NULL,NULL);
      }
  }
  </code></pre>
  
  <p>Can anyone tell me what is the reason, why anti-virus detects this as a virus and how to fix it?</p>