Jump to content

Dynamic TVec2 Array?


ParaToxic
 Share

Recommended Posts

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

 Share

×
×
  • Create New...