Jump to content

Recommended Posts

Posted

Hey , I am very confused right now :)

 

I make a animated texture class and want to save some coordinates from a file into TVec2 variables.

As the loaded file contain the number of the coordinates I have to create a dynamic TVec2 Array.

 

So I write TVec2* coords;

 

and later (only example) coords = new TVec2[5];

 

But I become an error.

Why?

Posted

I didn't become a compiler error but when the application started(1-2 secs after it starts).

 

The window says(in german :))

Unbehandelte Ausnahme bei 0x77bfe754 in gui.exe: 0xC0000005: Zugriffsverletzung beim Schreiben an Position 0x00000000.

 

Sorry it was an error in my class with the ifstream :D

Pls delete

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...