MALLOC: TYPE NAME EXPECTED

  • Thread starter =?iso-8859-1?B?UG9pbmNhcuhf6F9hbmRhdG8=?=
  • Start date
?

=?iso-8859-1?B?UG9pbmNhcuhf6F9hbmRhdG8=?=

Hi all,

I built a softwaare (4 finite elements) and now that i solved all
maths troubles i'm trying to expand some informatic skills.
I call EXE file from cmd (under XP) and i made bad discoveries like
that string for argvector must be not more than 127 chars long...
I solved all except 1 thing:
I'm using Borland TC with compact size for stack dimension (with bigger
sizes EXES raise windows ferocity) and I mallocated dynamic vectors in
usual way...
but is that possible that i can't reach 7*400*sizeof(float)=11200 bytes
I presume without getting memory overflow or application frozen?????
And why i can't succed in writing
int _stklen = desidered dimension;???
Anyone had the same problem under XP?
How to allocate big memory blocks? My program is at least 300 times
faster than Matlab solvers....but as long as i can't work on big
instances this computational power gets useless

Thanks in advance
 
J

Jack Klein

Hi all,

I built a softwaare (4 finite elements) and now that i solved all
maths troubles i'm trying to expand some informatic skills.
I call EXE file from cmd (under XP) and i made bad discoveries like
that string for argvector must be not more than 127 chars long...
I solved all except 1 thing:
I'm using Borland TC with compact size for stack dimension (with bigger
sizes EXES raise windows ferocity) and I mallocated dynamic vectors in
usual way...
but is that possible that i can't reach 7*400*sizeof(float)=11200 bytes
I presume without getting memory overflow or application frozen?????
And why i can't succed in writing
int _stklen = desidered dimension;???
Anyone had the same problem under XP?
How to allocate big memory blocks? My program is at least 300 times
faster than Matlab solvers....but as long as i can't work on big
instances this computational power gets useless

Thanks in advance

Your problems are entirely compiler specific, and based mainly on the
fact that you are using an antique 16-bit x86 compiler. That is the
reason for the 127 character command line limit, the need to
experiment with "memory models", and limited amounts of memory
available. These are all limitations that are not imposed by the C
language, or even your operating system, but by the use of a compiler
more than 10 years obsolete.

If for some reason you must use this compiler, you need to ask about
such issues in Borland's support groups. For the compiler you are
using, that would be and you must
post to it on Borland's server newsgroups.borland.com, because they
don't accept posts from other servers.

A much better solution is just to get a newer, better, 32-bit
compiler. There are many free ones, including Visual Studio 2005 from
Microsoft, a new native win-32 Turbo from Borland (see
http://www.turboexplorer.com/), and various versions of gcc such as
cygwin and mingw.

So get a 21st century compiler and replace the antique.
 
?

=?iso-8859-1?B?UG9pbmNhcuhf6F9hbmRhdG8=?=

Tnanks a lot Jack




Jack said:
Your problems are entirely compiler specific, and based mainly on the
fact that you are using an antique 16-bit x86 compiler. That is the
reason for the 127 character command line limit, the need to
experiment with "memory models", and limited amounts of memory
available. These are all limitations that are not imposed by the C
language, or even your operating system, but by the use of a compiler
more than 10 years obsolete.

If for some reason you must use this compiler, you need to ask about
such issues in Borland's support groups. For the compiler you are
using, that would be and you must
post to it on Borland's server newsgroups.borland.com, because they
don't accept posts from other servers.

A much better solution is just to get a newer, better, 32-bit
compiler. There are many free ones, including Visual Studio 2005 from
Microsoft, a new native win-32 Turbo from Borland (see
http://www.turboexplorer.com/), and various versions of gcc such as
cygwin and mingw.

So get a 21st century compiler and replace the antique.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top