Zhang Xiaofei a écrit :
> Hello Mr. Loiseleur,
Hi,
> 
> Thank you very much for your suggestions, it seems that the second
> problem was caused by a parameter disorder, it is gone after I adjusted
> the statements
[...]

> After the steps the first error is gone and compiled the unotools module
> successfully.
Nice, I always appreciate when I am not wrong ^_^'.
> 
> Nevertheless there's a new problem now: when I opened a new writer
> document in the hacked version, a "Assertion Failed!"messagebox shows
> this(for three times if "Ignore" is selected):
> "Error: File xxxxxxx\sfx2\source\doc\objstor.cxx, Line 3039: The
> document storage must be created!
> (Yes=Abort / No=Ignore / Cancel=Debugger)"
> 
> I have not found out how to solve the problem yet. Could somebody give
> me some help?
Just take a look at this file and the method. There is in it a "TODO" in
it for a try...catch bloc. You should start with that.

You should also take a look at what a "XStorage" and a "DocStorage" is
and where does it comes from in your class. Surely a parameter for a
*File class.

>From what I have understood in the 5 minutes I can give to you, this is
the class needed for load & save document. You cannot expect to go very
further in OOo use if you silence this message.

There is at least 2 possible reason for this message :
1) you invoke a class too early in the process and the StorageHelper is
not properly initialised yet.
2) You have created without knowing it a new kind of DocImplementation
without the needed DocStorage.

  Welcome to the joy of hidden class dependancies and hang on, you are
really near your goal ;).

Regards,
Michel

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to