[framework-issues] [Issue 115716] basic: Using strings with external functions (e.g. Windows API) leads t o memory trash being received

2011-01-06 Thread sb
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=115716


User sb changed the following:

What|Old value |New value

 Assigned to|sb|tbo





--- Additional comments from s...@openoffice.org Thu Jan  6 16:15:02 + 
2011 ---
@tbo: please verify

-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[framework-issues] [Issue 115716] basic: Using strings with external functions (e.g. Windows API) leads t o memory trash being received

2011-01-05 Thread sb
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=115716





--- Additional comments from s...@openoffice.org Wed Jan  5 09:26:25 + 
2011 ---
[CWS sb137 has been abandoned in favor of CWS sb135, fix for this issue has thus
been pulled into cws/sb135]

-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[framework-issues] [Issue 115716] basic: Using strings with external functions (e.g. Windows API) leads t o memory trash being received

2010-12-07 Thread sb
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=115716


User sb changed the following:

What|Old value |New value

  Status|STARTED   |RESOLVED

  Resolution|  |FIXED





--- Additional comments from s...@openoffice.org Tue Dec  7 16:24:52 + 
2010 ---
fixed as 

-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[framework-issues] [Issue 115716] basic: Using strings with external functions (e.g. Windows API) leads t o memory trash being received

2010-11-26 Thread sb
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=115716





--- Additional comments from s...@openoffice.org Fri Nov 26 12:38:18 + 
2010 ---
The second problem (pass string via "Any") might be a problem of the given test
code or a problem of the Basic runtime implementation.  I filed new issue 115795
to address this.

-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[framework-issues] [Issue 115716] basic: Using strings with external functions (e.g. Windows API) leads t o memory trash being received

2010-11-26 Thread sb
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=115716


User sb changed the following:

What|Old value |New value

  Ever confirmed|  |1

  Status|UNCONFIRMED   |STARTED

Target milestone|---   |OOo 3.4





--- Additional comments from s...@openoffice.org Fri Nov 26 10:33:46 + 
2010 ---
Hamburg-internal issue #162141# "Runtime does not handle strings in the right
way" changed the marshaling of Basic data used in "external DLL" calls (changes
to basic/source/runtime/dllmgr.cxx, lumped together with many other things in
).  The corresponding
tests unfortunately only checked that strings passed back from such an
"external" call were correct (the string used in GetLogicalDriveStrings from
kernel32.dll to return a list of null-separated drive strings).

What apparently broke, however, is (1) to pass strings into such "external"
calls ("Software\OOo_TEST_KEY" in lpSubKey of RegCreateKeyA, "OOo_TEST_DATA"
lpValueName of RegSetValueExA), and (2) to pass strings into such "external"
calls via "Any" ("THIS IS A TEST" in lpData of RegSetValueExA).

For (1), the problem is that the terminating null byte is missing from the
marshaled string data.  The following patch would fix that:

---8<---
--- a/basic/source/runtime/dllmgr.cxx   Tue Nov 23 16:56:16 2010 +0100
+++ b/basic/source/runtime/dllmgr.cxx   Fri Nov 26 11:30:51 2010 +0100
@@ -207,6 +207,7 @@
 }
 std::vector< char > * blob = data.newBlob();
 blob->insert(blob->begin(), str.getStr(), str.getStr() + str.getLength());
+blob->push_back(0);
 *buffer = address(*blob);
 data.unmarshalStrings.push_back(StringData(variable, *buffer, special));
 return ERRCODE_NONE;
---8<---

-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[framework-issues] [Issue 115716] basic: Using strings with external functions (e.g. Windows API) leads t o memory trash being received

2010-11-26 Thread ab
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=115716


User ab changed the following:

What|Old value |New value

 Assigned to|ab|sb





--- Additional comments from a...@openoffice.org Fri Nov 26 08:14:46 + 
2010 ---
ab->sb: Basic-DLL-Interface related, please have a look


-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[framework-issues] [Issue 115716] basic: Using strings with external functions (e.g. Windows API) leads t o memory trash being received

2010-11-25 Thread hitec_tsc
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=115716





--- Additional comments from hitec_...@openoffice.org Thu Nov 25 16:28:38 
+ 2010 ---
This issue is reproducable for me in a freshly installed Windows 7 with OOo 3.3
RC6 by the way.

-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[framework-issues] [Issue 115716] basic: Using strings with external functions (e.g. Windows API) leads t o memory trash being received

2010-11-25 Thread kr
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=115716





--- Additional comments from k...@openoffice.org Thu Nov 25 08:10:57 + 
2010 ---
->mla: what was the reason to close this?


-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[framework-issues] [Issue 115716] basic: Using strings with external functions (e.g. Windows API) leads t o memory trash being received

2010-11-25 Thread kr
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=115716


User kr changed the following:

What|Old value |New value

  CC|'jsc,mechtilde'   |'jsc,kr,mechtilde'





-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[framework-issues] [Issue 115716] basic: Using strings with external functions (e.g. Windows API) leads t o memory trash being received

2010-11-23 Thread jsc
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=115716


User jsc changed the following:

What|Old value |New value

 Assigned to|kr|ab





--- Additional comments from j...@openoffice.org Tue Nov 23 19:11:06 + 
2010 ---
jsc -> ab: do you have an idea? I think we should take a look on it

-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[framework-issues] [Issue 115716] basic: Using strings with external functions (e.g. Windows API) leads t o memory trash being received

2010-11-23 Thread mechtilde
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=115716


User mechtilde changed the following:

What|Old value |New value

  CC|'mechtilde'   |'jsc,mechtilde'

Keywords|  |oooqa, regression





--- Additional comments from mechti...@openoffice.org Tue Nov 23 15:44:10 
+ 2010 ---
@ jsc

are there some changes in the API?

-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[framework-issues] [Issue 115716] basic: Using strings with external functions (e.g. Windows API) leads t o memory trash being received

2010-11-23 Thread hitec_tsc
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=115716


User hitec_tsc changed the following:

What|Old value |New value

  Status|CLOSED|UNCONFIRMED

  Resolution|INVALID   |





--- Additional comments from hitec_...@openoffice.org Tue Nov 23 12:22:26 
+ 2010 ---
How is this closed? I just tried it in RC6, because I thought it was fixed in
there or just an issue with RC5, but it is still the same. These calls worked
just fine till the last RC. A bit more of an explanation would be really
appreciated, instead of refering to the most general forum link there is.
Sorry, but this is really frustrating, because it just kills every macro our
company is using and I cannot see the problem myself.

-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[framework-issues] [Issue 115716] basic: Using strings with external functions (e.g. Windows API) leads t o memory trash being received

2010-11-23 Thread mla
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=115716


User mla changed the following:

What|Old value |New value

  Status|RESOLVED  |CLOSED





--- Additional comments from m...@openoffice.org Tue Nov 23 10:20:53 + 
2010 ---
closed

-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[framework-issues] [Issue 115716] basic: Using strings with external functions (e.g. Windows API) leads t o memory trash being received

2010-11-23 Thread mla
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=115716


User mla changed the following:

What|Old value |New value

  Status|UNCONFIRMED   |RESOLVED

Priority|P1|P3

  Resolution|  |INVALID





--- Additional comments from m...@openoffice.org Tue Nov 23 10:20:14 + 
2010 ---
for user help please see the forums:
http://user.services.openoffice.org

-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[framework-issues] [Issue 115716] basic: Using strings with external functions (e.g. Windows API) leads t o memory trash being received

2010-11-22 Thread hitec_tsc
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=115716





--- Additional comments from hitec_...@openoffice.org Mon Nov 22 10:31:02 
+ 2010 ---
Created an attachment (id=75091)
Screenshot of windows registry


-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[framework-issues] [Issue 115716] basic: Using strings with external functions (e.g. Windows API) leads t o memory trash being received

2010-11-22 Thread hitec_tsc
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=115716





--- Additional comments from hitec_...@openoffice.org Mon Nov 22 10:30:28 
+ 2010 ---
Created an attachment (id=75090)
Test Macros


-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[framework-issues] [Issue 115716] basic: Using strings with external functions (e.g. Windows API) leads t o memory trash being received

2010-11-22 Thread hitec_tsc
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=115716
 Issue #|115716
 Summary|basic: Using strings with external functions (e.g. Win
|dows API) leads to memory trash being received
   Component|framework
 Version|OOO330m15
Platform|PC
 URL|
  OS/Version|Windows XP
  Status|UNCONFIRMED
   Status whiteboard|
Keywords|
  Resolution|
  Issue type|DEFECT
Priority|P1
Subcomponent|scripting
 Assigned to|kr
 Reported by|hitec_tsc





--- Additional comments from hitec_...@openoffice.org Mon Nov 22 10:28:41 
+ 2010 ---
We have used this kind of macros to save some settings for our company's OOo
macros (see attachment) for about two years now and never had problems with it
until I recently tested the macros with OOo 3.3 RC6.
With that version, every now and then, cannot tell exactly when and why, basic
came up with the error "Aktion nicht unterstützt. Ungültiger Prozeduraufruf"
(translates to: 'Action not supported. Bad procedure-call' or something 
similar).
But sometimes there was no error and the macros got executed. I was kind of
confused until I checked the Windows registry and saw the keys which were
created in there by the macros (see attachment 2). 
I am pretty clueless why this happens, but this is a major problem for us, since
we are using the Windows API (especially the registry calls) alot and it would
cost me alot of time to rewrite all macros to use ini-files or something.

Executing the macro in attachment 1 should be able to reproduce this error.

-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org