Phantom blocks
-
I'm experiencing a problem in the local version.
I have 41 variables and 50 blocks.
I created a temporary block and a variable which the block refers to. Later on I deleted the block, but the local version still seems to think the block exists, and won't allow me to remove the variable. I then checked in MetaEditor, and the block is indeed absent as a "find" does not locate the block number #123.
Have you noticed this behaviour before? Is there a way of clearing this?
-
In order to try to get around this, and just in case it was something that had gone wrong in my code, I opened a new project entirely. However, I find that I still have the problem, and now the error message which appears says a variable which is to be deleted is in use by blocks with numbers I did not create!

-
You know that some block parameters can be visible or invisible. When you configure some paraeter and make it invisible, it still exists there with it's last setup. If you add Variable and you hide it, it is still there, and in this case it can think that the Variable is still used.
-
OK. But I haven't knowingly hidden anything. What's the procedure to hide something? And that doesn't explain why it thought a block existed which I hadn't created.
Oddly enough, the problem has now gone away. As far as I know I didn't do anything to make it go! Could something have been hanging around in memory which eventually died away?
-
Well, I don't know the situation exacly, but it's not the memory (I mean RAM).
When Constant and Variable is used in a block, It cannot be deleted. If it can be deleted just like that - someone else will ask me why this can happen and why his variables or constants are suddenly gone from some of the blocks...I think there can be a problem because of properties window caching, but I'm not sure (didn't tested that a lot). If you load and close a window, the next times you open it - it is not requested from the server, so everyting stays on the browser html and javascript. Maybe I should disable this caching in the local version, there is not a good reason for this to be used that way in the local one.
-
Yes. You are probably right about the caching.
-
Hello again!

I'm sorry to come back to this one, but its actually beginning to cause a little difficulty. I now have several variables in an EA which just won't delete, and keep saying they're used in non-existent blocks. Therefore my variables list is getting a little too long..!

Is there a work-around for this you could suggest?
Thanks again.
-
Oh, you mean deleted blocks? Very strange, I have no idea why such a thing can happen. But I can suggest that you SAVE and RESET.
-
Glad to see new VPS server up. Logins fast with me.
Still having this phantom block problem. I have a load of variables which I can't delete! Have saved, quit, and re-loaded fxDreema several times.
-
Meanwhile I disabled that cache of block properties, so now when you double-click on the block it requires fresh information from the server (web version) or from the program (local version build 036).
You are very active in fxdreema, why don't you install TeamViewer, so when there is a problem like this we can fix it as fast as possible. There is nothing scary in using this program, it's fun actually. Otherwise now I have to ask you to send me the project in file, because I have no idea what these "phantom blocks" are

-
Yes. I might do the TeamViewer thing, but I'll have to check if it breaches the security rules on our system. In the meantime a "phantom block" is a ghost! A block which was created and later removed, but the Variables area seems to think it still exists.

Sadly build 036 didn't fix the issue.
I've created "test_in_local_version" and uploaded the .ex4 and .mq4.
In it I created 5 variables and 4 simple blocks. Then I removed the last block, number 5, which referenced the last variable. Then I tried to delete the variable, and fxDreema said the variable is still used by the now removed block, number 5.
I attach Clipboard01 and Clipboard02 (02 in the next posting as 3 is maximum) showing the deletion of the block then the attempted deletion of the variable.
That is really all there is to see. TeamViewer wouldn't display more to you.
......
test_in_local_version.ex4
test_in_local_version.mq4
Clipboard01.jpg -
...and here's Clipboard02...
......
Clipboard02.jpg -
I got it, the same thing here. I still don't know why is that, but I will discover and fix it.
-
Hi
Are you any nearer a fix for this? Its becoming rather a nuisance!
I now have a variable which thinks its used in 15 different blocks, when in fact it isn't used in any, but I can't delete it.Help!
-
I started to recode one thing and because of this I have to recode almost everything

-
OK
