New class member of static library missing after compilation - c++

Good morning,
I´m facing a very strange problem on which I haven´t found a solution yet.
I hope someone could give me a clou.
I´m having a class compiled to a static lib.
I´m using this class in a simple console program to perform tests on that class.
The class worked like a charm until I added a new data member (std::string) to the class.
Even if I don´t use that string I get strange errors when the dtor of the class is called (access violation when the string got no value or bufferoverflow when the string got initialized).
Debugging the class showed that the new std::string is not present though a the old members are there.
I even tried to initialize that string in the ctor (strLPath.str("Appletree")) and output it before the dtor.
The output of the string shows something like "Ap tre ".
When I remove that new string everything is fine again.
Can somebody help me ?
Thx for any answers in advance.
Phil

thx to everybody who were spending time thinking about my problem.
Anyway - i solved it last night.
When I created the test program I was a lazy fool it seems.
Instead of including the original header, I copied it to the test project.
Don´t know what got into me that eve.
Sorry for wasting your time!
Regards,
Phil

Related

How to turn bReturnFaceIndex to True in LineTrace function?

I'm doing a simple Line Trace for Objects in Blueprints inside Unreal Engine,
that problem is that it always return -1 when I try to get the faceIndex of a static mesh with multiple materials.
I have read from past discussions that I would need to turn on the bReturnFaceIndex variable for Line Trace
to work with FaceIndex, but I do not know how to do it or expose it.
I am aware that I need to use c++ to do this, but again I work only in blueprints because with c++
I'm a complete noob, I only know, how to create a new empty class
(I tried to make something reading
other discussions, but without success, I don't know for example where do I need to put UFUNCTION, or UPROPERTY, or basic things like these..)
I have 6 months of work on my project at the moment, everything works perfectly and now I'm stuck
with this variable...
I hope that someone can guide me in the right way, thank you guys!

golang in goland kinesis.GetRecordsInput is not found while the method is?

Why is it that GetRecordsInput is not found? What are the possible reasons for this not compiling?
thanks
Ohhhhhhhh, if you have a variable like so
kinesis := {whatever}
well, you just screwed yourself!!! But of course to add to the confusion kinesis.GetRecords was working just fine. This took me a good hour of looking into before I tried some whacky stuff and thought outside the box. grrrrrr.

Implicit declaration of function 'ccDrawColor4B' in cocos2d

I'm really new to game programmming and i'm trying to pull over somebody elses example game to mine to just understand it a bit at a time but i'm stuck. When trying to pull the game over i'm getting the error :
Implicit declaration of function 'ccDrawColor4B'
I've done a bit of a look around for the method and I can't find it so i've looked at the project which i'm copying from for clues and found that there's loads more files. Below is the one i'm copying from..
And here is mine..
Am I missing a framework or something? When I type ccDr... it doesn't autofill either. Thanks for any help, sorry if this is totally a noobie question

Are there known issues with QFtp for use with pure-ftpd?

This is related to the question I posted here, but I hadn't gotten much visibility for that question so I wanted to ask in a more general way. I have a Qt 4.7 project that utilizes QFtp functionality. Until very recently we were using this with an FTP server that was vsftpd. Everything worked fine with it then. However, several days ago we moved the server to a new computer. All the contents are identical, but now it uses pure-ftpd instead of vsftpd. Since the move, none of my QFtp code works properly. Is there any known problems that arise when trying to use QFtp with this type of FTP server? I can't find anything helpful online, and it's rather frustrating not being able to find anything wrong with the code and yet having it not work. If anyone knows anything about this and could please share, I'd appreciate it a lot. Thanks!
So I think I just figured something out... I had it run QFtp::list to go through the ftp and retrieve directories, then use list() again on those to retrieve the files in those subdirectories. Our subdirectories to get files out of had spaces in the name, eg "My Directory". Apparently, the vsftpd we were using before could handle this with no problem, but the pure-ftpd can't handle spaces in the directory names. When I switch it to something like "MyDirectory" or "My_Directory", the pure-ftpd works fine. I couldn't find anything online about this difference, but apparently it's there, because that fixed the issue I was having.

ColdFusion Error: coldfusion.compiler.FactoredNodeAggregation cannot be cast to coldfusion.compiler.ASTfunctionDefinition

coldfusion.compiler.FactoredNodeAggregation cannot be cast to coldfusion.compiler.ASTfunctionDefinition
I get the above error when attempting to replace a really, really old legacy custom tag with a new custom tag that has some substantial workflow improvements. I only have one idea on how to debug this: comment out different parts of the code (binary search style) until it will compile, narrowing my search until I find the problem code.
Has anyone else ever seen this error before? Any idea what it could possibly be? Contextually, it sounds like I'm trying to use ... something... as a function that isn't defined as a function. That doesn't ring a bell so I'm going to try the binary search idea.
Update: It's running on CF 8.0.1, and doesn't use any <cfscript> blocks at all. Using the binary search of commenting out, I've narrowed it down to a CFThread that starts a background thread that never re-joins the page (by design).
If I comment out the entire contents of the thread, the error goes away (so the cfthread tag itself doesn't appear to have problems on its own...). If I copy the contents of the thread to its own template, that template will compile fine (so the thread contents doesn't appear to have problems on its own...)... so... in theory it should work? I don't know. This is me with my arms up in the air. (WTF?)
I think I've already disproven this idea by un-commenting a small section without the error coming back, but a CFThread should have access to local custom tags that the template creating the thread would have, right? so if there's foo.cfm, it could be accessed from the page as <cf_foo>, and the thread could do the same?
In the last week I've been in contact with the ColdFusion Engineering team at Adobe about this issue and they confirmed for me that this is a bug in ColdFusion.
Specifically, if the number of lines of code inside the thread tag body was too large, it would cause a compile error. The work-around, which I discovered a day or two before I got my answer, is to use a <cfinclude /> to import your thread contents from another file; or to put the code into a method somewhere and call that method from inside the thread body. (Presumably, a custom tag or other clever methods of encapsulation would also work.)
That explains the part of the whole thing that was driving me absolutely insane: that commenting out various parts of the thread body would sometimes make it compile... and now I know it was because enough of the thread body was commented out.
They report that they have fixed the bug, so I assume it will be fixed in the next cumulative hot-fix (if there is one), and in ColdFusion 9.
Since I can't comment yet, Adam, is it really a bug with CF or with the JVM? There's a similar limit on how many lines of code can be compiled within a CFFUNCTION, but the limit is really in the JVM, not the CF tag.
Oooh, that's one I've not seen before.
Depending on what the custom tag does, rather than commenting out different parts, you could try using cfabort - same technique, but only one line to change rather than uncommenting and re-commenting (which can be fiddly and time-consuming).
Also, are you able to test the custom tag in isolation, with completely simplified arguments/etc?
If you're able to post the code, there might be something odd that jumps out at a fresh pair of eyes?
that error usually comes up when you have a function that is set to remote. kinda funny that your getting it with a custom tag though. are you sure that the custom tag doesn't have any functions in it? can you post the code?
Strange that it is a compilation error. If the code base is not too huge I would make sure all variables in the thread and called udfs are explicitly scoped.
Next I would move as much externally referenced data into the thread arguments scope to isolate the interactions with the page.
Finally if that does not clear it up I would try mangling the names of every variable, function and udf the thread accesses a bit with some test prefix just to make sure that you have not hit a bug where one of your vars or funcs is causing a namespace collision in the jvm in the context of the original page.
Tricky problem.
Have you deleted the compiled class files and saved the original source to a new file just in case something weird occurred during a save?
Have you tried reinstalling CF8.01? Maybe some files got corrupted?