LinusK has a point, if his point is limited to the statement that the market, by itself, does not create wealth. He would be equally correct to say that education does not create wealth.
The market doesn’t create wealth, instead, it fuels the machinery that creates wealth (and, the wealth is the fuel, but that’s beside the point). The wealth is the productivity of the companies traded on the market. Most of those companies wouldn’t exist if they couldn’t have been funded by the market, which is why we say that the market creates wealth, whereas it really just finances wealth-building. It’s not the only way of financing wealth-building, of course.
The market can create apparent wealth; it’s what we call a bubble. Admittedly, that’s a rather circular definition. The pebble story is a good example of a bubble, since the pebble has no intrinsic value (it won’t feed or house people, and pretty soon enough people are going to figure out that it’s not worth what the last guy paid for it, and he’s stuck with an expensive pebble.)
Other things on the market do have intrinsic values, to the extent that they are (or they produce things that are) necessary to people or highly desired by lots of people and there’s no cheaper substitute. A bubble can still be created by people paying more than they’re worth, but when reality sets in, there is some nonzero value that the security is worth. For example, for a company that owns its premises, it’s at least worth the value of its buildings. Usually, it’s worth considerably more than that, if it has any intellectual properties or the goodwill of regular customers.
So, if the point is that a market can create apparent wealth that doesn’t represent any underlying value, well, yeah, that’s true, and we all know it. That doesn’t mean that a market is useless (and I don’t believe LinusK said it was, though it did seem to be implied by his tone.)