ERLEDIGT
NEIN
NEIN
ANTWORTEN
1
1
ZUGRIFFE
1876
1876
EMPFEHLEN
-
Hallo
Ich habe ein kleines Tool geschrieben, welches mir verschiedene Einträge in den Kalender im Outlook erstellt oder aktualisiert. Bisher ist es problemlos gelaufen auf einer Windows XP mit Outlook 2003 und dann auch mit Outlook 2007.
Nun habe ich auf mein Notebook mit Windows Vista und Outlook 2007 gewechselt und ich bekomme immer folgende Fehlermeldung:
java.lang.IllegalStateException: Dispatch not hooked to windows memory
at com.jacob.com.Dispatch.throwIfUnattachedDispatch(Dispatch.java:288)
at com.jacob.com.Dispatch.get(Dispatch.java:1257)
at ch.janine.dienstplan.Synchronize.SyncOutlook(Synchronize.java:755)
Der Code dazu ist der folgende - Zeile 755 ist markiert.
...
count = Dispatch.get(oItems, "Count").toInt();
Startup.debugLog(" (Calender has " + count + " entries)");
boolean bInsert = false;
boolean bDelete = false;
if (count > 0) {
Dispatch oItem = Dispatch.get(oItems, "GetFirst").toDispatch();
do {
Object subj = Dispatch.get(oItem, "Subject"); if (subj == null)
break;
Was mache ich hier falsch? Warum funktioniert es plötzlich nicht mehr?
Danke für Eure Hilfe
-
versuch mal:
Object subj = Dispatch.get(oItem, "Subject") .toString();
Oder poste mal den ganzen Code..
Ähnliche Themen
-
Dispatch not hooked to windows memory jacob.dll
Von LLHELBIG im Forum JavaAntworten: 2Letzter Beitrag: 22.06.10, 17:04 -
Out of Memory Fehler - Große Datenbankabfragen
Von schrodi im Forum JavaAntworten: 13Letzter Beitrag: 26.08.09, 14:42 -
This call must happen in the AWT Event Dispatch Thread
Von Maik20 im Forum JavaAntworten: 1Letzter Beitrag: 18.04.09, 00:52 -
Bilder Upload (Allowed Memory Size...) Fehler
Von MC-René im Forum PHPAntworten: 3Letzter Beitrag: 01.03.07, 13:26 -
Verhält sich der Memory unter Linux anders als unter Windows?
Von mstrauss im Forum PHPAntworten: 3Letzter Beitrag: 11.01.06, 09:32





Zitieren
Login





