Re: how to initialize a container
Jack wrote:
"Ulrich Eckhardt" <eckhardt@satorlaser.com>
???????:k929o4-fqf.ln1@satorlaser.homedns.org...
Jack wrote:
What errors?
Just crashed, as this is a plugin, the host application just told me there
were errors, then shut down
Run the whole application in a debugger. Yes, you can load an executable
(which will then load your plugin) even without having a projectfile and
sourcecode for it. You can also setup your plugin project to automatically
start the host application for debugging, though I haven't used that option
enough to say if it works.
Could you try to reduce/clean up this code so that it can be compiled?
What is 'buff', what is 'get1part', what is 'buff2' etc...
get_1part(buff, buf2); // Get first part of a prototype in buff, and
leaving the rest of it to buf2
g_typemap map1; // map for all data types
map<long, std::string>::iterator iter;
for (iter = map1.begin(); iter != map1.end(); iter++) //Both map1
and
// iter are empty! map1 has [00000000]() and iter has 0xcdcdcdcd
{
if (iter->second == buf2.c_str()) // item already in the map
break;
}
I still can't understand this let alone compile this as I don't have enough
context. The code looks a bit *ahem* rough, but there are no immediate
errors /in those parts that you show/. I don't understand why you
think 'map1' should not be empty.
Uli